aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewonline.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2003-02-26 19:29:22 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2003-02-26 19:29:22 +0000
commitfa8fd70cbc5ab30ca0088704271a2f407b01d91b (patch)
tree5fccd9e17d1b3ceefe6aac6e7cd0095d857902a5 /phpBB/viewonline.php
parentc190ad23703c0613795170109ced443a073a73f0 (diff)
downloadforums-fa8fd70cbc5ab30ca0088704271a2f407b01d91b.tar
forums-fa8fd70cbc5ab30ca0088704271a2f407b01d91b.tar.gz
forums-fa8fd70cbc5ab30ca0088704271a2f407b01d91b.tar.bz2
forums-fa8fd70cbc5ab30ca0088704271a2f407b01d91b.tar.xz
forums-fa8fd70cbc5ab30ca0088704271a2f407b01d91b.zip
Changes related to altered this->page content
git-svn-id: file:///svn/phpbb/trunk@3551 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewonline.php')
-rw-r--r--phpBB/viewonline.php22
1 files changed, 18 insertions, 4 deletions
diff --git a/phpBB/viewonline.php b/phpBB/viewonline.php
index deb3945684..f222d697a2 100644
--- a/phpBB/viewonline.php
+++ b/phpBB/viewonline.php
@@ -109,7 +109,7 @@ while ($row = $db->sql_fetchrow($result))
if ($view_online)
{
- preg_match('/\/?([a-z]+)\.' . $phpEx . '/', $row['session_page'], $on_page);
+ preg_match('#([a-z]+)#', $row['session_page'], $on_page);
switch ($on_page[1])
{
@@ -130,15 +130,29 @@ while ($row = $db->sql_fetchrow($result))
switch ($on_page[1])
{
case 'posting':
- $location = sprintf($user->lang['Posting_message'], $forum_data[$forum_id]);
+ preg_match('#mode=([a-z]+)#', $row['session_page'], $on_page);
+
+ switch ($on_page[1])
+ {
+ case 'reply':
+ case 'topicreview':
+ $location = sprintf($user->lang['REPLYING_MESSAGE'], $forum_data[$forum_id]);
+ break;
+ default:
+ $location = sprintf($user->lang['POSTING_MESSAGE'], $forum_data[$forum_id]);
+ break;
+ }
break;
+
case 'viewtopic':
- $location = sprintf($user->lang['Reading_topic'], $forum_data[$forum_id]);
+ $location = sprintf($user->lang['READING_TOPIC'], $forum_data[$forum_id]);
break;
+
case 'viewforum':
- $location .= $forum_data[$forum_id];
+ $location .= sprintf($user->lang['READING_FORUM'], $forum_data[$forum_id]);
break;
}
+
$location_url = "viewforum.$phpEx$SID&amp;f=$forum_id";
}
else