diff -r 5990ac411f34 -r 5a282dbf8fad plugins/SpecialAdmin.php --- a/plugins/SpecialAdmin.php Fri Jun 05 22:09:42 2009 -0400 +++ b/plugins/SpecialAdmin.php Mon Jun 15 20:09:58 2009 -0400 @@ -2051,20 +2051,26 @@ { global $db, $session, $paths, $template, $plugins; // Common objects global $lang; + global $output; - if($session->auth_level < USER_LEVEL_ADMIN) { + if ( $session->auth_level < USER_LEVEL_ADMIN ) + { redirect(makeUrlNS('Special', 'Login/'.$paths->page, 'level='.USER_LEVEL_ADMIN), 'Not authorized', 'You need an authorization level of '.USER_LEVEL_ADMIN.' to use this page, your auth level is: ' . $session->auth_level, 0); exit; } else { $template->set_theme('admin', 'default'); - $template->add_header(''); + $template->preload_js('fat'); + $template->preload_js('ajax'); + $template->preload_js('l10n'); + $template->preload_js('jquery'); + $template->preload_js('jquery-ui'); + $template->preload_js('autofill'); + $template->preload_js('admin-menu'); - if( !isset( $_GET['noheaders'] ) ) - { - $template->header(); - } + $output->header(); + echo $lang->get('adm_page_tagline'); ?>
-
- +
@@ -2265,10 +2266,7 @@
footer(); + $output->footer(); } }