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@4259 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
be9def57a9
commit
fd0e18c262
1 changed files with 3 additions and 3 deletions
|
@ -27,15 +27,15 @@ include($phpbb_root_path . 'common.'.$phpEx);
|
|||
|
||||
// Start session management
|
||||
$user->start();
|
||||
$user->setup();
|
||||
$auth->acl($user->data);
|
||||
|
||||
$user->setup();
|
||||
|
||||
|
||||
// Get and set some variables
|
||||
$sort_key = (!empty($_REQUEST['sk'])) ? htmlspecialchars($_REQUEST['sk']) : 'b';
|
||||
$sort_dir = (!empty($_REQUEST['sd'])) ? htmlspecialchars($_REQUEST['sd']) : 'd';
|
||||
|
||||
|
||||
|
||||
$sort_key_text = array('a' => $user->lang['SORT_USERNAME'], 'b' => $user->lang['SORT_LOCATION'], 'c' => $user->lang['SORT_JOINED']);
|
||||
$sort_key_sql = array('a' => 'username', 'b' => 'session_time', 'c' => 'session_page');
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue