2020-05-27 18:46:16 +02:00
|
|
|
<?php
|
|
|
|
|
2021-04-02 19:20:02 +02:00
|
|
|
/*
|
|
|
|
| --------------------------------------------------------------------
|
|
|
|
| Castopod Version
|
|
|
|
| --------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| The Castopod version number to display.
|
|
|
|
|
|
|
|
|
| NOTE: this constant is updated upon release with Continuous Integration.
|
|
|
|
*/
|
2021-04-08 13:20:49 +02:00
|
|
|
defined('CP_VERSION') || define('CP_VERSION', '1.0.0-alpha.44');
|
2020-10-26 12:48:17 +01:00
|
|
|
|
2021-04-02 19:20:02 +02:00
|
|
|
/*
|
|
|
|
| --------------------------------------------------------------------
|
|
|
|
| App Namespace
|
|
|
|
| --------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| This defines the default Namespace that is used throughout
|
|
|
|
| CodeIgniter to refer to the Application directory. Change
|
|
|
|
| this constant to change the namespace that all application
|
|
|
|
| classes should use.
|
|
|
|
|
|
|
|
|
| NOTE: changing this will require manually modifying the
|
|
|
|
| existing namespaces of App\* namespaced-classes.
|
|
|
|
*/
|
2020-05-27 18:46:16 +02:00
|
|
|
defined('APP_NAMESPACE') || define('APP_NAMESPACE', 'App');
|
|
|
|
|
|
|
|
/*
|
2021-04-02 19:20:02 +02:00
|
|
|
| --------------------------------------------------------------------------
|
|
|
|
| Composer Path
|
|
|
|
| --------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| The path that Composer's autoload file is expected to live. By default,
|
|
|
|
| the vendor folder is in the Root directory, but you can customize that here.
|
|
|
|
*/
|
2020-06-10 17:00:12 +02:00
|
|
|
defined('COMPOSER_PATH') ||
|
|
|
|
define('COMPOSER_PATH', ROOTPATH . 'vendor/autoload.php');
|
2020-05-27 18:46:16 +02:00
|
|
|
|
|
|
|
/*
|
2021-04-02 19:20:02 +02:00
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Timing Constants
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Provide simple ways to work with the myriad of PHP functions that
|
|
|
|
| require information to be in seconds.
|
|
|
|
*/
|
2020-05-27 18:46:16 +02:00
|
|
|
defined('SECOND') || define('SECOND', 1);
|
|
|
|
defined('MINUTE') || define('MINUTE', 60);
|
2020-06-10 17:00:12 +02:00
|
|
|
defined('HOUR') || define('HOUR', 3600);
|
|
|
|
defined('DAY') || define('DAY', 86400);
|
|
|
|
defined('WEEK') || define('WEEK', 604800);
|
|
|
|
defined('MONTH') || define('MONTH', 2592000);
|
|
|
|
defined('YEAR') || define('YEAR', 31536000);
|
2020-05-27 18:46:16 +02:00
|
|
|
defined('DECADE') || define('DECADE', 315360000);
|
|
|
|
|
|
|
|
/*
|
2021-04-02 19:20:02 +02:00
|
|
|
| --------------------------------------------------------------------------
|
|
|
|
| Exit Status Codes
|
|
|
|
| --------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Used to indicate the conditions under which the script is exit()ing.
|
|
|
|
| While there is no universal standard for error codes, there are some
|
|
|
|
| broad conventions. Three such conventions are mentioned below, for
|
|
|
|
| those who wish to make use of them. The CodeIgniter defaults were
|
|
|
|
| chosen for the least overlap with these conventions, while still
|
|
|
|
| leaving room for others to be defined in future versions and user
|
|
|
|
| applications.
|
|
|
|
|
|
|
|
|
| The three main conventions used for determining exit status codes
|
|
|
|
| are as follows:
|
|
|
|
|
|
|
|
|
| Standard C/C++ Library (stdlibc):
|
|
|
|
| http://www.gnu.org/software/libc/manual/html_node/Exit-Status.html
|
|
|
|
| (This link also contains other GNU-specific conventions)
|
|
|
|
| BSD sysexits.h:
|
|
|
|
| http://www.gsp.com/cgi-bin/man.cgi?section=3&topic=sysexits
|
|
|
|
| Bash scripting:
|
|
|
|
| http://tldp.org/LDP/abs/html/exitcodes.html
|
|
|
|
|
|
|
|
|
*/
|
2020-06-10 17:00:12 +02:00
|
|
|
defined('EXIT_SUCCESS') || define('EXIT_SUCCESS', 0); // no errors
|
|
|
|
defined('EXIT_ERROR') || define('EXIT_ERROR', 1); // generic error
|
|
|
|
defined('EXIT_CONFIG') || define('EXIT_CONFIG', 3); // configuration error
|
|
|
|
defined('EXIT_UNKNOWN_FILE') || define('EXIT_UNKNOWN_FILE', 4); // file not found
|
|
|
|
defined('EXIT_UNKNOWN_CLASS') || define('EXIT_UNKNOWN_CLASS', 5); // unknown class
|
2020-05-27 18:46:16 +02:00
|
|
|
defined('EXIT_UNKNOWN_METHOD') || define('EXIT_UNKNOWN_METHOD', 6); // unknown class member
|
2020-06-10 17:00:12 +02:00
|
|
|
defined('EXIT_USER_INPUT') || define('EXIT_USER_INPUT', 7); // invalid user input
|
|
|
|
defined('EXIT_DATABASE') || define('EXIT_DATABASE', 8); // database error
|
|
|
|
defined('EXIT__AUTO_MIN') || define('EXIT__AUTO_MIN', 9); // lowest automatically-assigned error code
|
|
|
|
defined('EXIT__AUTO_MAX') || define('EXIT__AUTO_MAX', 125); // highest automatically-assigned error code
|