From 77b6fe53a2e02ce65c8b29e2d1509ed35d7afa82 Mon Sep 17 00:00:00 2001 From: Knah Tsaeb Date: Fri, 9 Aug 2013 10:21:40 +0200 Subject: [PATCH] [add] option for active or not the cache [fix] not possible to login --- index.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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'])) {