Status codes rewritten to GLOBALS
[mailer.git] / inc / databases.php
index 42c3be65247ba5be4dc10ac81b076e0cfe7a59ba..240174765f7914424da400fd2dd001c07b254128 100644 (file)
@@ -43,40 +43,40 @@ if (!defined('__SECURITY')) {
 } // END - if
 
 // System-wide return codes
-define('CODE_WRONG_PASS'       , 0x001);
-define('CODE_WRONG_ID'         , 0x002);
-define('CODE_ID_LOCKED'        , 0x003);
-define('CODE_ID_UNCONFIRMED'   , 0x004);
-define('CODE_UNKNOWN_STATUS'   , 0x005);
-define('CODE_NO_COOKIES'       , 0x006);
-define('CODE_CNTR_FAILED'      , 0x008);
-define('CODE_LOGOUT_DONE'      , 0x008);
-define('CODE_LOGOUT_FAILED'    , 0x009);
-define('CODE_URL_TLOCK'        , 0x00a);
-define('CODE_URL_FOUND'        , 0x00b);
-define('CODE_OVERLENGTH'       , 0x00c);
-define('CODE_SUBJ_URL'         , 0x00d);
-define('CODE_BLIST_URL'        , 0x00e);
-define('CODE_NO_RECS_LEFT'     , 0x00f);
-define('CODE_INVALID_TAGS'     , 0x010);
-define('CODE_MORE_POINTS'      , 0x011);
-define('CODE_COOKIES_DISABLED' , 0x012);
-define('CODE_DATA_INVALID'     , 0x013);
-define('CODE_POSSIBLE_INVALID' , 0x014);
-define('CODE_ACCOUNT_LOCKED'   , 0x015);
-define('CODE_USER_404'         , 0x016);
-define('CODE_STATS_404'        , 0x017);
-define('CODE_ALREADY_CONFIRMED', 0x018);
-define('CODE_ERROR_MAILID'     , 0x019);
-define('CODE_EXTENSION_PROBLEM', 0x01a);
-define('CODE_MORE_RECEIVERS1'  , 0x01b);
-define('CODE_MORE_RECEIVERS2'  , 0x01c);
-define('CODE_MORE_RECEIVERS3'  , 0x01d);
-define('CODE_INVALID_URL'      , 0x01e);
-define('CODE_MENU_NOT_VALID'   , 0x01f);
-define('CODE_LOGIN_FAILED'     , 0x020);
-define('CODE_BEG_SAME_AS_OWN'  , 0x021);
-define('CODE_UNHANDLED_STATUS' , 0x022);
+addCode('WRONG_PASS'       , 0x001);
+addCode('WRONG_ID'         , 0x002);
+addCode('ID_LOCKED'        , 0x003);
+addCode('ID_UNCONFIRMED'   , 0x004);
+addCode('UNKNOWN_STATUS'   , 0x005);
+addCode('NO_COOKIES'       , 0x006);
+addCode('CNTR_FAILED'      , 0x008);
+addCode('LOGOUT_DONE'      , 0x008);
+addCode('LOGOUT_FAILED'    , 0x009);
+addCode('URL_TLOCK'        , 0x00a);
+addCode('URL_FOUND'        , 0x00b);
+addCode('OVERLENGTH'       , 0x00c);
+addCode('SUBJ_URL'         , 0x00d);
+addCode('BLIST_URL'        , 0x00e);
+addCode('NO_RECS_LEFT'     , 0x00f);
+addCode('INVALID_TAGS'     , 0x010);
+addCode('MORE_POINTS'      , 0x011);
+addCode('COOKIES_DISABLED' , 0x012);
+addCode('DATA_INVALID'     , 0x013);
+addCode('POSSIBLE_INVALID' , 0x014);
+addCode('ACCOUNT_LOCKED'   , 0x015);
+addCode('USER_404'         , 0x016);
+addCode('STATS_404'        , 0x017);
+addCode('ALREADY_CONFIRMED', 0x018);
+addCode('ERROR_MAILID'     , 0x019);
+addCode('EXTENSION_PROBLEM', 0x01a);
+addCode('MORE_RECEIVERS1'  , 0x01b);
+addCode('MORE_RECEIVERS2'  , 0x01c);
+addCode('MORE_RECEIVERS3'  , 0x01d);
+addCode('INVALID_URL'      , 0x01e);
+addCode('MENU_NOT_VALID'   , 0x01f);
+addCode('LOGIN_FAILED'     , 0x020);
+addCode('BEG_SAME_AS_OWN'  , 0x021);
+addCode('UNHANDLED_STATUS' , 0x022);
 
 // Server-URL (DO NOT CHANGE THIS OR YOU CANNOT CHECK FOR UPDATES/EXTENSIONS!)
 define('SERVER_URL', "http://www.mxchange.org");