From eb7f56a3323a36f308a799e4bb9f8816dc45c2e1 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Sat, 2 Jun 2001 23:01:35 +0000 Subject: Minor change to remove commented out ban check in _pagestart git-svn-id: file:///svn/phpbb/trunk@413 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/sessions.php | 26 ++------------------------ 1 file changed, 2 insertions(+), 24 deletions(-) (limited to 'phpBB') diff --git a/phpBB/includes/sessions.php b/phpBB/includes/sessions.php index ba18c3c9fb..caeb690e8a 100644 --- a/phpBB/includes/sessions.php +++ b/phpBB/includes/sessions.php @@ -52,8 +52,8 @@ function session_begin($user_id, $user_ip, $page_id, $session_length, $login = 0 // $sql = "SELECT ban_ip, ban_userid FROM ".BANLIST_TABLE." - WHERE (ban_ip = '$user_ip' OR ban_userid = $user_id) - AND (ban_start < $current_time AND ban_end > $current_time )"; + WHERE ban_ip = '$user_ip' + OR ban_userid = $user_id"; $result = $db->sql_query($sql); if (!$result) { @@ -248,28 +248,6 @@ function session_pagestart($user_ip, $thispage_id, $session_length) if(isset($userdata['user_id'])) { - // - // 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 = '$user_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); - } -*/ $SID = ($sessionmethod == SESSION_METHOD_GET) ? "sid=".$sessiondata['sessionid'] : ""; // -- cgit v1.2.1