mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
- 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
This commit is contained in:
@@ -52,7 +52,7 @@ class acp_search
|
||||
{
|
||||
global $db, $user, $auth, $template, $cache, $config;
|
||||
|
||||
$submit = (isset($_POST['submit'])) ? true : false;
|
||||
$submit = request::is_set_post('submit');
|
||||
|
||||
$search_types = $this->get_search_types();
|
||||
|
||||
@@ -99,7 +99,7 @@ class acp_search
|
||||
unset($search);
|
||||
unset($error);
|
||||
|
||||
$cfg_array = (isset($_REQUEST['config'])) ? request_var('config', array('' => ''), true) : array();
|
||||
$cfg_array = request_var('config', array('' => ''), true);
|
||||
$updated = request_var('updated', false);
|
||||
|
||||
foreach ($settings as $config_name => $var_type)
|
||||
@@ -228,9 +228,9 @@ class acp_search
|
||||
{
|
||||
global $db, $user, $auth, $template, $cache, $config;
|
||||
|
||||
if (isset($_REQUEST['action']) && is_array($_REQUEST['action']))
|
||||
$action = request_var('action', array('' => false));
|
||||
if (sizeof($action))
|
||||
{
|
||||
$action = request_var('action', array('' => false));
|
||||
$action = key($action);
|
||||
}
|
||||
else
|
||||
@@ -239,7 +239,7 @@ class acp_search
|
||||
}
|
||||
$this->state = explode(',', $config['search_indexing_state']);
|
||||
|
||||
if (isset($_POST['cancel']))
|
||||
if (request::is_set_post('cancel'))
|
||||
{
|
||||
$action = '';
|
||||
$this->state = array();
|
||||
|
Reference in New Issue
Block a user