mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-10 01:25:33 +02:00
Altered ban checking, this will be replaced by auth I think
git-svn-id: file:///svn/phpbb/trunk@271 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
40e59aad2b
commit
caaf04c197
@ -249,7 +249,24 @@ function session_pagestart($user_ip, $thispage_id, $session_length)
|
|||||||
if(isset($userdata['user_id']))
|
if(isset($userdata['user_id']))
|
||||||
{
|
{
|
||||||
|
|
||||||
/* if($userdata['ban_ip'] || $userdata['ban_userid'])
|
//
|
||||||
|
// Initial ban check against IP and userid
|
||||||
|
// Is this really needed in this form?
|
||||||
|
// The new auth system will probably take care
|
||||||
|
// of all this on a fair 'fairier' level
|
||||||
|
//
|
||||||
|
/* $sql = "SELECT ban_ip, ban_userid
|
||||||
|
FROM ".BANLIST_TABLE."
|
||||||
|
WHERE (ban_ip = '$int_ip' OR ban_userid = '".$userdata['user_id']."')
|
||||||
|
AND (ban_start < $current_time AND ban_end > $current_time )";
|
||||||
|
$ban_result = $db->sql_query($sql);
|
||||||
|
if (!$ban_result)
|
||||||
|
{
|
||||||
|
error_die(SQL_QUERY, "Couldn't obtain ban information.", __LINE__, __FILE__);
|
||||||
|
}
|
||||||
|
$ban_info = $db->sql_fetchrow($ban_result);
|
||||||
|
|
||||||
|
if($ban_info['ban_ip'] || $ban_info['ban_userid'])
|
||||||
{
|
{
|
||||||
error_die(BANNED);
|
error_die(BANNED);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user