Timed ban check

git-svn-id: file:///svn/phpbb/trunk@2743 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen 2002-07-26 12:14:41 +00:00
parent 9b35e2b168
commit 58f3dea5cc

View file

@ -193,7 +193,9 @@ class session {
$sql = "SELECT ban_ip, ban_userid, ban_email
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[1] . ".',
'" . $user_ip_parts[0] . "." . $user_ip_parts[1] . "." . $user_ip_parts[2] . ".',