diff options
| author | root | 2014-04-16 13:49:08 +0200 |
|---|---|---|
| committer | root | 2014-04-16 13:49:08 +0200 |
| commit | e5447d0702de9733f14d5d6ff1e1b46aac9335af (patch) | |
| tree | 9476dcde685c9329ebb6baa540a46c7349eed532 /www/functions/func_login.php | |
| parent | b70acc4bce1450a726cf50a2f2f09539d74252b0 (diff) | |
| download | files.iamfabulous.de-e5447d0702de9733f14d5d6ff1e1b46aac9335af.tar.gz | |
Comments.
Diffstat (limited to 'www/functions/func_login.php')
| -rwxr-xr-x | www/functions/func_login.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/www/functions/func_login.php b/www/functions/func_login.php index afd116c..943e20e 100755 --- a/www/functions/func_login.php +++ b/www/functions/func_login.php @@ -64,7 +64,7 @@ function brutforce_protection($db){ BEGIN TRANSACTION; INSERT INTO banned_user (id, ip, session_id, time) VALUES (NULL, '".SQLite3::escapeString($remote_ip)."', '".SQLite3::escapeString($session_id)."', ".$time."); COMMIT; - ") + "); banned(); } else { @@ -95,7 +95,7 @@ function check_if_banned($db){ $accepted_time = $_SERVER["REQUEST_TIME"] - 21600; // == 6h $db->exec("DELETE FROM banned_user WHERE time<'".$accepted_time."'"); - if($log_at <= 0) + if($log_at <= 0){ if ($check_ar[0] >= $accepted_time){ return true; // still banned } |
