diff options
| author | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-10-14 15:46:53 +0000 |
|---|---|---|
| committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-10-14 15:46:53 +0000 |
| commit | 4aeb685d3cba6c46642d2ba6105b706434fcee49 (patch) | |
| tree | da3a9fb6736dfb939f2f0bcd989d13e68bf9b4db /phpBB/admin/admin_db_utilities.php | |
| parent | e31466a42f03d25d7a9e650f6e0b88b1ff0bb6c3 (diff) | |
| download | forums-4aeb685d3cba6c46642d2ba6105b706434fcee49.tar forums-4aeb685d3cba6c46642d2ba6105b706434fcee49.tar.gz forums-4aeb685d3cba6c46642d2ba6105b706434fcee49.tar.bz2 forums-4aeb685d3cba6c46642d2ba6105b706434fcee49.tar.xz forums-4aeb685d3cba6c46642d2ba6105b706434fcee49.zip | |
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
Diffstat (limited to 'phpBB/admin/admin_db_utilities.php')
| -rw-r--r-- | phpBB/admin/admin_db_utilities.php | 35 |
1 files changed, 6 insertions, 29 deletions
diff --git a/phpBB/admin/admin_db_utilities.php b/phpBB/admin/admin_db_utilities.php index 4d983f19bd..e4045a79af 100644 --- a/phpBB/admin/admin_db_utilities.php +++ b/phpBB/admin/admin_db_utilities.php @@ -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... // |
