mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Merge pull request #4176 from Elsensee/ticket/14409
[ticket/14409] Update session page info before displaying online list
This commit is contained in:
commit
9590ff3c18
4 changed files with 8 additions and 4 deletions
|
@ -4969,6 +4969,8 @@ function page_header($page_title = '', $display_online_list = false, $item_id =
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$user->update_session_infos();
|
||||||
|
|
||||||
// Generate logged in/logged out status
|
// Generate logged in/logged out status
|
||||||
if ($user->data['user_id'] != ANONYMOUS)
|
if ($user->data['user_id'] != ANONYMOUS)
|
||||||
{
|
{
|
||||||
|
@ -5395,8 +5397,6 @@ function page_footer($run_cron = true, $display_template = true, $exit_handler =
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$user->update_session_infos();
|
|
||||||
|
|
||||||
phpbb_check_and_display_sql_report($request, $auth, $db);
|
phpbb_check_and_display_sql_report($request, $auth, $db);
|
||||||
|
|
||||||
$template->assign_vars(array(
|
$template->assign_vars(array(
|
||||||
|
|
|
@ -55,6 +55,8 @@ function adm_page_header($page_title)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$user->update_session_infos();
|
||||||
|
|
||||||
// gzip_compression
|
// gzip_compression
|
||||||
if ($config['gzip_compress'])
|
if ($config['gzip_compress'])
|
||||||
{
|
{
|
||||||
|
@ -164,8 +166,6 @@ function adm_page_footer($copyright_html = true)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$user->update_session_infos();
|
|
||||||
|
|
||||||
phpbb_check_and_display_sql_report($request, $auth, $db);
|
phpbb_check_and_display_sql_report($request, $auth, $db);
|
||||||
|
|
||||||
$template->assign_vars(array(
|
$template->assign_vars(array(
|
||||||
|
|
|
@ -1583,6 +1583,8 @@ class session
|
||||||
|
|
||||||
$db->sql_return_on_error(false);
|
$db->sql_return_on_error(false);
|
||||||
|
|
||||||
|
$this->data = array_merge($this->data, $sql_ary);
|
||||||
|
|
||||||
if ($this->data['user_id'] != ANONYMOUS && !empty($config['new_member_post_limit']) && $this->data['user_new'] && $config['new_member_post_limit'] <= $this->data['user_posts'])
|
if ($this->data['user_id'] != ANONYMOUS && !empty($config['new_member_post_limit']) && $this->data['user_new'] && $config['new_member_post_limit'] <= $this->data['user_posts'])
|
||||||
{
|
{
|
||||||
$this->leave_newly_registered();
|
$this->leave_newly_registered();
|
||||||
|
|
|
@ -85,6 +85,8 @@ if ($mode == 'whois' && $auth->acl_get('a_') && $session_id)
|
||||||
page_footer();
|
page_footer();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$user->update_session_infos();
|
||||||
|
|
||||||
// Forum info
|
// Forum info
|
||||||
$sql_ary = array(
|
$sql_ary = array(
|
||||||
'SELECT' => 'f.forum_id, f.forum_name, f.parent_id, f.forum_type, f.left_id, f.right_id',
|
'SELECT' => 'f.forum_id, f.forum_name, f.parent_id, f.forum_type, f.left_id, f.right_id',
|
||||||
|
|
Loading…
Add table
Reference in a new issue