root / tags / milestone_3 / phpBB / viewonline.php
History | View | Annotate | Download (10.1 kB)
| 1 | 146 | psotfx | <?php
|
|---|---|---|---|
| 2 | 5114 | acydburn | /**
|
| 3 | 5114 | acydburn | * |
| 4 | 5114 | acydburn | * @package phpBB3 |
| 5 | 5114 | acydburn | * @version $Id$ |
| 6 | 5114 | acydburn | * @copyright (c) 2005 phpBB Group |
| 7 | 5114 | acydburn | * @license http://opensource.org/licenses/gpl-license.php GNU Public License |
| 8 | 5114 | acydburn | * |
| 9 | 5114 | acydburn | */ |
| 10 | 146 | psotfx | |
| 11 | 5114 | acydburn | /**
|
| 12 | 5114 | acydburn | */ |
| 13 | 2305 | psotfx | define('IN_PHPBB', true); |
| 14 | 2448 | psotfx | $phpbb_root_path = './'; |
| 15 | 4441 | psotfx | $phpEx = substr(strrchr(__FILE__, '.'), 1); |
| 16 | 646 | psotfx | include($phpbb_root_path . 'common.'.$phpEx); |
| 17 | 146 | psotfx | |
| 18 | 146 | psotfx | // Start session management
|
| 19 | 5247 | acydburn | $user->session_begin();
|
| 20 | 2958 | psotfx | $auth->acl($user->data); |
| 21 | 4259 | psotfx | $user->setup();
|
| 22 | 3969 | psotfx | |
| 23 | 4259 | psotfx | // Get and set some variables
|
| 24 | 4742 | psotfx | $mode = request_var('mode', ''); |
| 25 | 4743 | psotfx | $session_id = request_var('s', ''); |
| 26 | 4742 | psotfx | $start = request_var('start', 0); |
| 27 | 4742 | psotfx | $sort_key = request_var('sk', 'b'); |
| 28 | 4742 | psotfx | $sort_dir = request_var('sd', 'd'); |
| 29 | 5091 | acydburn | $show_guests= ($config['load_online_guests']) ? request_var('sg', 0) : 0; |
| 30 | 4433 | psotfx | |
| 31 | 4237 | psotfx | $sort_key_text = array('a' => $user->lang['SORT_USERNAME'], 'b' => $user->lang['SORT_LOCATION'], 'c' => $user->lang['SORT_JOINED']); |
| 32 | 5091 | acydburn | $sort_key_sql = array('a' => 'u.username', 'b' => 's.session_time', 'c' => 's.session_page'); |
| 33 | 4237 | psotfx | |
| 34 | 4237 | psotfx | // Sorting and order
|
| 35 | 4441 | psotfx | $order_by = $sort_key_sql[$sort_key] . ' ' . (($sort_dir == 'a') ? 'ASC' : 'DESC'); |
| 36 | 4237 | psotfx | |
| 37 | 4742 | psotfx | // Whois requested
|
| 38 | 4742 | psotfx | if ($mode == 'whois') |
| 39 | 4742 | psotfx | {
|
| 40 | 5091 | acydburn | include($phpbb_root_path . 'includes/functions_user.' . $phpEx); |
| 41 | 4237 | psotfx | |
| 42 | 4742 | psotfx | $sql = 'SELECT u.user_id, u.username, u.user_type, s.session_ip |
| 43 | 5091 | acydburn | FROM ' . USERS_TABLE . ' u, ' . SESSIONS_TABLE . " s |
| 44 | 5091 | acydburn | WHERE s.session_id = '" . $db->sql_escape($session_id) . "' |
| 45 | 5091 | acydburn | AND u.user_id = s.session_user_id";
|
| 46 | 4742 | psotfx | $result = $db->sql_query($sql); |
| 47 | 4742 | psotfx | |
| 48 | 4742 | psotfx | if ($row = $db->sql_fetchrow($result)) |
| 49 | 4742 | psotfx | {
|
| 50 | 4816 | psotfx | $whois = user_ipwhois($row['session_ip']); |
| 51 | 4816 | psotfx | |
| 52 | 4742 | psotfx | $whois = preg_replace('#(\s+?)([\w\-\._\+]+?@[\w\-\.]+?)(\s+?)#s', '\1<a href="mailto:\2">\2</a>\3', $whois); |
| 53 | 4742 | psotfx | $whois = preg_replace('#(\s+?)(http://.*?)(\s+?)#s', '\1<a href="\2" target="_blank">\2</a>\3', $whois); |
| 54 | 4742 | psotfx | |
| 55 | 4742 | psotfx | $template->assign_vars(array( |
| 56 | 4742 | psotfx | 'WHOIS' => trim($whois)) |
| 57 | 4742 | psotfx | ); |
| 58 | 4742 | psotfx | } |
| 59 | 4742 | psotfx | $db->sql_freeresult($result); |
| 60 | 4742 | psotfx | |
| 61 | 4742 | psotfx | // Output the page
|
| 62 | 4742 | psotfx | page_header($user->lang['WHO_IS_ONLINE']); |
| 63 | 4742 | psotfx | |
| 64 | 4742 | psotfx | $template->set_filenames(array( |
| 65 | 4742 | psotfx | 'body' => 'viewonline_whois.html') |
| 66 | 4742 | psotfx | ); |
| 67 | 4742 | psotfx | make_jumpbox('viewforum.'.$phpEx); |
| 68 | 4742 | psotfx | |
| 69 | 4742 | psotfx | page_footer(); |
| 70 | 4742 | psotfx | } |
| 71 | 4742 | psotfx | |
| 72 | 2137 | psotfx | // Forum info
|
| 73 | 4441 | psotfx | $sql = 'SELECT forum_id, forum_name, parent_id, forum_type, left_id, right_id |
| 74 | 4441 | psotfx | FROM ' . FORUMS_TABLE . ' |
| 75 | 4441 | psotfx | ORDER BY left_id ASC';
|
| 76 | 4441 | psotfx | $result = $db->sql_query($sql, 600); |
| 77 | 2673 | psotfx | |
| 78 | 3346 | psotfx | while ($row = $db->sql_fetchrow($result)) |
| 79 | 146 | psotfx | {
|
| 80 | 2673 | psotfx | $forum_data[$row['forum_id']] = $row['forum_name']; |
| 81 | 290 | psotfx | } |
| 82 | 3969 | psotfx | $db->sql_freeresult($result); |
| 83 | 146 | psotfx | |
| 84 | 5091 | acydburn | $guest_counter = 0; |
| 85 | 3969 | psotfx | |
| 86 | 5091 | acydburn | // Get number of online guests (if we do not display them)
|
| 87 | 5091 | acydburn | if (!$show_guests) |
| 88 | 5091 | acydburn | {
|
| 89 | 5091 | acydburn | $sql = 'SELECT COUNT(DISTINCT session_ip) as num_guests FROM ' . SESSIONS_TABLE . ' |
| 90 | 5091 | acydburn | WHERE session_user_id = ' . ANONYMOUS . ' |
| 91 | 5091 | acydburn | AND session_time >= ' . (time() - ($config['load_online_time'] * 60)); |
| 92 | 5091 | acydburn | $result = $db->sql_query($sql); |
| 93 | 5091 | acydburn | $guest_counter = (int) $db->sql_fetchfield('num_guests', 0, $result); |
| 94 | 5091 | acydburn | $db->sql_freeresult($result); |
| 95 | 5091 | acydburn | } |
| 96 | 5091 | acydburn | |
| 97 | 2137 | psotfx | // Get user list
|
| 98 | 4970 | psotfx | $sql = 'SELECT u.user_id, u.username, u.user_type, u.user_allow_viewonline, u.user_colour, s.session_id, s.session_time, s.session_page, s.session_ip, s.session_viewonline |
| 99 | 3969 | psotfx | FROM ' . USERS_TABLE . ' u, ' . SESSIONS_TABLE . ' s |
| 100 | 2448 | psotfx | WHERE u.user_id = s.session_user_id |
| 101 | 5091 | acydburn | AND s.session_time >= ' . (time() - ($config['load_online_time'] * 60)) . |
| 102 | 5091 | acydburn | ((!$show_guests) ? ' AND s.session_user_id <> ' . ANONYMOUS : '') . ' |
| 103 | 4237 | psotfx | ORDER BY ' . $order_by; |
| 104 | 2673 | psotfx | $result = $db->sql_query($sql); |
| 105 | 1260 | psotfx | |
| 106 | 5091 | acydburn | $prev_id = $prev_ip = $user_list = array(); |
| 107 | 5091 | acydburn | $logged_visible_online = $logged_hidden_online = $counter = 0; |
| 108 | 5091 | acydburn | |
| 109 | 3346 | psotfx | while ($row = $db->sql_fetchrow($result)) |
| 110 | 2465 | psotfx | {
|
| 111 | 5091 | acydburn | if ($row['user_id'] != ANONYMOUS && !isset($prev_id[$row['user_id']])) |
| 112 | 146 | psotfx | {
|
| 113 | 5091 | acydburn | $view_online = false; |
| 114 | 5091 | acydburn | |
| 115 | 4441 | psotfx | if ($row['user_colour']) |
| 116 | 146 | psotfx | {
|
| 117 | 5091 | acydburn | $row['username'] = '<b style="color:#' . $row['user_colour'] . '">' . $row['username'] . '</b>'; |
| 118 | 4441 | psotfx | } |
| 119 | 1277 | psotfx | |
| 120 | 4970 | psotfx | if (!$row['user_allow_viewonline'] || !$row['session_viewonline']) |
| 121 | 4441 | psotfx | {
|
| 122 | 4978 | acydburn | $view_online = ($auth->acl_get('u_viewonline')) ? true : false; |
| 123 | 4441 | psotfx | $logged_hidden_online++;
|
| 124 | 2690 | psotfx | |
| 125 | 5091 | acydburn | $row['username'] = '<i>' . $row['username'] . '</i>'; |
| 126 | 146 | psotfx | } |
| 127 | 4441 | psotfx | else
|
| 128 | 2137 | psotfx | {
|
| 129 | 2473 | psotfx | $view_online = true; |
| 130 | 4441 | psotfx | $logged_visible_online++;
|
| 131 | 2137 | psotfx | } |
| 132 | 4441 | psotfx | |
| 133 | 5091 | acydburn | $prev_id[$row['user_id']] = 1; |
| 134 | 5091 | acydburn | |
| 135 | 5091 | acydburn | if ($view_online) |
| 136 | 5091 | acydburn | {
|
| 137 | 5091 | acydburn | $counter++;
|
| 138 | 5091 | acydburn | } |
| 139 | 5091 | acydburn | |
| 140 | 5091 | acydburn | if (!$view_online || $counter > $start + $config['topics_per_page'] || $counter <= $start) |
| 141 | 5091 | acydburn | {
|
| 142 | 5091 | acydburn | continue;
|
| 143 | 5091 | acydburn | } |
| 144 | 2465 | psotfx | } |
| 145 | 5091 | acydburn | else if ($show_guests && $row['user_id'] == ANONYMOUS && !isset($prev_ip[$row['session_ip']])) |
| 146 | 4441 | psotfx | {
|
| 147 | 5091 | acydburn | $prev_ip[$row['session_ip']] = 1; |
| 148 | 5091 | acydburn | $guest_counter++;
|
| 149 | 5091 | acydburn | $counter++;
|
| 150 | 1616 | psotfx | |
| 151 | 5091 | acydburn | if ($counter > $start + $config['topics_per_page'] || $counter <= $start) |
| 152 | 5091 | acydburn | {
|
| 153 | 5091 | acydburn | continue;
|
| 154 | 5091 | acydburn | } |
| 155 | 5091 | acydburn | |
| 156 | 5091 | acydburn | $row['username'] = $user->lang['GUEST']; |
| 157 | 4441 | psotfx | } |
| 158 | 5091 | acydburn | else
|
| 159 | 5091 | acydburn | {
|
| 160 | 5091 | acydburn | continue;
|
| 161 | 5091 | acydburn | } |
| 162 | 2451 | psotfx | |
| 163 | 5091 | acydburn | preg_match('#^([a-z]+)#i', $row['session_page'], $on_page); |
| 164 | 5091 | acydburn | if (!sizeof($on_page)) |
| 165 | 5091 | acydburn | {
|
| 166 | 5091 | acydburn | $on_page[1] = ''; |
| 167 | 5091 | acydburn | } |
| 168 | 4441 | psotfx | |
| 169 | 5091 | acydburn | switch ($on_page[1]) |
| 170 | 2465 | psotfx | {
|
| 171 | 5091 | acydburn | case 'index': |
| 172 | 5091 | acydburn | $location = $user->lang['INDEX']; |
| 173 | 5091 | acydburn | $location_url = "index.$phpEx$SID"; |
| 174 | 5091 | acydburn | break;
|
| 175 | 4743 | psotfx | |
| 176 | 5091 | acydburn | case 'posting': |
| 177 | 5091 | acydburn | case 'viewforum': |
| 178 | 5091 | acydburn | case 'viewtopic': |
| 179 | 5091 | acydburn | preg_match('#f=([0-9]+)#', $row['session_page'], $forum_id); |
| 180 | 5091 | acydburn | $forum_id = (sizeof($forum_id)) ? $forum_id[1] : 0; |
| 181 | 2673 | psotfx | |
| 182 | 5091 | acydburn | if ($auth->acl_get('f_list', $forum_id)) |
| 183 | 5091 | acydburn | {
|
| 184 | 5091 | acydburn | $location = ''; |
| 185 | 5091 | acydburn | switch ($on_page[1]) |
| 186 | 2673 | psotfx | {
|
| 187 | 5091 | acydburn | case 'posting': |
| 188 | 5091 | acydburn | preg_match('#mode=([a-z]+)#', $row['session_page'], $on_page); |
| 189 | 4970 | psotfx | |
| 190 | 5091 | acydburn | switch ($on_page[1]) |
| 191 | 5091 | acydburn | {
|
| 192 | 5091 | acydburn | case 'reply': |
| 193 | 5091 | acydburn | $location = sprintf($user->lang['REPLYING_MESSAGE'], $forum_data[$forum_id]); |
| 194 | 5091 | acydburn | break;
|
| 195 | 5091 | acydburn | default:
|
| 196 | 5091 | acydburn | $location = sprintf($user->lang['POSTING_MESSAGE'], $forum_data[$forum_id]); |
| 197 | 5091 | acydburn | break;
|
| 198 | 5091 | acydburn | } |
| 199 | 5091 | acydburn | break;
|
| 200 | 3551 | psotfx | |
| 201 | 5091 | acydburn | case 'viewtopic': |
| 202 | 5091 | acydburn | $location = sprintf($user->lang['READING_TOPIC'], $forum_data[$forum_id]); |
| 203 | 5091 | acydburn | break;
|
| 204 | 5091 | acydburn | |
| 205 | 5091 | acydburn | case 'viewforum': |
| 206 | 5091 | acydburn | $location = sprintf($user->lang['READING_FORUM'], $forum_data[$forum_id]); |
| 207 | 5091 | acydburn | break;
|
| 208 | 2673 | psotfx | } |
| 209 | 146 | psotfx | |
| 210 | 5091 | acydburn | $location_url = "viewforum.$phpEx$SID&f=$forum_id"; |
| 211 | 5091 | acydburn | } |
| 212 | 5091 | acydburn | else
|
| 213 | 5091 | acydburn | {
|
| 214 | 5091 | acydburn | $location = $user->lang['INDEX']; |
| 215 | 5091 | acydburn | $location_url = "index.$phpEx$SID"; |
| 216 | 5091 | acydburn | } |
| 217 | 5091 | acydburn | break;
|
| 218 | 698 | psotfx | |
| 219 | 5091 | acydburn | case 'search': |
| 220 | 5091 | acydburn | $location = $user->lang['SEARCHING_FORUMS']; |
| 221 | 5091 | acydburn | $location_url = "search.$phpEx$SID"; |
| 222 | 5091 | acydburn | break;
|
| 223 | 2673 | psotfx | |
| 224 | 5091 | acydburn | case 'faq': |
| 225 | 5091 | acydburn | $location = $user->lang['VIEWING_FAQ']; |
| 226 | 5091 | acydburn | $location_url = "faq.$phpEx$SID"; |
| 227 | 5091 | acydburn | break;
|
| 228 | 2673 | psotfx | |
| 229 | 5091 | acydburn | case 'viewonline': |
| 230 | 5091 | acydburn | $location = $user->lang['VIEWING_ONLINE']; |
| 231 | 5091 | acydburn | $location_url = "viewonline.$phpEx$SID"; |
| 232 | 5091 | acydburn | break;
|
| 233 | 2673 | psotfx | |
| 234 | 5091 | acydburn | case 'memberlist': |
| 235 | 5091 | acydburn | $location = $user->lang['VIEWING_MEMBERS']; |
| 236 | 5091 | acydburn | $location_url = "memberlist.$phpEx$SID"; |
| 237 | 5091 | acydburn | break;
|
| 238 | 4644 | psotfx | |
| 239 | 5091 | acydburn | case 'ucp': |
| 240 | 5091 | acydburn | $location = $user->lang['VIEWING_UCP']; |
| 241 | 5091 | acydburn | $location_url = ''; |
| 242 | 2673 | psotfx | |
| 243 | 5091 | acydburn | default:
|
| 244 | 5091 | acydburn | $location = $user->lang['INDEX']; |
| 245 | 5091 | acydburn | $location_url = "index.$phpEx$SID"; |
| 246 | 5091 | acydburn | break;
|
| 247 | 5091 | acydburn | } |
| 248 | 646 | psotfx | |
| 249 | 5091 | acydburn | $template->assign_block_vars('user_row', array( |
| 250 | 5091 | acydburn | 'USERNAME' => $row['username'], |
| 251 | 5091 | acydburn | 'LASTUPDATE' => $user->format_date($row['session_time']), |
| 252 | 5091 | acydburn | 'FORUM_LOCATION'=> $location, |
| 253 | 5091 | acydburn | 'USER_IP' => ($auth->acl_get('a_')) ? (($mode == 'lookup' && $session_id == $row['session_id']) ? gethostbyaddr($row['session_ip']) : $row['session_ip']) : '', |
| 254 | 2137 | psotfx | |
| 255 | 5117 | acydburn | 'U_USER_PROFILE' => (($row['user_type'] == USER_NORMAL || $row['user_type'] == USER_FOUNDER) && $row['user_id'] != ANONYMOUS) ? "{$phpbb_root_path}memberlist.$phpEx$SID&mode=viewprofile&u=" . $row['user_id'] : '', |
| 256 | 5091 | acydburn | 'U_USER_IP' => "{$phpbb_root_path}viewonline.$phpEx$SID" . (($mode != 'lookup' || $row['session_id'] != $session_id) ? '&s=' . $row['session_id'] : '') . "&mode=lookup&sg=$show_guests&start=$start&sk=$sort_key&sd=$sort_dir", |
| 257 | 5091 | acydburn | 'U_WHOIS' => "{$phpbb_root_path}viewonline.$phpEx$SID&mode=whois&s=" . $row['session_id'], |
| 258 | 5091 | acydburn | 'U_FORUM_LOCATION' => $phpbb_root_path . $location_url, |
| 259 | 5091 | acydburn | |
| 260 | 5091 | acydburn | 'S_GUEST' => ($row['user_id'] == ANONYMOUS) ? true : false, |
| 261 | 5091 | acydburn | 'S_USER_TYPE' => $row['user_type']) |
| 262 | 5091 | acydburn | ); |
| 263 | 2465 | psotfx | } |
| 264 | 3969 | psotfx | $db->sql_freeresult($result); |
| 265 | 5091 | acydburn | unset($prev_id, $prev_ip); |
| 266 | 775 | psotfx | |
| 267 | 3969 | psotfx | // Generate reg/hidden/guest online text
|
| 268 | 3969 | psotfx | $vars_online = array( |
| 269 | 3969 | psotfx | 'REG' => array('logged_visible_online', 'l_r_user_s'), |
| 270 | 3969 | psotfx | 'HIDDEN'=> array('logged_hidden_online', 'l_h_user_s'), |
| 271 | 5091 | acydburn | 'GUEST' => array('guest_counter', 'l_g_user_s') |
| 272 | 3969 | psotfx | ); |
| 273 | 2137 | psotfx | |
| 274 | 3969 | psotfx | foreach ($vars_online as $l_prefix => $var_ary) |
| 275 | 2465 | psotfx | {
|
| 276 | 3969 | psotfx | switch ($$var_ary[0]) |
| 277 | 3969 | psotfx | {
|
| 278 | 3969 | psotfx | case 0: |
| 279 | 3969 | psotfx | $$var_ary[1] = $user->lang[$l_prefix . '_USERS_ZERO_ONLINE']; |
| 280 | 3969 | psotfx | break;
|
| 281 | 3969 | psotfx | |
| 282 | 3969 | psotfx | case 1: |
| 283 | 3969 | psotfx | $$var_ary[1] = $user->lang[$l_prefix . '_USER_ONLINE']; |
| 284 | 3969 | psotfx | break;
|
| 285 | 3969 | psotfx | |
| 286 | 3969 | psotfx | default:
|
| 287 | 3969 | psotfx | $$var_ary[1] = $user->lang[$l_prefix . '_USERS_ONLINE']; |
| 288 | 3969 | psotfx | break;
|
| 289 | 3969 | psotfx | } |
| 290 | 2465 | psotfx | } |
| 291 | 3969 | psotfx | unset($vars_online); |
| 292 | 775 | psotfx | |
| 293 | 5091 | acydburn | $pagination = generate_pagination("{$phpbb_root_path}viewonline.$phpEx$SID&sg=$show_guests&sk=$sort_key&sd=$sort_dir", $counter, $config['topics_per_page'], $start); |
| 294 | 3969 | psotfx | |
| 295 | 3651 | psotfx | // Grab group details for legend display
|
| 296 | 5091 | acydburn | $sql = 'SELECT group_id, group_name, group_colour, group_type |
| 297 | 5091 | acydburn | FROM ' . GROUPS_TABLE . ' |
| 298 | 5091 | acydburn | WHERE group_legend = 1';
|
| 299 | 3651 | psotfx | $result = $db->sql_query($sql); |
| 300 | 3651 | psotfx | |
| 301 | 3651 | psotfx | $legend = ''; |
| 302 | 3651 | psotfx | while ($row = $db->sql_fetchrow($result)) |
| 303 | 3651 | psotfx | {
|
| 304 | 5138 | acydburn | $legend .= (($legend != '') ? ', ' : '') . '<a style="color:#' . $row['group_colour'] . '" href="' . "{$phpbb_root_path}memberlist.$phpEx$SID" . '&mode=group&g=' . $row['group_id'] . '">' . (($row['group_type'] == GROUP_SPECIAL) ? $user->lang['G_' . $row['group_name']] : $row['group_name']) . '</a>'; |
| 305 | 3651 | psotfx | } |
| 306 | 3969 | psotfx | $db->sql_freeresult($result); |
| 307 | 3651 | psotfx | |
| 308 | 3969 | psotfx | // Send data to template
|
| 309 | 2465 | psotfx | $template->assign_vars(array( |
| 310 | 3969 | psotfx | 'TOTAL_REGISTERED_USERS_ONLINE' => sprintf($l_r_user_s, $logged_visible_online) . sprintf($l_h_user_s, $logged_hidden_online), |
| 311 | 5091 | acydburn | 'TOTAL_GUEST_USERS_ONLINE' => sprintf($l_g_user_s, $guest_counter), |
| 312 | 5091 | acydburn | 'LEGEND' => $legend, |
| 313 | 5091 | acydburn | 'META' => '<meta http-equiv="refresh" content="60; url=viewonline.' . $phpEx . $SID . '">', |
| 314 | 5091 | acydburn | 'PAGINATION' => $pagination, |
| 315 | 5091 | acydburn | 'PAGE_NUMBER' => on_page($counter, $config['topics_per_page'], $start), |
| 316 | 2673 | psotfx | |
| 317 | 5091 | acydburn | 'U_SORT_USERNAME' => "{$phpbb_root_path}viewonline.$phpEx$SID&sk=a&sd=" . (($sort_key == 'a' && $sort_dir == 'a') ? 'd' : 'a'), |
| 318 | 5091 | acydburn | 'U_SORT_UPDATED' => "{$phpbb_root_path}viewonline.$phpEx$SID&sk=b&sd=" . (($sort_key == 'b' && $sort_dir == 'a') ? 'd' : 'a'), |
| 319 | 5091 | acydburn | 'U_SORT_LOCATION' => "{$phpbb_root_path}viewonline.$phpEx$SID&sk=c&sd=" . (($sort_key == 'c' && $sort_dir == 'a') ? 'd' : 'a'), |
| 320 | 5091 | acydburn | |
| 321 | 5091 | acydburn | 'U_SWITCH_GUEST_DISPLAY' => "{$phpbb_root_path}viewonline.$phpEx$SID&sg=" . ((int) !$show_guests), |
| 322 | 5091 | acydburn | 'L_SWITCH_GUEST_DISPLAY' => ($show_guests) ? $user->lang['HIDE_GUESTS'] : $user->lang['DISPLAY_GUESTS'], |
| 323 | 5091 | acydburn | 'S_SWITCH_GUEST_DISPLAY' => ($config['load_online_guests']) ? true : false) |
| 324 | 2465 | psotfx | ); |
| 325 | 2465 | psotfx | |
| 326 | 5091 | acydburn | // We do not need to load the who is online box here. ;)
|
| 327 | 5091 | acydburn | $config['load_online'] = false; |
| 328 | 5091 | acydburn | |
| 329 | 3969 | psotfx | // Output the page
|
| 330 | 3969 | psotfx | page_header($user->lang['WHO_IS_ONLINE']); |
| 331 | 3969 | psotfx | |
| 332 | 2673 | psotfx | $template->set_filenames(array( |
| 333 | 2673 | psotfx | 'body' => 'viewonline_body.html') |
| 334 | 2673 | psotfx | ); |
| 335 | 2673 | psotfx | make_jumpbox('viewforum.'.$phpEx); |
| 336 | 146 | psotfx | |
| 337 | 3969 | psotfx | page_footer(); |
| 338 | 146 | psotfx | |
| 339 | 1277 | psotfx | ?> |

