mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 00:37:42 +02:00
Various updates, cleanups and support for URI based sessions ... more to come at some point
git-svn-id: file:///svn/phpbb/trunk@1179 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -37,29 +37,13 @@ if($setmodules == 1)
|
||||
return;
|
||||
}
|
||||
|
||||
$phpbb_root_path = "./../";
|
||||
include($phpbb_root_path . 'extension.inc');
|
||||
include($phpbb_root_path . 'common.'.$phpEx);
|
||||
//
|
||||
// Start session management
|
||||
// Load default header
|
||||
//
|
||||
$userdata = session_pagestart($user_ip, PAGE_INDEX, $session_length);
|
||||
init_userprefs($userdata);
|
||||
//
|
||||
// End session management
|
||||
//
|
||||
|
||||
//
|
||||
// Is user logged in? If yes are they an admin?
|
||||
//
|
||||
if( !$userdata['session_logged_in'] )
|
||||
{
|
||||
header("Location: ../login.$phpEx?forward_page=admin/");
|
||||
}
|
||||
else if( $userdata['user_level'] != ADMIN )
|
||||
{
|
||||
message_die(GENERAL_MESSAGE, $lang['Not_admin']);
|
||||
}
|
||||
$phpbb_root_dir = "./../";
|
||||
$no_page_header = TRUE;
|
||||
require('pagestart.inc');
|
||||
include($phpbb_root_path . 'includes/sql_parse.'.$phpEx);
|
||||
|
||||
//
|
||||
// Set VERBOSE to 1 for debugging info..
|
||||
@@ -72,16 +56,9 @@ define("VERBOSE", 0);
|
||||
//
|
||||
@set_time_limit(1200);
|
||||
|
||||
//
|
||||
// Pull in the functions for splitting an sql file into individual statements
|
||||
//
|
||||
|
||||
include($phpbb_root_path . 'includes/sql_parse.'.$phpEx);
|
||||
|
||||
//
|
||||
// -----------------------
|
||||
// The following functions are adapted from phpMyAdmin and upgrade_20.php
|
||||
//
|
||||
|
||||
//
|
||||
// This function is used for grabbing the sequences for postgres...
|
||||
//
|
||||
|
Reference in New Issue
Block a user