| ■example |
<?php /** * Mojavi 設定ファイル **/
// ----- FILE-SYSTEM DIRECTORIES -----
/** * An absolute file-system path to the webapp directory. */ define('BASE_DIR', $GLOBALS['_MOJAVI_DIR']);
/** * An absolute file-system path to the log directory. * * Note: This directory must be writable by any user. */ define('LOG_DIR', BASE_DIR . 'logs/');
/** * An absolute file-system path to the all-in-one class file Mojavi * uses. */ define('MOJAVI_FILE', "{$GLOBALS['_MOJAVI_BASE_DIR']}mojavi-all-classes.php");
/** * An absolute file-system path to the optional classes directory. */ define('OPT_DIR', "{$GLOBALS['_MOJAVI_BASE_DIR']}opt/");
// ----- WEB DIRECTORIES AND PATHS -----
/** * An absolute web path where modules can store public information such as * images and CSS documents. */ define('WEB_MODULE_DIR', '/modpub/');
/** * An absolute web path to the index.php script. */ define('SCRIPT_PATH', '/index.php');
// ----- ACCESSOR NAMES -----
/** * The parameter name used to specify a module. */ define('MODULE_ACCESSOR', 'module');
/** * The parameter name used to specify an action. */ define('ACTION_ACCESSOR', 'action');
// ----- MODULES AND ACTIONS -----
/** * The action to be executed when an unauthenticated user makes a request for * a secure action. */ define('AUTH_MODULE', 'Global'); define('AUTH_ACTION', 'Login');
/** * The action to be executed when a request is made that does not specify a * module and action. */ define('DEFAULT_MODULE', 'Global'); define('DEFAULT_ACTION', 'ViewHome');
/** * The action to be executed when a request is made for a non-existent module * or action. */ define('ERROR_404_MODULE', 'Global'); define('ERROR_404_ACTION', 'PageNotFound');
/** * The action to be executed when an authenticated user makes a request for * an action for which they do not possess the privilege. */ define('SECURE_MODULE', 'Global'); define('SECURE_ACTION', 'Secure');
/** * The action to be executed when the available status of the application * is unavailable. */ define('UNAVAILABLE_MODULE', 'Global'); define('UNAVAILABLE_ACTION', 'Unavailable');
// ----- MISC. SETTINGS -----
/** * Whether or not the web application is available or if it's out-of-service * for any reason. */ define('AVAILABLE', true);
/** * Should typical PHP errors be displayed? This should be used only for * development purposes. * * 1 = on, 0 = off */ define('DISPLAY_ERRORS', 1);
/** * The associative array that may contain a key that holds path information * for a request, and the key name. * * 1 = $_SERVER array * 2 = $_ENV array * * Note: This only needs set if URL_FORMAT = 2. */ define('PATH_INFO_ARRAY', 1); define('PATH_INFO_KEY', 'PATH_INFO');
/** * The format in which URLs are generated. * * 1 = GET format * 2 = PATH format * * GET format is ?key=value&key=value * PATH format is /key/value/key/value * * Note: PATH format may required modifications to your webserver configuration. */ define('URL_FORMAT', 2);
/** * Should we use sessions? */ define('USE_SESSIONS', true);
?>
|
|