aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/auth
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2008-01-08 06:44:05 +0000
committerDavid M <davidmj@users.sourceforge.net>2008-01-08 06:44:05 +0000
commit370e189f156730f3ea602052737fb6995c85c23c (patch)
treedac369961ff10f5a31f6ad40318afb8702b31e4d /phpBB/includes/auth
parentb4e64655afc6279d7c64a952ee5f43fe65751c19 (diff)
downloadforums-370e189f156730f3ea602052737fb6995c85c23c.tar
forums-370e189f156730f3ea602052737fb6995c85c23c.tar.gz
forums-370e189f156730f3ea602052737fb6995c85c23c.tar.bz2
forums-370e189f156730f3ea602052737fb6995c85c23c.tar.xz
forums-370e189f156730f3ea602052737fb6995c85c23c.zip
- make viewforum work again
- remove the lower case functions, they were stupid anyway - added some indexes - added a group_name_clean column git-svn-id: file:///svn/phpbb/trunk@8315 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/auth')
-rw-r--r--phpBB/includes/auth/auth_apache.php2
-rw-r--r--phpBB/includes/auth/auth_ldap.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/auth/auth_apache.php b/phpBB/includes/auth/auth_apache.php
index ed3951dd7b..50a49ee21e 100644
--- a/phpBB/includes/auth/auth_apache.php
+++ b/phpBB/includes/auth/auth_apache.php
@@ -188,7 +188,7 @@ function user_row_apache($username, $password)
// first retrieve default group id
$sql = 'SELECT group_id
FROM ' . GROUPS_TABLE . "
- WHERE group_name = '" . $db->sql_escape('REGISTERED') . "'
+ WHERE group_name_clean = '" . $db->sql_escape('registered') . "'
AND group_type = " . GROUP_SPECIAL;
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
diff --git a/phpBB/includes/auth/auth_ldap.php b/phpBB/includes/auth/auth_ldap.php
index 472927ace3..9507dc645a 100644
--- a/phpBB/includes/auth/auth_ldap.php
+++ b/phpBB/includes/auth/auth_ldap.php
@@ -198,7 +198,7 @@ function login_ldap(&$username, &$password)
// retrieve default group id
$sql = 'SELECT group_id
FROM ' . GROUPS_TABLE . "
- WHERE group_name = '" . $db->sql_escape('REGISTERED') . "'
+ WHERE group_name_clean = '" . $db->sql_escape('registered') . "'
AND group_type = " . GROUP_SPECIAL;
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);