mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Removed test redirect headers
git-svn-id: file:///svn/phpbb/trunk@1496 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
ef2d3d387c
commit
c495c5ddc7
1 changed files with 5 additions and 13 deletions
|
@ -52,7 +52,7 @@ if( isset($HTTP_POST_VARS['login']) || isset($HTTP_GET_VARS['login']) || isset($
|
|||
$result = $db->sql_query($sql);
|
||||
if(!$result)
|
||||
{
|
||||
message_die(GENERAL_ERROR, "Error in obtaining userdata : login", __LINE__, __FILE__, $sql);
|
||||
message_die(GENERAL_ERROR, "Error in obtaining userdata : login", "", __LINE__, __FILE__, $sql);
|
||||
}
|
||||
|
||||
$rowresult = $db->sql_fetchrow($result);
|
||||
|
@ -61,7 +61,6 @@ if( isset($HTTP_POST_VARS['login']) || isset($HTTP_GET_VARS['login']) || isset($
|
|||
{
|
||||
if( $rowresult['user_level'] != ADMIN && $board_config['board_disable'] )
|
||||
{
|
||||
header("HTTP/1.0 302 Redirect");
|
||||
header("Location: " . append_sid("index.$phpEx", true));
|
||||
}
|
||||
else
|
||||
|
@ -76,18 +75,16 @@ if( isset($HTTP_POST_VARS['login']) || isset($HTTP_GET_VARS['login']) || isset($
|
|||
{
|
||||
if( !empty($HTTP_POST_VARS['redirect']) )
|
||||
{
|
||||
header("HTTP/1.0 302 Redirect");
|
||||
header("Location: " . append_sid($HTTP_POST_VARS['redirect'], true));
|
||||
}
|
||||
else
|
||||
{
|
||||
header("HTTP/1.0 302 Redirect");
|
||||
header("Location: " . append_sid("index.$phpEx", true));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
message_die(CRITICAL_ERROR, "Couldn't start session : login", __LINE__, __FILE__);
|
||||
message_die(CRITICAL_ERROR, "Couldn't start session : login", "", __LINE__, __FILE__);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -126,12 +123,10 @@ if( isset($HTTP_POST_VARS['login']) || isset($HTTP_GET_VARS['login']) || isset($
|
|||
|
||||
if( !empty($HTTP_POST_VARS['redirect']) )
|
||||
{
|
||||
header("HTTP/1.0 302 Redirect");
|
||||
header("Location: " . append_sid($HTTP_POST_VARS['redirect'], true));
|
||||
}
|
||||
else
|
||||
{
|
||||
header("HTTP/1.0 302 Redirect");
|
||||
header("Location: " . append_sid("index.$phpEx", true));
|
||||
}
|
||||
}
|
||||
|
@ -139,12 +134,10 @@ if( isset($HTTP_POST_VARS['login']) || isset($HTTP_GET_VARS['login']) || isset($
|
|||
{
|
||||
if( !empty($HTTP_POST_VARS['redirect']) )
|
||||
{
|
||||
header("HTTP/1.0 302 Redirect");
|
||||
header("Location: " . append_sid($HTTP_POST_VARS['redirect'], true));
|
||||
}
|
||||
else
|
||||
{
|
||||
header("HTTP/1.0 302 Redirect");
|
||||
header("Location: " . append_sid("index.$phpEx", true));
|
||||
}
|
||||
}
|
||||
|
@ -223,8 +216,7 @@ else
|
|||
}
|
||||
else
|
||||
{
|
||||
header("HTTP/1.0 302 Redirect");
|
||||
header("Location: index.$phpEx");
|
||||
header("Location: " . append_sid("index.$phpEx", true));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue