aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2002-11-27 15:15:12 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2002-11-27 15:15:12 +0000
commitafd03ff1b86103653e914aa38251ea2581c59bc6 (patch)
tree48c96139139005b358233c208b516294bcec5d87 /phpBB
parent1e8cc35b2a3803cce3810d4a7a9970b219462b72 (diff)
downloadforums-afd03ff1b86103653e914aa38251ea2581c59bc6.tar
forums-afd03ff1b86103653e914aa38251ea2581c59bc6.tar.gz
forums-afd03ff1b86103653e914aa38251ea2581c59bc6.tar.bz2
forums-afd03ff1b86103653e914aa38251ea2581c59bc6.tar.xz
forums-afd03ff1b86103653e914aa38251ea2581c59bc6.zip
oops
git-svn-id: file:///svn/phpbb/trunk@3107 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/functions.php3
-rw-r--r--phpBB/includes/page_header.php4
2 files changed, 4 insertions, 3 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 729c1c8120..09cb5b365f 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -184,7 +184,7 @@ function make_jumpbox($action, $forum_id = false)
{
global $auth, $template, $user, $db, $nav_links, $phpEx;
- $boxstring = '<select name="f" onChange="if(this.options[this.selectedIndex].value != -1){ forms[\'jumpbox\'].submit() }"><option value="-1">' . $user->lang['Select_forum'] . '</option><option value="-1">-----------------</option>';
+ $boxstring = '<input type="hidden" name="sid" value="' . $user->session_id . '" /><select name="f" onChange="if(this.options[this.selectedIndex].value != -1){ forms[\'jumpbox\'].submit() }"><option value="-1">' . $user->lang['Select_forum'] . '</option><option value="-1">-----------------</option>';
$sql = 'SELECT forum_id, forum_name, forum_postable, left_id, right_id
FROM ' . FORUMS_TABLE . '
@@ -248,6 +248,7 @@ function make_jumpbox($action, $forum_id = false)
{
$boxstring .= '<option value="-1">' . $user->lang['No_forums'] . '</option>';
}
+
$boxstring .= '</select>';
$template->assign_vars(array(
diff --git a/phpBB/includes/page_header.php b/phpBB/includes/page_header.php
index 00a1a168b3..6e5a14fcc2 100644
--- a/phpBB/includes/page_header.php
+++ b/phpBB/includes/page_header.php
@@ -65,7 +65,7 @@ $prev_user_ip = '';
$reading_sql = '';
if (!empty($_REQUEST['f']))
{
- $reading_sql = 'AND s.session_page LIKE \'%f=' . intval($_GET['f'])) . '%\'';
+ $reading_sql = 'AND s.session_page LIKE \'%f=' . intval($_REQUEST['f']) . '%\'';
}
$sql = "SELECT u.username, u.user_id, u.user_allow_viewonline, u.user_colour, s.session_ip
@@ -125,7 +125,7 @@ if (empty($online_userlist))
$online_userlist = $user->lang['None'];
}
-if (empty($_GET['f']))
+if (empty($_REQUEST['f']))
{
$online_userlist = $user->lang['Registered_users'] . ' ' . $online_userlist;
}