From 7e3d8e3d7079b620fe85afe15b0944a96990e320 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Sat, 23 Mar 2002 22:21:33 +0000 Subject: [PATCH] Wrong redirect on chaning user level git-svn-id: file:///svn/phpbb/trunk@2416 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/admin/admin_ug_auth.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/phpBB/admin/admin_ug_auth.php b/phpBB/admin/admin_ug_auth.php index 5c1b23ce06..ac99a04ca3 100644 --- a/phpBB/admin/admin_ug_auth.php +++ b/phpBB/admin/admin_ug_auth.php @@ -180,8 +180,8 @@ if ( isset($HTTP_POST_VARS['submit']) && ( ( $mode == 'user' && $user_id ) || ( } } - header("Location: " . append_sid("admin_ug_auth.$phpEx?" . POST_USERS_URL . "=$user_id", true)); - exit; + $message = $lang['Auth_updated'] . '

' . sprintf($lang['Click_return_userauth'], '', '') . '

' . sprintf($lang['Click_return_admin_index'], '', ''); + message_die(GENERAL_MESSAGE, $message); } else if ( $mode == 'user' && $HTTP_POST_VARS['userlevel'] == 'admin' && $user_level != ADMIN ) { @@ -219,8 +219,8 @@ if ( isset($HTTP_POST_VARS['submit']) && ( ( $mode == 'user' && $user_id ) || ( } } - header("Location: " . append_sid("admin_ug_auth.$phpEx?" . POST_USERS_URL . "=$user_id", true)); - exit; + $message = $lang['Auth_updated'] . '

' . sprintf($lang['Click_return_userauth'], '', '') . '

' . sprintf($lang['Click_return_admin_index'], '', ''); + message_die(GENERAL_MESSAGE, $message); } else {