mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-13 04:04:12 +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:
@@ -40,9 +40,7 @@ init_userprefs($userdata);
|
||||
|
||||
if (!$userdata['session_logged_in'])
|
||||
{
|
||||
$header_location = ( @preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE')) ) ? 'Refresh: 0; URL=' : 'Location: ';
|
||||
header($header_location . '../' . append_sid("login.$phpEx?redirect=admin/"));
|
||||
exit;
|
||||
redirect(append_sid("login.$phpEx?redirect=admin/", true));
|
||||
}
|
||||
else if ($userdata['user_level'] != ADMIN)
|
||||
{
|
||||
@@ -55,9 +53,7 @@ if ($HTTP_GET_VARS['sid'] != $userdata['session_id'])
|
||||
$url = preg_replace('/\?$/', '', $url);
|
||||
$url .= ((strpos($url, '?')) ? '&' : '?') . 'sid=' . $userdata['session_id'];
|
||||
|
||||
$header_location = ( @preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE')) ) ? 'Refresh: 0; URL=' : 'Location: ';
|
||||
header($header_location . $url);
|
||||
exit;
|
||||
redirect($url);
|
||||
}
|
||||
|
||||
if (empty($no_page_header))
|
||||
|
Reference in New Issue
Block a user