mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-26 09:44:26 +02:00
- session changes
git-svn-id: file:///svn/phpbb/trunk@5247 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -16,7 +16,7 @@ $phpEx = substr(strrchr(__FILE__, '.'), 1);
|
||||
include($phpbb_root_path . 'common.'.$phpEx);
|
||||
|
||||
// Start session management
|
||||
$user->start();
|
||||
$user->session_begin();
|
||||
$auth->acl($user->data);
|
||||
$user->setup(array('memberlist', 'groups'));
|
||||
|
||||
@@ -56,7 +56,7 @@ $sort_dir = request_var('sd', 'a');
|
||||
|
||||
// Grab rank information for later
|
||||
$ranks = array();
|
||||
obtain_ranks($ranks);
|
||||
$cache->obtain_ranks($ranks);
|
||||
|
||||
|
||||
// What do you want to do today? ... oops, I think that line is taken ...
|
||||
@@ -275,9 +275,6 @@ switch ($mode)
|
||||
|
||||
case 'viewprofile':
|
||||
// Display a profile
|
||||
$page_title = sprintf($user->lang['VIEWING_PROFILE'], $row['username']);
|
||||
$template_html = 'memberlist_view.html';
|
||||
|
||||
if ($user_id == ANONYMOUS)
|
||||
{
|
||||
trigger_error('NO_USER');
|
||||
@@ -509,7 +506,12 @@ switch ($mode)
|
||||
$template->assign_block_vars('custom_fields', $field_data);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
// Now generate page tilte
|
||||
$page_title = sprintf($user->lang['VIEWING_PROFILE'], $member['username']);
|
||||
$template_html = 'memberlist_view.html';
|
||||
|
||||
break;
|
||||
|
||||
case 'email':
|
||||
// Send an email
|
||||
@@ -1136,7 +1138,6 @@ switch ($mode)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
// Output the page
|
||||
page_header($page_title);
|
||||
|
||||
|
Reference in New Issue
Block a user