mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
Re-arrange auth and setup calls ... needs to be repeated for all major scripts
git-svn-id: file:///svn/phpbb/trunk@4261 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
dd8e9527cc
commit
405cac7b99
2 changed files with 5 additions and 4 deletions
|
@ -30,8 +30,8 @@ $mark_read = (isset($_REQUEST['mark'])) ? $_REQUEST['mark'] : '';
|
|||
|
||||
// Start session management
|
||||
$user->start();
|
||||
$user->setup();
|
||||
$auth->acl($user->data);
|
||||
$user->setup();
|
||||
|
||||
// Handle marking posts
|
||||
if ($mark_read == 'forums')
|
||||
|
@ -98,8 +98,8 @@ else
|
|||
|
||||
|
||||
// Grab group details for legend display
|
||||
$sql = "SELECT group_name, group_colour, group_type
|
||||
FROM " . GROUPS_TABLE . "
|
||||
$sql = 'SELECT group_name, group_colour, group_type
|
||||
FROM ' . GROUPS_TABLE . "
|
||||
WHERE group_colour <> ''
|
||||
AND group_display = 1";
|
||||
$result = $db->sql_query($sql);
|
||||
|
|
|
@ -290,9 +290,10 @@ class ucp extends user
|
|||
|
||||
// Start session management
|
||||
$user->start();
|
||||
$user->setup();
|
||||
$auth->acl($user->data);
|
||||
|
||||
$user->setup();
|
||||
|
||||
// Basic parameter data
|
||||
$mode = (!empty($_REQUEST['mode'])) ? htmlspecialchars($_REQUEST['mode']) : '';
|
||||
$module = (!empty($_REQUEST['i'])) ? intval($_REQUEST['i']) : 1;
|
||||
|
|
Loading…
Add table
Reference in a new issue