X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=0.2.1%2Finc%2Fdatabases.php;fp=0.2.1%2Finc%2Fdatabases.php;h=4e453ed9a0a7ed70d4fa713d700f9ab366396216;hp=a24c5a2836949da57391bfde944504a9b36c1170;hb=7bc25dd08431c94ce9edca131d56c1a36b13c28a;hpb=157ee010917df5ca07e6d31b42f67417b2516d74 diff --git a/0.2.1/inc/databases.php b/0.2.1/inc/databases.php index a24c5a2836..4e453ed9a0 100644 --- a/0.2.1/inc/databases.php +++ b/0.2.1/inc/databases.php @@ -1,129 +1,129 @@ - "%uid%", // User-ID - 11 => "%vorname%", // Surname - 12 => "%nachname%", // Family name - 13 => "%anrede%", // Salutation -); -// -// One day -define('ONE_DAY', 60*60*24); - -// -// Timestamp for yesterday, today ... all at 00:00 am -define('START_YDAY', MAKE_TIME(0, 0, 0, time() - 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 = "/"; -} - -// Cookie-Path ( for lame servers... ;-) ) -define('COOKIE_PATH', $COOKIES); - -// Base directory for access logfiles -define('LOGS_BASE', "logs"); - -// Base directory for usage statistics -define('USAGE_BASE', "usage"); - -// Server-URL (DO NOT CHANGE THIS OR YOU CANNOT CHECK FOR UPDATES/EXTENSIONS!) -define('SERVER_URL', "http://www.mxchange.org"); - -// This current patch level -define('CURR_PATCH_LEVEL', "514"); - -// Take a prime number which is long (if you know a longer one please try it out!) -define('_PRIME', 591623); - -// Calculate with the prime number (for code generation) -define('_ADD', (_PRIME * _PRIME / (pi() * $CONFIG['code_length'] + 1))); - -// -?> + "%uid%", // User-ID + 11 => "%vorname%", // Surname + 12 => "%nachname%", // Family name + 13 => "%anrede%", // Salutation +); +// +// One day +define('ONE_DAY', 60*60*24); + +// +// Timestamp for yesterday, today ... all at 00:00 am +define('START_YDAY', MAKE_TIME(0, 0, 0, time() - 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 = "/"; +} + +// Cookie-Path ( for lame servers... ;-) ) +define('COOKIE_PATH', $COOKIES); + +// Base directory for access logfiles +define('LOGS_BASE', "logs"); + +// Base directory for usage statistics +define('USAGE_BASE', "usage"); + +// Server-URL (DO NOT CHANGE THIS OR YOU CANNOT CHECK FOR UPDATES/EXTENSIONS!) +define('SERVER_URL', "http://www.mxchange.org"); + +// This current patch level +define('CURR_PATCH_LEVEL', "514"); + +// Take a prime number which is long (if you know a longer one please try it out!) +define('_PRIME', 591623); + +// Calculate with the prime number (for code generation) +define('_ADD', (_PRIME * _PRIME / (pi() * $CONFIG['code_length'] + 1))); + +// +?>