aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/admin
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-10-14 22:13:57 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-10-14 22:13:57 +0000
commit9947ccb7f991fee74dc94d642bf672f55790371c (patch)
treec1e11abd7f228e85628a6840f51cfcd10de60fd4 /phpBB/admin
parent55c3f68cdd80947ffb88e09bee86a69db4cebd59 (diff)
downloadforums-9947ccb7f991fee74dc94d642bf672f55790371c.tar
forums-9947ccb7f991fee74dc94d642bf672f55790371c.tar.gz
forums-9947ccb7f991fee74dc94d642bf672f55790371c.tar.bz2
forums-9947ccb7f991fee74dc94d642bf672f55790371c.tar.xz
forums-9947ccb7f991fee74dc94d642bf672f55790371c.zip
Fixed GET/POST problem
git-svn-id: file:///svn/phpbb/trunk@1198 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/admin')
-rw-r--r--phpBB/admin/admin_forum_prune.php16
1 files changed, 13 insertions, 3 deletions
diff --git a/phpBB/admin/admin_forum_prune.php b/phpBB/admin/admin_forum_prune.php
index f22ecffd45..1ac6f877fb 100644
--- a/phpBB/admin/admin_forum_prune.php
+++ b/phpBB/admin/admin_forum_prune.php
@@ -53,7 +53,16 @@ include($phpbb_root_path . 'includes/prune.php');
if( isset($HTTP_GET_VARS[POST_FORUM_URL]) || isset($HTTP_POST_VARS[POST_FORUM_URL]) )
{
$forum_id = ( isset($HTTP_POST_VARS[POST_FORUM_URL]) ) ? $HTTP_POST_VARS[POST_FORUM_URL] : $HTTP_GET_VARS[POST_FORUM_URL];
- $forum_sql = ($forum_id == "ALL") ? "" : "AND forum_id = $forum_id";
+
+ if( $forum_id == "ALL" )
+ {
+ $forum_sql = "";
+ }
+ else
+ {
+ $forum_id = intval($forum_id);
+ $forum_sql = "AND forum_id = $forum_id";
+ }
}
else
{
@@ -96,6 +105,7 @@ if( isset($HTTP_POST_VARS['doprune']) )
$row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
+
$i++;
$template->assign_block_vars("prune_results", array(
@@ -120,7 +130,7 @@ else
// If they haven't selected a forum for pruning yet then
// display a select box to use for pruning.
//
- if( empty($HTTP_GET_VARS[POST_FORUM_URL]) )
+ if( empty($HTTP_POST_VARS[POST_FORUM_URL]) )
{
//
// Output a selection table if no forum id has been specified.
@@ -152,7 +162,7 @@ else
}
else
{
- $forum_id = $HTTP_GET_VARS[POST_FORUM_URL];
+ $forum_id = intval($HTTP_POST_VARS[POST_FORUM_URL]);
//
// Output the form to retrieve Prune information.