fix: ip banned feedback

This commit is contained in:
bacz
2023-06-13 01:02:44 +08:00
parent 138d6fa744
commit d72fab4502

View File

@@ -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)