From a47fa4d6cab862a9635f3e30d01ad2740c45a888 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Wed, 15 Oct 2003 17:43:07 +0000 Subject: Remove need for session_ids for "allowed" bots, dump user_founder/user_active in favour of user_type, new user_type, USER_IGNORE git-svn-id: file:///svn/phpbb/trunk@4603 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/auth/auth_apache.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'phpBB/includes/auth/auth_apache.php') diff --git a/phpBB/includes/auth/auth_apache.php b/phpBB/includes/auth/auth_apache.php index d9b00f5435..3a9fa90cd9 100644 --- a/phpBB/includes/auth/auth_apache.php +++ b/phpBB/includes/auth/auth_apache.php @@ -20,7 +20,7 @@ function login_apache(&$username, &$password) if ($php_auth_user && $php_auth_pw) { - $sql = ' user_id, username, user_password, user_passchg, user_email, user_active + $sql = ' user_id, username, user_password, user_passchg, user_email, user_type FROM ' . USERS_TABLE . " WHERE username = '" . $db->sql_escape($username) . "'"; $result = $db->sql_query($sql); @@ -28,7 +28,7 @@ function login_apache(&$username, &$password) if ($row = $db->sql_fetchrow($result)) { $db->sql_freeresult($result); - return (empty($row['user_active'])) ? 0 : $row; + return ($row['user_type'] == USER_INACTIVE || $row['user_type'] == USER_IGNORE) ? 0 : $row; } } -- cgit v1.2.1