mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
fix: ip banned feedback
This commit is contained in:
@@ -1610,7 +1610,7 @@ function failedloginscheck ($type = 'Login') {
|
||||
list($total) = mysql_fetch_array($Query);
|
||||
if ($total >= $maxloginattempts) {
|
||||
sql_query("UPDATE loginattempts SET banned = 'yes' WHERE ip=$ip") or sqlerr(__FILE__, __LINE__);
|
||||
stderr($type.$lang_functions['std_locked'].$type.$lang_functions['std_attempts_reached'], $lang_functions['std_your_ip_banned'], true, true);
|
||||
stderr($type.$lang_functions['std_locked'].$maxloginattempts.$lang_functions['std_attempts_reached'], $lang_functions['std_your_ip_banned'], true, true);
|
||||
}
|
||||
}
|
||||
function failedlogins ($type = 'login', $recover = false, $head = true)
|
||||
|
||||
Reference in New Issue
Block a user