Split admin-header.php into admin.php and admin-header.php. Split menu.php into menu-header.php and menu.php. Add plugin admin page support.

git-svn-id: https://develop.svn.wordpress.org/trunk@1818 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2004-10-19 03:03:06 +00:00
parent ac3556c7aa
commit ed78ed9a2d
31 changed files with 254 additions and 445 deletions

View File

@@ -1,9 +1,7 @@
<?php
require_once('admin.php');
if ( isset($_GET['action']) ) {
$standalone = 1;
require_once('admin-header.php');
check_admin_referer();
if ('activate' == $_GET['action']) {
@@ -24,13 +22,9 @@ if ( isset($_GET['action']) ) {
}
}
require_once('../wp-includes/wp-l10n.php');
$title = __('Manage Plugins');
require_once('admin-header.php');
if ($user_level < 9) // Must be at least level 9
die (__('Sorry, you must be at least a level 8 user to modify plugins.'));
// Clean up options
// If any plugins don't exist, axe 'em