aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/login.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-12-02 01:04:25 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-12-02 01:04:25 +0000
commitc495c5ddc7d23a70b5545e51f117cc2d25c17425 (patch)
tree1b980ff1cb8c6b4c7756c774ffa55bd161230212 /phpBB/login.php
parentef2d3d387c74165cee7243b84374823327835f01 (diff)
downloadforums-c495c5ddc7d23a70b5545e51f117cc2d25c17425.tar
forums-c495c5ddc7d23a70b5545e51f117cc2d25c17425.tar.gz
forums-c495c5ddc7d23a70b5545e51f117cc2d25c17425.tar.bz2
forums-c495c5ddc7d23a70b5545e51f117cc2d25c17425.tar.xz
forums-c495c5ddc7d23a70b5545e51f117cc2d25c17425.zip
Removed test redirect headers
git-svn-id: file:///svn/phpbb/trunk@1496 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/login.php')
-rw-r--r--phpBB/login.php18
1 files changed, 5 insertions, 13 deletions
diff --git a/phpBB/login.php b/phpBB/login.php
index db2ad9077c..d9d5cba201 100644
--- a/phpBB/login.php
+++ b/phpBB/login.php
@@ -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));
}
}
@@ -155,7 +148,7 @@ else
// Do a full login page dohickey if
// user not already logged in
//
- if(!$userdata['session_logged_in'])
+ if( !$userdata['session_logged_in'] )
{
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
@@ -202,7 +195,7 @@ else
$forward_page = "";
}
- $username = ($userdata['user_id'] != ANONYMOUS) ? $userdata['username'] : "";
+ $username = ( $userdata['user_id'] != ANONYMOUS ) ? $userdata['username'] : "";
$s_hidden_fields = '<input type="hidden" name="redirect" value="' . $forward_page . '" />';
@@ -223,8 +216,7 @@ else
}
else
{
- header("HTTP/1.0 302 Redirect");
- header("Location: index.$phpEx");
+ header("Location: " . append_sid("index.$phpEx", true));
}
}