mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[feature/request-class] Remove direct access to _REQUEST in acp_search
PHPBB3-9716
This commit is contained in:
@@ -139,9 +139,11 @@
|
|||||||
|
|
||||||
<p class="quick">
|
<p class="quick">
|
||||||
<!-- IF backend.S_INDEXED -->
|
<!-- IF backend.S_INDEXED -->
|
||||||
<input class="button2" type="submit" name="action[delete]" value="{L_DELETE_INDEX}" onclick="popup_progress_bar('delete');" />
|
<input type="hidden" name="action" value="delete" />
|
||||||
|
<input class="button2" type="submit" value="{L_DELETE_INDEX}" onclick="popup_progress_bar('delete');" />
|
||||||
<!-- ELSE -->
|
<!-- ELSE -->
|
||||||
<input class="button2" type="submit" name="action[create]" value="{L_CREATE_INDEX}" onclick="popup_progress_bar('create');" />
|
<input type="hidden" name="action" value="create" />
|
||||||
|
<input class="button2" type="submit" value="{L_CREATE_INDEX}" onclick="popup_progress_bar('create');" />
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
</p>
|
</p>
|
||||||
{S_FORM_TOKEN}
|
{S_FORM_TOKEN}
|
||||||
|
@@ -232,15 +232,7 @@ class acp_search
|
|||||||
global $db, $user, $auth, $template, $cache;
|
global $db, $user, $auth, $template, $cache;
|
||||||
global $config, $phpbb_root_path, $phpbb_admin_path, $phpEx;
|
global $config, $phpbb_root_path, $phpbb_admin_path, $phpEx;
|
||||||
|
|
||||||
if (isset($_REQUEST['action']) && is_array($_REQUEST['action']))
|
$action = request_var('action', '');
|
||||||
{
|
|
||||||
$action = request_var('action', array('' => false));
|
|
||||||
$action = key($action);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$action = request_var('action', '');
|
|
||||||
}
|
|
||||||
$this->state = explode(',', $config['search_indexing_state']);
|
$this->state = explode(',', $config['search_indexing_state']);
|
||||||
|
|
||||||
if (isset($_POST['cancel']))
|
if (isset($_POST['cancel']))
|
||||||
|
Reference in New Issue
Block a user