mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
Timed ban check
git-svn-id: file:///svn/phpbb/trunk@2743 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
9b35e2b168
commit
58f3dea5cc
1 changed files with 3 additions and 1 deletions
|
@ -193,7 +193,9 @@ class session {
|
||||||
|
|
||||||
$sql = "SELECT ban_ip, ban_userid, ban_email
|
$sql = "SELECT ban_ip, ban_userid, ban_email
|
||||||
FROM " . BANLIST_TABLE . "
|
FROM " . BANLIST_TABLE . "
|
||||||
WHERE ban_ip IN (
|
WHERE ( ban_start + ban_length <= $current_time
|
||||||
|
OR ban_length = 0 )
|
||||||
|
AND ban_ip IN (
|
||||||
'" . $user_ip_parts[0] . ".',
|
'" . $user_ip_parts[0] . ".',
|
||||||
'" . $user_ip_parts[0] . "." . $user_ip_parts[1] . ".',
|
'" . $user_ip_parts[0] . "." . $user_ip_parts[1] . ".',
|
||||||
'" . $user_ip_parts[0] . "." . $user_ip_parts[1] . "." . $user_ip_parts[2] . ".',
|
'" . $user_ip_parts[0] . "." . $user_ip_parts[1] . "." . $user_ip_parts[2] . ".',
|
||||||
|
|
Loading…
Add table
Reference in a new issue