From 91d4f863e4efceb798f05a30b6b050b1f8ebb9fd Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Sat, 28 Jul 2001 16:42:12 +0000 Subject: Lots of languagification and redirection path change git-svn-id: file:///svn/phpbb/trunk@759 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/admin/admin_db_utilities.php | 36 +++++++++++++----------------------- 1 file changed, 13 insertions(+), 23 deletions(-) (limited to 'phpBB/admin/admin_db_utilities.php') diff --git a/phpBB/admin/admin_db_utilities.php b/phpBB/admin/admin_db_utilities.php index ef4e9da39a..5004377487 100644 --- a/phpBB/admin/admin_db_utilities.php +++ b/phpBB/admin/admin_db_utilities.php @@ -46,29 +46,18 @@ include($phpbb_root_path . 'common.'.$phpEx); // $userdata = session_pagestart($user_ip, PAGE_INDEX, $session_length); init_userprefs($userdata); -// -// End sessionmanagement // - -// -// Check user permissions +// End session management // if( !$userdata['session_logged_in'] ) { - header("Location: ../login.$phpEx?forward_page=/admin/"); + header("Location: ../login.$phpEx?forward_page=admin/"); } else if( $userdata['user_level'] != ADMIN ) { - message_die(GENERAL_MESSAGE, "You are not authorised to administer this board"); + message_die(GENERAL_MESSAGE, $lang['Not_admin']); } -// -// Define Template files... -// -$template->set_filenames(array( - "body" => "admin/db_utilities_body.tpl") -); - // // Set VERBOSE to 1 for debugging info.. // @@ -854,23 +843,24 @@ if( isset($HTTP_GET_VARS['perform']) || isset($HTTP_POST_VARS['perform']) ) case 'restore': if(!isset($restore_start)) { + // + // Define Template files... + // + $template->set_filenames(array( + "body" => "admin/db_utils_restore_body.tpl") + ); + // // Page header // $template_header = "admin/page_header.tpl"; include('page_header_admin.'.$phpEx); - $db_message = "

This will perform a full restore of a previously Backed up phpBB database


\n"; - $db_message .= "

WARNING: This will overwrite any existing data
\n"; - $db_links = "

\n"; - $db_links .= "\n"; - $db_links .= "Backup File:\n"; - $db_links .= "\n"; - $db_links .= "

\n"; + $s_hidden_fields = ""; $template->assign_vars(array( - "U_DB_MESSAGE" => $db_message, - "U_DB_LINKS" => $db_links) + "S_DBRESTORE_ACTION" => append_sid("admin_db_utilities.$phpEx"), + "S_HIDDEN_FIELDS" => $s_hidden_fields) ); $template->pparse("body"); -- cgit v1.2.1