diff options
| author | Ludovic Arnaud <ludovic_arnaud@users.sourceforge.net> | 2002-10-09 19:50:48 +0000 |
|---|---|---|
| committer | Ludovic Arnaud <ludovic_arnaud@users.sourceforge.net> | 2002-10-09 19:50:48 +0000 |
| commit | 369189806bf4bf85fe0409e6f66919ab4f4b70cd (patch) | |
| tree | 988680c7700c818b42e2170a9d7d887efa3c812b /phpBB/includes/session.php | |
| parent | ac4b54ff4dea78aaeec015685b1c02a66449f1f1 (diff) | |
| download | forums-369189806bf4bf85fe0409e6f66919ab4f4b70cd.tar forums-369189806bf4bf85fe0409e6f66919ab4f4b70cd.tar.gz forums-369189806bf4bf85fe0409e6f66919ab4f4b70cd.tar.bz2 forums-369189806bf4bf85fe0409e6f66919ab4f4b70cd.tar.xz forums-369189806bf4bf85fe0409e6f66919ab4f4b70cd.zip | |
Added the redirect() function for nice and clean redirection.
git-svn-id: file:///svn/phpbb/trunk@2948 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/session.php')
| -rw-r--r-- | phpBB/includes/session.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/phpBB/includes/session.php b/phpBB/includes/session.php index ed2bc840a8..0dd9ebd8e1 100644 --- a/phpBB/includes/session.php +++ b/phpBB/includes/session.php @@ -442,9 +442,9 @@ class auth { global $db; - if ( !($this->founder = $userdata['user_founder']) ) + if (!$this->founder = $userdata['user_founder']) { - $in_sql = '\'a_\', \'f_list\''; + $in_sql = "'a_', 'f_list'"; if ( $options ) { @@ -452,7 +452,7 @@ class auth { foreach ( $options as $option ) { - $in_sql .= ', \'' . $option . '\''; + $in_sql .= ", '$option'"; } } else @@ -468,8 +468,8 @@ class auth // The possible alternative here is to store the options in a file // (perhaps with the other config data) and do away with this query. - $sql = "SELECT auth_option_id, auth_value - FROM " . ACL_OPTIONS_TABLE . " + $sql = 'SELECT auth_option_id, auth_value + FROM ' . ACL_OPTIONS_TABLE . " WHERE auth_value IN ($in_sql) $or_sql"; $result = $db->sql_query($sql); @@ -527,7 +527,7 @@ class auth } */ } - +$this->acl_cache($userdata); return; } |
