diff options
| author | PayBas <contact@paybas.com> | 2014-07-16 10:39:40 +0200 |
|---|---|---|
| committer | PayBas <contact@paybas.com> | 2014-07-16 10:39:40 +0200 |
| commit | 09e5896cae23534532d9f44fefc43f4b3f846f1c (patch) | |
| tree | 137ec05651dba37eb9456e94ab8b3d6da4f8c155 /phpBB/viewonline.php | |
| parent | 496b34cd96fb520f98b5fb5d93f1861359b91726 (diff) | |
| download | forums-09e5896cae23534532d9f44fefc43f4b3f846f1c.tar forums-09e5896cae23534532d9f44fefc43f4b3f846f1c.tar.gz forums-09e5896cae23534532d9f44fefc43f4b3f846f1c.tar.bz2 forums-09e5896cae23534532d9f44fefc43f4b3f846f1c.tar.xz forums-09e5896cae23534532d9f44fefc43f4b3f846f1c.zip | |
[ticket/12837] Detect "viewing contact admin page" on viewonline
PHPBB3-12837
Diffstat (limited to 'phpBB/viewonline.php')
| -rw-r--r-- | phpBB/viewonline.php | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/phpBB/viewonline.php b/phpBB/viewonline.php index 4c897c58aa..38e2ced341 100644 --- a/phpBB/viewonline.php +++ b/phpBB/viewonline.php @@ -295,8 +295,21 @@ while ($row = $db->sql_fetchrow($result)) break; case 'memberlist': - $location = (strpos($row['session_page'], 'mode=viewprofile') !== false) ? $user->lang['VIEWING_MEMBER_PROFILE'] : $user->lang['VIEWING_MEMBERS']; $location_url = append_sid("{$phpbb_root_path}memberlist.$phpEx"); + + if (strpos($row['session_page'], 'mode=viewprofile') !== false) + { + $location = $user->lang['VIEWING_MEMBER_PROFILE']; + } + elseif (strpos($row['session_page'], 'mode=contactadmin') !== false) + { + $location = $user->lang['VIEWING_CONTACT_ADMIN']; + $location_url = append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=contactadmin'); + } + else + { + $location = $user->lang['VIEWING_MEMBERS']; + } break; case 'mcp': |
