176 lines
6.6 KiB
PHP
176 lines
6.6 KiB
PHP
<?php
|
|
|
|
/*
|
|
| --------------------------------------------------------------------
|
|
| 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.
|
|
*/
|
|
defined('APP_NAMESPACE') || define('APP_NAMESPACE', 'App');
|
|
|
|
/*
|
|
| --------------------------------------------------------------------------
|
|
| 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.
|
|
*/
|
|
defined('COMPOSER_PATH') || define('COMPOSER_PATH', ROOTPATH . 'vendor/autoload.php');
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Timing Constants
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Provide simple ways to work with the myriad of PHP functions that
|
|
| require information to be in seconds.
|
|
*/
|
|
defined('SECOND') || define('SECOND', 1);
|
|
defined('MINUTE') || define('MINUTE', 60);
|
|
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);
|
|
defined('DECADE') || define('DECADE', 315360000);
|
|
|
|
/*
|
|
| --------------------------------------------------------------------------
|
|
| 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
|
|
|
|
|
*/
|
|
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
|
|
defined('EXIT_UNKNOWN_METHOD') || define('EXIT_UNKNOWN_METHOD', 6); // unknown class member
|
|
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
|
|
|
|
|
|
|
|
define('SITE_NAME','medTrans');
|
|
define('SITE_EMAIL','info@medtrans.com');
|
|
define('SITE_PHONE','+1 911 9110');
|
|
define('SITE_FAX','+1 9FX 9110');
|
|
|
|
define('PHP_API_OK', 0);
|
|
define('MAX_ADMIN_SESSION',1200);
|
|
|
|
|
|
define('SAVVYEXT_UPLOADS', 4505);
|
|
define('SAVVYEXT_DOWNLOAD',4506);
|
|
|
|
// MEDTRANS BACK OFFICE FUNCTION*****************
|
|
define('SAVVYEXT_BKO_START', 100000);
|
|
define('SAVVYEXT_BKO_LOGIN', 100005);
|
|
define('SAVVYEXT_BKO_CREATEUSER', 100010);
|
|
|
|
|
|
define('MODE_ADD',100);
|
|
define('MODE_UPDATE',200);
|
|
define('MODE_DELETE',300);
|
|
define('MODE_LIST',400);
|
|
|
|
|
|
define('SAVVYEXT_BKO_END', 199999);
|
|
|
|
|
|
// MEDTRANS USER FUNCTIONS***********************
|
|
define('SAVVYEXT_USER_START', 200000);
|
|
define('SAVVYEXT_USER_DRYCLIST', 200002);
|
|
define('SAVVYEXT_USER_LOGIN', 200005);
|
|
define('SAVVYEXT_USER_VERIFYSESSION', 200007);
|
|
define('SAVVYEXT_USER_CREATE', 200010); //
|
|
define('SAVVYEXT_USER_COMPLETEPROFILE', 200013);
|
|
|
|
define('SAVVYEXT_USER_PROFILE', 200020); //
|
|
|
|
define('SAVVYEXT_USER_SAVECARDPAYMENT', 200021);
|
|
define('SAVVYEXT_USER_GETCCLIST', 200022);
|
|
|
|
define('SAVVYEXT_USER_NEWLUNDRYPICK', 200025); // REQUEST TRANSPORT
|
|
define('SAVVYEXT_USER_GET_TRAN_BYID', 200030); // REQUEST TRANSPORT
|
|
//define('SAVVYEXT_USER_GET_TRANSLIST', 200037); // REQUEST TRANSPORT
|
|
define('SAVVYEXT_USER_GETSERVICELIST', 200035); // REQUEST TRANSPORT
|
|
|
|
|
|
define('SAVVYEXT_USER_LUNDRYLOCATION', 200040);
|
|
|
|
define('SAVVYEXT_USER_CONFIRMPICKUP', 200064);
|
|
define('SAVVYEXT_USER_GETSERVICEITEM', 200065);
|
|
//define('SAVVYEXT_USER_GETCCLIST', 200066);
|
|
define('SAVVYEXT_USER_START_PASSRESET', 200067);
|
|
define('SAVVYEXT_USER_CONFIRM_RESET', 200068);
|
|
define('SAVVYEXT_USER_COMPLETE_PASSRESET', 200069);
|
|
define('SAVVYEXT_USER_DELETECARD', 200075);
|
|
|
|
define('SAVVYEXT_USER_END', 299999);
|
|
|
|
|
|
// MEDTRANS INTERPRETERS ***************************
|
|
define('SAVVYEXT_INTERP_START', 300000);
|
|
|
|
|
|
|
|
define('SAVVYEXT_INTERP_END', 399999);
|
|
|
|
|
|
// MEDTRANS TRANLATORS ***************************
|
|
define('SAVVYEXT_TRANSP_START', 400000);
|
|
|
|
define('SAVVYEXT_TRANSP_LOGIN', 400005);
|
|
define('SAVVYEXT_TRANSP_VERIFYSESSION', 400007);
|
|
define('SAVVYEXT_TRANSP_CREATE', 400010); // SAVVYEXT_AGENT_CREATE
|
|
define('SAVVYEXT_TRANSP_ADDLOCATION', 400020); //
|
|
define('SAVVYEXT_TRANSP_LISTLOCATION', 400021);
|
|
define('SAVVYEXT_TRANSP_EDITLOCATION', 400022);
|
|
|
|
define('SAVVYEXT_TRANSP_GET_TRANSLIST', 400040);
|
|
define('SAVVYEXT_TRANSP_GET_TRANSPORTER', 400041);
|
|
|
|
define('SAVVYEXT_TRANSP_GET_TRANSLATOR', 400044);
|
|
define('SAVVYEXT_TRANSP_ADD_TRANSLATOR', 400045);
|
|
define('SAVVYEXT_TRANSP_LIST_TRANSLATOR', 400046);
|
|
define('SAVVYEXT_TRANSP_EDIT_TRANSLATOR', 400047);
|
|
define('SAVVYEXT_TRANSP_MANAGELANGUAGE', 400049);
|
|
define('SAVVYEXT_TRANSP_LANGUAGELIST', 400050);
|
|
|
|
define('SAVVYEXT_TRANSP_AGENTLANGUAGE', 400051); // LANGUAGE SUPPORTED BY AGENT
|
|
|
|
define('SAVVYEXT_TRANSP_DRIVERSCALL', 400060);
|
|
define('SAVVYEXT_TRANSP_DEVICELIST', 405000);
|
|
|
|
define('SAVVYEXT_TRANSP_END', 499999);
|
|
//***********************************************
|