mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Update sessions.php
This commit is contained in:
parent
7c991465cd
commit
dff2f81f64
@ -240,7 +240,7 @@ class user_common
|
||||
|
||||
$where_sql = "ban_ip IN('". USER_IP ."', '$ip[1]$ip[2]$ip[3]ff', '$ip[1]$ip[2]ffff', '$ip[1]ffffff')";
|
||||
$where_sql .= ($login) ? " OR ban_userid = $user_id" : '';
|
||||
$where_sql .= ($login) ? " OR ban_email = $user_email" : ''; // Check by email
|
||||
$where_sql .= ($login) ? " OR ban_email = '$user_email'" : ''; // Check by email
|
||||
|
||||
$sql = "SELECT ban_id FROM ". BB_BANLIST ." WHERE $where_sql LIMIT 1";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user