mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
Cancel redirects you back to the beginning
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@5782 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
139e217656
commit
ada768ba2e
3 changed files with 27 additions and 0 deletions
|
@ -33,8 +33,17 @@ define('IN_PHPBB', 1);
|
||||||
//
|
//
|
||||||
$phpbb_root_path = "./../";
|
$phpbb_root_path = "./../";
|
||||||
require($phpbb_root_path . 'extension.inc');
|
require($phpbb_root_path . 'extension.inc');
|
||||||
|
|
||||||
|
$cancel = ( isset($HTTP_POST_VARS['cancel']) ) ? true : false;
|
||||||
|
$no_page_header = $cancel;
|
||||||
|
|
||||||
require('./pagestart.' . $phpEx);
|
require('./pagestart.' . $phpEx);
|
||||||
|
|
||||||
|
if ($cancel)
|
||||||
|
{
|
||||||
|
redirect('admin/' . append_sid("admin_ranks.$phpEx", true));
|
||||||
|
}
|
||||||
|
|
||||||
if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) )
|
if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) )
|
||||||
{
|
{
|
||||||
$mode = (isset($HTTP_GET_VARS['mode'])) ? $HTTP_GET_VARS['mode'] : $HTTP_POST_VARS['mode'];
|
$mode = (isset($HTTP_GET_VARS['mode'])) ? $HTTP_GET_VARS['mode'] : $HTTP_POST_VARS['mode'];
|
||||||
|
|
|
@ -49,8 +49,17 @@ if( isset($HTTP_GET_VARS['export_pack']) )
|
||||||
|
|
||||||
$phpbb_root_path = "./../";
|
$phpbb_root_path = "./../";
|
||||||
require($phpbb_root_path . 'extension.inc');
|
require($phpbb_root_path . 'extension.inc');
|
||||||
|
|
||||||
|
$cancel = ( isset($HTTP_POST_VARS['cancel']) ) ? true : false;
|
||||||
|
$no_page_header = $cancel;
|
||||||
|
|
||||||
require('./pagestart.' . $phpEx);
|
require('./pagestart.' . $phpEx);
|
||||||
|
|
||||||
|
if ($cancel)
|
||||||
|
{
|
||||||
|
redirect('admin/' . append_sid("admin_smilies.$phpEx", true));
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Check to see what mode we should operate in.
|
// Check to see what mode we should operate in.
|
||||||
//
|
//
|
||||||
|
|
|
@ -34,8 +34,17 @@ define('IN_PHPBB', 1);
|
||||||
//
|
//
|
||||||
$phpbb_root_path = "./../";
|
$phpbb_root_path = "./../";
|
||||||
require($phpbb_root_path . 'extension.inc');
|
require($phpbb_root_path . 'extension.inc');
|
||||||
|
|
||||||
|
$cancel = ( isset($HTTP_POST_VARS['cancel']) ) ? true : false;
|
||||||
|
$no_page_header = $cancel;
|
||||||
|
|
||||||
require('./pagestart.' . $phpEx);
|
require('./pagestart.' . $phpEx);
|
||||||
|
|
||||||
|
if ($cancel)
|
||||||
|
{
|
||||||
|
redirect('admin/' . append_sid("admin_words.$phpEx", true));
|
||||||
|
}
|
||||||
|
|
||||||
if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) )
|
if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) )
|
||||||
{
|
{
|
||||||
$mode = (isset($HTTP_GET_VARS['mode'])) ? $HTTP_GET_VARS['mode'] : $HTTP_POST_VARS['mode'];
|
$mode = (isset($HTTP_GET_VARS['mode'])) ? $HTTP_GET_VARS['mode'] : $HTTP_POST_VARS['mode'];
|
||||||
|
|
Loading…
Add table
Reference in a new issue