1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 14:46:56 +02:00

Improved check to ban IP address

This commit is contained in:
nlstart
2011-01-13 14:48:58 +00:00
parent 01d690bdc0
commit 9d6d7c13f1

View File

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