aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/admin
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/admin')
-rw-r--r--phpBB/admin/pagestart.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/admin/pagestart.inc b/phpBB/admin/pagestart.inc
index afd5d1d339..ddb642124e 100644
--- a/phpBB/admin/pagestart.inc
+++ b/phpBB/admin/pagestart.inc
@@ -20,7 +20,7 @@
*
***************************************************************************/
-define("IN_ADMIN", true);
+define('IN_ADMIN', true);
$phpbb_root_path = "../";
include($phpbb_root_path . 'extension.inc');
@@ -29,21 +29,21 @@ include($phpbb_root_path . 'common.'.$phpEx);
//
// Start session management
//
-$userdata = session_pagestart($user_ip, PAGE_INDEX, $session_length);
+$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
//
// End session management
//
if( !$userdata['session_logged_in'] )
{
- header("Location: " . append_sid("../login.$phpEx?forward_page=admin/"));
+ header("Location: ../" . append_sid("login.$phpEx?redirect=admin/"));
}
else if( $userdata['user_level'] != ADMIN )
{
message_die(GENERAL_MESSAGE, $lang['Not_admin']);
}
-if ( !$no_page_header )
+if ( empty($no_page_header) )
{
// Not including the pageheader can be neccesarry if META tags are
// needed in the calling script.