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 1/2] 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) From a6f64d65646dfda9426eb77d3406ec5d706f3536 Mon Sep 17 00:00:00 2001 From: bacz <57490121+bacz00@users.noreply.github.com> Date: Tue, 13 Jun 2023 01:04:36 +0800 Subject: [PATCH 2/2] fix: misspelling of modcomment --- public/modtask.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/modtask.php b/public/modtask.php index b2f7817f..7bcceeb6 100644 --- a/public/modtask.php +++ b/public/modtask.php @@ -115,7 +115,7 @@ if ($action == "edituser") } if ($arr['username'] != $username){ $updateset[] = "username = " . sqlesc($username); - $modcomment = date("Y-m-d") . " - Usernmae changed from $arr[username] to $username by {$CURUSER['username']}.\n". $modcomment; + $modcomment = date("Y-m-d") . " - Username changed from $arr[username] to $username by {$CURUSER['username']}.\n". $modcomment; $subject = sqlesc($lang_modtask_target[get_user_lang($userid)]['msg_username_change']); $msg = sqlesc($lang_modtask_target[get_user_lang($userid)]['msg_your_username_changed_from'].$arr['username'].$lang_modtask_target[get_user_lang($userid)]['msg_to_new'] . $username .$lang_modtask_target[get_user_lang($userid)]['msg_by'].$CURUSER['username']); sql_query("INSERT INTO messages (sender, receiver, subject, msg, added) VALUES(0, $userid, $subject, $msg, $added)") or sqlerr(__FILE__, __LINE__);