Line 122 | Line 122 |
---|
}
// Get user list
|
}
// Get user list
|
$sql = 'SELECT u.user_id, u.username, u.username_clean, u.user_type, u.user_colour, s.session_id, s.session_time, s.session_page, s.session_ip, s.session_browser, s.session_viewonline
| $sql = 'SELECT u.user_id, u.username, u.username_clean, u.user_type, u.user_colour, s.session_id, s.session_time, s.session_page, s.session_ip, s.session_browser, s.session_viewonline, s.session_forum_id
|
FROM ' . USERS_TABLE . ' u, ' . SESSIONS_TABLE . ' s WHERE u.user_id = s.session_user_id AND s.session_time >= ' . (time() - ($config['load_online_time'] * 60)) .
| FROM ' . USERS_TABLE . ' u, ' . SESSIONS_TABLE . ' s WHERE u.user_id = s.session_user_id AND s.session_time >= ' . (time() - ($config['load_online_time'] * 60)) .
|
Line 187 | Line 187 |
---|
continue; }
|
continue; }
|
preg_match('#^([a-z/]+)#i', $row['session_page'], $on_page);
| preg_match('#^([a-z0-9/_-]+)#i', $row['session_page'], $on_page);
|
if (!sizeof($on_page)) { $on_page[1] = '';
| if (!sizeof($on_page)) { $on_page[1] = '';
|
Line 208 | Line 208 |
---|
case 'posting': case 'viewforum': case 'viewtopic':
|
case 'posting': case 'viewforum': case 'viewtopic':
|
preg_match('#_f_=([0-9]+)x#i', $row['session_page'], $forum_id); $forum_id = (sizeof($forum_id)) ? (int) $forum_id[1] : 0;
| $forum_id = $row['session_forum_id'];
|
if ($forum_id && $auth->acl_get('f_list', $forum_id)) {
| if ($forum_id && $auth->acl_get('f_list', $forum_id)) {
|
Line 226 | Line 225 |
---|
{ case 'posting': preg_match('#mode=([a-z]+)#', $row['session_page'], $on_page);
|
{ case 'posting': preg_match('#mode=([a-z]+)#', $row['session_page'], $on_page);
|
| $posting_mode = (!empty($on_page[1])) ? $on_page[1] : '';
|
|
|
switch ($on_page[1])
| switch ($posting_mode)
|
{ case 'reply': case 'quote':
| { case 'reply': case 'quote':
|
Line 305 | Line 305 |
---|
$location_url = append_sid("{$phpbb_root_path}index.$phpEx"); break;
|
$location_url = append_sid("{$phpbb_root_path}index.$phpEx"); break;
|
case 'download':
| case 'download/file':
|
$location = $user->lang['DOWNLOADING_FILE']; $location_url = append_sid("{$phpbb_root_path}index.$phpEx"); break;
| $location = $user->lang['DOWNLOADING_FILE']; $location_url = append_sid("{$phpbb_root_path}index.$phpEx"); break;
|