mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 06:07:32 +02:00
Improved check to ban IP address; thanks McFly
This commit is contained in:
@@ -1674,7 +1674,7 @@ class users
|
||||
}
|
||||
else
|
||||
{
|
||||
if($sql->db_Count("user", "(*)", "WHERE user_ip = '{$row['user_ip']}' AND user_ban='0' AND user_id <> '".$user_id."' ") > 0)
|
||||
if($sql->db_Count('user', '(*)', "WHERE user_ip = '{$row['user_ip']}' AND user_ban=0 AND user_id <> {$user_id}") > 0)
|
||||
{
|
||||
// Other unbanned users have same IP address
|
||||
$this->show_message(str_replace("{IP}",$row['user_ip'],USRLAN_136));
|
||||
@@ -2398,4 +2398,4 @@ function RankImageDropdown(&$imgList, $field, $curVal = '')
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
?>
|
Reference in New Issue
Block a user