Line 59 | Line 59 |
---|
// Whois requested if ($mode == 'whois' && $auth->acl_get('a_') && $session_id)
|
// Whois requested if ($mode == 'whois' && $auth->acl_get('a_') && $session_id)
|
| { if (!function_exists('user_get_id_name'))
|
{ include($phpbb_root_path . 'includes/functions_user.' . $phpEx);
|
{ include($phpbb_root_path . 'includes/functions_user.' . $phpEx);
|
| }
|
$sql = 'SELECT u.user_id, u.username, u.user_type, s.session_ip FROM ' . USERS_TABLE . ' u, ' . SESSIONS_TABLE . " s
| $sql = 'SELECT u.user_id, u.username, u.user_type, s.session_ip FROM ' . USERS_TABLE . ' u, ' . SESSIONS_TABLE . " s
|
Line 84 | Line 87 |
---|
page_footer(); }
|
page_footer(); }
|
| $user->update_session_infos();
|
// Forum info $sql_ary = array(
| // Forum info $sql_ary = array(
|
Line 166 | Line 171 |
---|
* @var int guest_counter Number of guests displayed * @var array forum_data Array with forum data * @since 3.1.0-a1
|
* @var int guest_counter Number of guests displayed * @var array forum_data Array with forum data * @since 3.1.0-a1
|
* @change 3.1.0-a2 Added vars guest_counter and forum_data
| * @changed 3.1.0-a2 Added vars guest_counter and forum_data
|
*/ $vars = array('sql_ary', 'show_guests', 'guest_counter', 'forum_data'); extract($phpbb_dispatcher->trigger_event('core.viewonline_modify_sql', compact($vars)));
| */ $vars = array('sql_ary', 'show_guests', 'guest_counter', 'forum_data'); extract($phpbb_dispatcher->trigger_event('core.viewonline_modify_sql', compact($vars)));
|
Line 187 | Line 192 |
---|
if (!$row['session_viewonline']) {
|
if (!$row['session_viewonline']) {
|
$view_online = ($auth->acl_get('u_viewonline')) ? true : false;
| $view_online = ($auth->acl_get('u_viewonline') || $row['user_id'] === $user->data['user_id']) ? true : false;
|
$logged_hidden_online++;
$username_full = '<em>' . $username_full . '</em>';
| $logged_hidden_online++;
$username_full = '<em>' . $username_full . '</em>';
|
Line 383 | Line 388 |
---|
* @var string location_url Page url to displayed in the list * @var array forum_data Array with forum data * @since 3.1.0-a1
|
* @var string location_url Page url to displayed in the list * @var array forum_data Array with forum data * @since 3.1.0-a1
|
* @change 3.1.0-a2 Added var forum_data
| * @changed 3.1.0-a2 Added var forum_data
|
*/ $vars = array('on_page', 'row', 'location', 'location_url', 'forum_data'); extract($phpbb_dispatcher->trigger_event('core.viewonline_overwrite_location', compact($vars)));
| */ $vars = array('on_page', 'row', 'location', 'location_url', 'forum_data'); extract($phpbb_dispatcher->trigger_event('core.viewonline_overwrite_location', compact($vars)));
|