X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fdatabases.php;h=1440b292b6af495a3b525acb1b1a51d6f9d26a55;hp=fb6ab7ef2f02b9e795b2a4d7dc576a138fae4f2d;hb=7d96ffc18679f7aeb05ce3ab091f200c4a18f144;hpb=4d6226782aa4ba157dca8c3891412ba50159481f diff --git a/inc/databases.php b/inc/databases.php index fb6ab7ef2f..1440b292b6 100644 --- a/inc/databases.php +++ b/inc/databases.php @@ -93,13 +93,10 @@ 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)) -{ +if ((strpos($COOKIES, "/") == "0") && (strpos(substr(URL, 8), "/") > 0)) { // Script was installed into a sub directory if (substr($COOKIES, -1) != "/") $COOKIES .= "/"; -} - else -{ +} else { // No more sub directories added to URL $COOKIES = "/"; } @@ -117,13 +114,13 @@ define('USAGE_BASE', "usage"); define('SERVER_URL', "http://www.mxchange.org"); // This current patch level -define('CURR_PATCH_LEVEL', "514"); +define('CURR_SVN_REVISION', "279"); // 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))); +// Calculate "entropy" with the prime number (for code generation) +define('_ADD', (_PRIME * _PRIME / (pi() * $_CONFIG['code_length'] + 1))); // ?>