aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/mcp.php
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2008-11-24 00:20:33 +0000
committerNils Adermann <naderman@naderman.de>2008-11-24 00:20:33 +0000
commit07e9b83a3de0264916a058b9cf180b91b297604f (patch)
tree386aed44943159d6634f74ee756c4073d5dbab19 /phpBB/mcp.php
parent8427ae3fd4bd0055931579d18cb9d43d69f72a90 (diff)
downloadforums-07e9b83a3de0264916a058b9cf180b91b297604f.tar
forums-07e9b83a3de0264916a058b9cf180b91b297604f.tar.gz
forums-07e9b83a3de0264916a058b9cf180b91b297604f.tar.bz2
forums-07e9b83a3de0264916a058b9cf180b91b297604f.tar.xz
forums-07e9b83a3de0264916a058b9cf180b91b297604f.zip
- updated all code to use the request class instead of any direct access to
super globals - disabled super globals in common.php. See commit r9101 for more information - cleaned up/simplified a few lines along the way. git-svn-id: file:///svn/phpbb/trunk@9102 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/mcp.php')
-rw-r--r--phpBB/mcp.php23
1 files changed, 11 insertions, 12 deletions
diff --git a/phpBB/mcp.php b/phpBB/mcp.php
index 299e8332ab..12f5cb9ee8 100644
--- a/phpBB/mcp.php
+++ b/phpBB/mcp.php
@@ -31,10 +31,10 @@ $template->assign_var('S_IN_MCP', true);
// Basic parameter data
$id = request_var('i', '');
-if (isset($_REQUEST['mode']) && is_array($_REQUEST['mode']))
+$mode = request_var('mode', array(''));
+if (!empty($mode))
{
- $mode = request_var('mode', array(''));
- list($mode, ) = each($mode);
+ $mode = key($mode);
}
else
{
@@ -52,19 +52,18 @@ if (!$user->data['is_registered'])
login_box('', $user->lang['LOGIN_EXPLAIN_MCP']);
}
-$quickmod = (isset($_REQUEST['quickmod'])) ? true : false;
-$action = request_var('action', '');
-$action_ary = request_var('action', array('' => 0));
+$quickmod = request::is_set('quickmod');
+$action = request_var('action', '');
+$action_ary = request_var('action', array('' => 0));
+$forum_action = request_var('forum_action', '');
-$forum_action = request_var('forum_action', '');
-if ($forum_action !== '' && !empty($_POST['sort']))
+if (sizeof($action_ary))
{
- $action = $forum_action;
+ $action = key($action_ary);
}
-
-if (sizeof($action_ary))
+else if (!empty($forum_action) && request::variable('sort', false, false, request::POST))
{
- list($action, ) = each($action_ary);
+ $action = $forum_action;
}
unset($action_ary);