diff options
| author | Horus3 | 2014-03-29 20:26:26 +0100 |
|---|---|---|
| committer | Horus3 | 2014-03-29 20:26:26 +0100 |
| commit | f471b2130461efa25c62dbe8b015da6219cf3498 (patch) | |
| tree | 1205716f618bee59e9d3a60f2a65c051f8f541e7 /www/functions/func_login.php | |
| parent | ea8083d7162a099a8a2e1a7976ecd1e5278a5558 (diff) | |
| download | files.iamfabulous.de-f471b2130461efa25c62dbe8b015da6219cf3498.tar.gz | |
Improved the ban system and the download mechanism.
Diffstat (limited to 'www/functions/func_login.php')
| -rwxr-xr-x | www/functions/func_login.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/www/functions/func_login.php b/www/functions/func_login.php index 121849c..a4d4696 100755 --- a/www/functions/func_login.php +++ b/www/functions/func_login.php @@ -55,7 +55,6 @@ function brutforce_protection($db){ $_SESSION["login_attempts"] = $_SESSION["login_attempts"] - 1; if($_SESSION["login_attempts"] <= 0){ - $_SESSION["banned"] = true; $remote_ip = $_SERVER["REMOTE_ADDR"]; $session_id = session_id(); $time = $_SERVER["REQUEST_TIME"]; @@ -81,8 +80,8 @@ function check_if_banned($db){ $accepted_time = $_SERVER["REQUEST_TIME"] - 21600; // == 6h if($check_ar[0] < $accepted_time){ - return true; // not longer banned + return false; // not longer banned } else { - return false; // still banned + return true; // still banned } } |
