X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fdatabases.php;h=3e8a598101309737cb495299335a4290d60eeb10;hp=f0e384bf4fb97773144b2570e584803ddcbc9f8f;hb=e71e9e1380d65ccd06beef6fbc594bec10371f5f;hpb=e5676824c6657556f866057ffa33cb78826c8f89 diff --git a/inc/databases.php b/inc/databases.php index f0e384bf4f..3e8a598101 100644 --- a/inc/databases.php +++ b/inc/databases.php @@ -93,29 +93,11 @@ $_CONFIG['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())); -$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"); // Current SVN revision -define('CURR_SVN_REVISION', "662"); +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); @@ -123,7 +105,7 @@ 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 +// Random number for e.g. the "cache-buster" used in OpenX script define('CACHE_BUSTER', mt_rand(1000000, 9999999)); // Extra title is empty by default