summaryrefslogtreecommitdiff
path: root/www/functions/func_login.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/functions/func_login.php')
-rwxr-xr-xwww/functions/func_login.php4
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
}