aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/auth/auth_apache.php
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2005-12-16 19:05:51 +0000
committerNils Adermann <naderman@naderman.de>2005-12-16 19:05:51 +0000
commit7342652804ed245c89185e2c77e40ce03ab00270 (patch)
tree77d9bb5ccd8dd17f1e86db64b84c5829fa5d8ac9 /phpBB/includes/auth/auth_apache.php
parent67dfce31a93d43957355a50013d3100663dc567b (diff)
downloadforums-7342652804ed245c89185e2c77e40ce03ab00270.tar
forums-7342652804ed245c89185e2c77e40ce03ab00270.tar.gz
forums-7342652804ed245c89185e2c77e40ce03ab00270.tar.bz2
forums-7342652804ed245c89185e2c77e40ce03ab00270.tar.xz
forums-7342652804ed245c89185e2c77e40ce03ab00270.zip
- Apache auth plugin is working again
- LDAP auth plugin now supports OpenLDAP - fixed Authentication settings in ACP - preparatory ACP changes for the search git-svn-id: file:///svn/phpbb/trunk@5340 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/auth/auth_apache.php')
-rw-r--r--phpBB/includes/auth/auth_apache.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/includes/auth/auth_apache.php b/phpBB/includes/auth/auth_apache.php
index fdd5d9e8fa..b35ec09db0 100644
--- a/phpBB/includes/auth/auth_apache.php
+++ b/phpBB/includes/auth/auth_apache.php
@@ -25,12 +25,12 @@ function login_apache(&$username, &$password)
{
global $db;
- $php_auth_user = (!empty($_SERVER['PHP_AUTH_USER'])) ? $_SERVER['PHP_AUTH_USER'] : $_GET['PHP_AUTH_USER'];
- $php_auth_pw = (!empty($_SERVER['PHP_AUTH_PW'])) ? $_SERVER['PHP_AUTH_PW'] : $_GET['PHP_AUTH_PW'];
+ $php_auth_user = $_SERVER['PHP_AUTH_USER'];
+ $php_auth_pw = $_SERVER['PHP_AUTH_PW'];
- if ($php_auth_user && $php_auth_pw)
+ if ((!empty($php_auth_user)) && (!empty($php_auth_pw)))
{
- $sql = ' user_id, username, user_password, user_passchg, user_email, user_type
+ $sql = 'SELECT 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);