X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fdatabases.php;h=7aac6dd321c16590fffac3d0c691803bcb51ecad;hp=42c3be65247ba5be4dc10ac81b076e0cfe7a59ba;hb=fad1ea280c27f9ba8ae818b87b0ba29d2c113b1b;hpb=d74b665c4f1f44ef7941e8d9db8f4c9d8ea656e0 diff --git a/inc/databases.php b/inc/databases.php index 42c3be6524..7aac6dd321 100644 --- a/inc/databases.php +++ b/inc/databases.php @@ -10,10 +10,10 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : Definitionen und Datenfelder (hart-codertiert) * * -------------------------------------------------------------------- * - * $Revision:: 856 $ * - * $Date:: 2009-03-06 20:24:32 +0100 (Fr, 06. Mär 2009) $ * + * $Revision:: $ * + * $Date:: $ * * $Tag:: 0.2.1-FINAL $ * - * $Author:: stelzi $ * + * $Author:: $ * * Needs to be in all Files and every File needs "svn propset * * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * @@ -43,54 +43,51 @@ 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); +addCode('MODULE_MEM_ONLY' , 0x023); // Server-URL (DO NOT CHANGE THIS OR YOU CANNOT CHECK FOR UPDATES/EXTENSIONS!) define('SERVER_URL', "http://www.mxchange.org"); -// Full version string: /([0-9]){1}\.([0-9]){1}\.([0-9]){1}(-(alpha|beta|pre|rc([1-3]))([0-9]+))?/ -// If you understand regular expressions ^^^ you may know how I versionize... ;-) -define('FULL_VERSION', getActualVersion('Tag')); - // Replacement strings $GLOBALS['replacer'] = array( 'userid' => "%uid%", // User-ID 'surname' => "%vorname%", // Surname 'family' => "%nachname%", // Family name - 'gender' => "%anrede%", // Gender + 'gender' => "%anrede%", // Gender ); // One day @@ -101,10 +98,6 @@ setConfigEntry('one_day', (60*60*24)); define('START_YDAY', MAKE_TIME(0, 0, 0, time() - getConfig('one_day'))); define('START_TDAY', MAKE_TIME(0, 0, 0, time())); -// Current SVN revision and date -define('CURR_SVN_REVISION', getActualVersion('Revision')); -define('CURR_SVN_DATE' , getActualVersion('Date')); - // Take a prime number which is long (if you know a longer one please try it out!) define('_PRIME', 591623); @@ -114,6 +107,9 @@ define('_ADD', (constant('_PRIME') * constant('_PRIME') / (pi() * getConfig('cod // Random number for e.g. the "cache-buster" used in OpenX script define('CACHE_BUSTER', mt_rand(1000000, 9999999)); +// CFG: DEBUG-SQL (if enabled and DEBUG_MODE is enabled all SQL queries will be logged to debug.log) +define('DEBUG_SQL', false); + // Extra title is empty by default $EXTRA_TITLE = "";