1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

Improved check to ban IP address

This commit is contained in:
nlstart
2010-12-17 14:49:08 +00:00
parent 97abc21b35
commit a5661bf40e

View File

@@ -1674,9 +1674,9 @@ class users
} }
else else
{ {
if ($sql->db_Count("user","(*)","WHERE user_ip = '{$row['user_ip']}'") > 1) if ($sql->db_Count("user","(*)","WHERE user_ip = '{$row['user_ip']}' AND user_ban='0'") > 1)
{ {
// Multiple users have same IP address // Multiple unbanned users have same IP address
$this->show_message(str_replace("{IP}",$row['user_ip'],USRLAN_136)); $this->show_message(str_replace("{IP}",$row['user_ip'],USRLAN_136));
} }
else else