diff options
Diffstat (limited to 'www/functions')
| -rwxr-xr-x | www/functions/func_login.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/www/functions/func_login.php b/www/functions/func_login.php index 0f9f3e6..121849c 100755 --- a/www/functions/func_login.php +++ b/www/functions/func_login.php @@ -62,10 +62,10 @@ function brutforce_protection($db){ if($db->exec(" BEGIN TRANSACTION; - INSERT INTO banned_user (id, ip, session_id, time) VALUES (NULL, '".SQLite3::escapeString($remote_ip)."', '".SQLite3::escapeString($session_id)."', ".$time."; + INSERT INTO banned_user (id, ip, session_id, time) VALUES (NULL, '".SQLite3::escapeString($remote_ip)."', '".SQLite3::escapeString($session_id)."', ".$time."); COMMIT; ")){ - echo "You are banned. ;_;": + echo "You are banned. ;_;"; } exit; } @@ -76,7 +76,7 @@ function check_if_banned($db){ $remote_ip = $_SERVER["REMOTE_ADDR"]; $session_id = session_id(); $check_db = $db->query("SELECT time FROM banned_user WHERE ip='".SQLite3::escapeString($remote_ip)."' OR session_id='".SQLite3::escapeString($session_id)."';"); - $check_ar = $check_db->fetchArray(SQLITE3_NUM) + $check_ar = $check_db->fetchArray(SQLITE3_NUM); $accepted_time = $_SERVER["REQUEST_TIME"] - 21600; // == 6h |
