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
+2 -21
View File
@@ -1,24 +1,9 @@
<?php
require_once('../wp-includes/wp-l10n.php');
require_once('admin.php');
$title = __('Edit User');
function add_magic_quotes($array) {
foreach ($array as $k => $v) {
if (is_array($v)) {
$array[$k] = add_magic_quotes($v);
} else {
$array[$k] = addslashes($v);
}
}
return $array;
}
if (!get_magic_quotes_gpc()) {
$_POST = add_magic_quotes($_POST);
}
$wpvarstoreset = array('action', 'standalone', 'redirect', 'profile', 'user_id');
$wpvarstoreset = array('action', 'redirect', 'profile', 'user_id');
for ($i=0; $i<count($wpvarstoreset); $i += 1) {
$wpvar = $wpvarstoreset[$i];
if (!isset($$wpvar)) {
@@ -83,9 +68,6 @@ break;
case 'switchposts':
$standalone = 1;
require_once('admin-header.php');
check_admin_referer();
/* TODO: Switch all posts from one user to another user */
@@ -94,7 +76,6 @@ break;
default:
$standalone = 0;
include ('admin-header.php');
$edituser = get_userdata($user_id);