X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fdatabases.php;h=077769c4f067bbf19fc4bf7119849757400323c2;hb=e19231f39d9d6583cc5753dbd2638c597957fdd1;hp=6fc682b4baa497cdd453734886c3e5583dceb0fe;hpb=bb47f1005eabd32848497388bf0e99012b6fd1cf;p=mailer.git diff --git a/inc/databases.php b/inc/databases.php index 6fc682b4ba..077769c4f0 100644 --- a/inc/databases.php +++ b/inc/databases.php @@ -1,7 +1,7 @@ "%uid%", // User-ID - 'surname' => "%vorname%", // Surname - 'family' => "%nachname%", // Family name - 'gender' => "%anrede%", // Gender -); +// Server-URL (DO NOT CHANGE THIS OR YOU CANNOT CHECK FOR UPDATES!) +setConfigEntry('SERVER_URL', 'http://mxchange.org'); // One day -$_CONFIG['one_day'] = 60*60*24; - -// -// Timestamp for yesterday, today ... all at 00:00 am -define('START_YDAY', MAKE_TIME(0, 0, 0, time() - getConfig('one_day'))); -define('START_TDAY', MAKE_TIME(0, 0, 0, time())); - -$COOKIES = substr(URL, strpos(substr(URL, 8), "/") + 8); -if ((strpos($COOKIES, "/") == "0") && (strpos(substr(URL, 8), "/") > 0)) { - // Script was installed into a sub directory - if (substr($COOKIES, -1) != "/") $COOKIES .= "/"; -} else { - // No more sub directories added to URL - $COOKIES = "/"; -} +setConfigEntry('ONE_DAY', (60*60*24)); -// Cookie-Path ( for lame servers... ;-) ) -define('COOKIE_PATH', $COOKIES); +// HTTP-EOL +setConfigEntry('HTTP_EOL', "\r\n"); -// Server-URL (DO NOT CHANGE THIS OR YOU CANNOT CHECK FOR UPDATES/EXTENSIONS!) -define('SERVER_URL', "http://www.mxchange.org"); +// CFG: DEBUG-SQL (if enabled and DEBUG_MODE is enabled all SQL queries will be logged to debug.log) +setConfigEntry('DEBUG_SQL', 'N'); -// Current SVN revision -define('CURR_SVN_REVISION', "712"); - -// Take a prime number which is long (if you know a longer one please try it out!) -define('_PRIME', 591623); - -// Calculate "entropy" with the prime number (for code generation) -define('_ADD', (_PRIME * _PRIME / (pi() * getConfig('code_length') + 1))); - -// Random number for e.g. "cache-buster" used in OpenX script -define('CACHE_BUSTER', mt_rand(1000000, 9999999)); +// CFG: ENCRYPT-SEPARATOR +setConfigEntry('ENCRYPT_SEPARATOR', ':'); // Extra title is empty by default -$EXTRA_TITLE = ""; +setExtraTitle(''); + +// Time unit translations +$GLOBALS['time_units'] = array( + // Data value -> string-representation + 'Y' => 'YEAR', + 'M' => 'MONTH', + 'W' => 'WEEK', + 'D' => 'DAY', + 'h' => 'HOUR', + 'm' => 'MINUTE', + 's' => 'SECOND', +); -// +// [EOF] ?>