diff --git a/index.php b/index.php index e919215..14f2041 100644 --- a/index.php +++ b/index.php @@ -26,6 +26,8 @@ $GLOBALS['config']['IPBANS_FILENAME'] = $GLOBALS['config']['DATADIR'].'/ipbans.p $GLOBALS['config']['BAN_AFTER'] = 4; // Ban duration for IP address after login failures (in seconds) (1800 sec. = 30 minutes) $GLOBALS['config']['BAN_DURATION'] = 1800; +// Use cache +$GLOBALS['config']['USECACHE'] = false; // Page cache directory. $GLOBALS['config']['PAGECACHE'] = 'pagecache'; // Download method @@ -147,10 +149,6 @@ function genToken() { } function verifToken($token) { - if (empty($_SESSION['log']) || $_SESSION['log'] !== true) { - ban(); - die('Tinker say : Ooh! They never miss!'); - } if ($token !== $_SESSION['token'] || $_SESSION['tokenTime'] <= time() - 24000) { ban(); die('Tinker say : I have several theories I would like to put into practice.'); @@ -627,7 +625,7 @@ if (isset($ci['dl']) && !empty($ci['dl'])) {