From d72fab4502507a1841b76d670b17195986802e13 Mon Sep 17 00:00:00 2001 From: bacz <57490121+bacz00@users.noreply.github.com> Date: Tue, 13 Jun 2023 01:02:44 +0800 Subject: [PATCH] fix: ip banned feedback --- include/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/functions.php b/include/functions.php index 41759392..f9f419e8 100644 --- a/include/functions.php +++ b/include/functions.php @@ -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)