mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-22 16:22:58 +02:00
redirect header changes
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3154 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -116,9 +116,7 @@ if ( isset($HTTP_POST_VARS['cancel']) )
|
||||
$post_append = '';
|
||||
}
|
||||
|
||||
$header_location = ( @preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE')) ) ? 'Refresh: 0; URL=' : 'Location: ';
|
||||
header($header_location . append_sid($redirect, true) . $post_append);
|
||||
exit;
|
||||
redirect(append_sid($redirect, true) . $post_append);
|
||||
}
|
||||
|
||||
//
|
||||
@@ -368,9 +366,7 @@ if ( !$is_auth[$is_auth_type] )
|
||||
break;
|
||||
}
|
||||
|
||||
$header_location = ( @preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE')) ) ? 'Refresh: 0; URL=' : 'Location: ';
|
||||
header($header_location . append_sid("login.$phpEx?redirect=posting.$phpEx&" . $redirect, true));
|
||||
exit;
|
||||
redirect(append_sid("login.$phpEx?redirect=posting.$phpEx&" . $redirect, true));
|
||||
}
|
||||
|
||||
//
|
||||
@@ -1063,7 +1059,7 @@ $template->assign_vars(array(
|
||||
//
|
||||
// Poll entry switch/output
|
||||
//
|
||||
if( ( $mode == 'newtopic' || ( $mode == 'editpost' && $post_data['first_post'] ) ) && $is_auth['auth_pollcreate'] )
|
||||
if( ( $mode == 'newtopic' || ( $mode == 'editpost' && $post_data['edit_poll']) ) && $is_auth['auth_pollcreate'] )
|
||||
{
|
||||
$template->assign_vars(array(
|
||||
'L_ADD_A_POLL' => $lang['Add_poll'],
|
||||
|
Reference in New Issue
Block a user