Changeset 1818 for trunk/wp-admin/admin-header.php
- Timestamp:
- 10/19/2004 03:03:06 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-header.php
r1810 r1818 1 <?php 2 3 if (strstr($_SERVER['PHP_SELF'], 'plugins/')) { 4 $wp_admin_path = '../../wp-admin/'; 5 $wp_path = '../../'; 6 } else { 7 $wp_admin_path = './'; 8 $wp_path = '../'; 9 } 10 11 require_once($wp_path . 'wp-config.php'); 12 13 require_once(ABSPATH . '/wp-admin/auth.php'); 14 require(ABSPATH . '/wp-admin/admin-functions.php'); 15 16 $dogs = $wpdb->get_results("SELECT * FROM $wpdb->categories"); 17 foreach ($dogs as $catt) { 18 $cache_categories[$catt->cat_ID] = $catt; 19 } 20 21 get_currentuserinfo(); 22 23 $posts_per_page = get_settings('posts_per_page'); 24 $what_to_show = get_settings('what_to_show'); 25 $date_format = get_settings('date_format'); 26 $time_format = get_settings('time_format'); 27 28 $wpvarstoreset = array('profile','standalone','redirect','redirect_url','a','popuptitle','popupurl','text', 'trackback', 'pingback'); 29 for ($i=0; $i<count($wpvarstoreset); $i += 1) { 30 $wpvar = $wpvarstoreset[$i]; 31 if (!isset($$wpvar)) { 32 if (empty($_POST["$wpvar"])) { 33 if (empty($_GET["$wpvar"])) { 34 $$wpvar = ''; 35 } else { 36 $$wpvar = $_GET["$wpvar"]; 37 } 38 } else { 39 $$wpvar = $_POST["$wpvar"]; 40 } 41 } 42 } 43 44 if ($standalone == 0) : 45 46 ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 1 <?php get_admin_page_title(); ?> 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 47 3 <html xmlns="http://www.w3.org/1999/xhtml"> 48 4 <head> 49 5 <title><?php bloginfo('name') ?> › <?php echo $title; ?> — WordPress</title> 50 <link rel="stylesheet" href=" <?php echo $wp_admin_path; ?>wp-admin.css" type="text/css" />51 <link rel="shortcut icon" href=" <?php echo $wp_path; ?>wp-images/wp-favicon.png" />6 <link rel="stylesheet" href="wp-admin.css" type="text/css" /> 7 <link rel="shortcut icon" href="../wp-images/wp-favicon.png" /> 52 8 <meta http-equiv="Content-Type" content="text/html; charset=<?php echo get_settings('blog_charset'); ?>" /> 53 9 … … 120 76 121 77 <?php 122 require(ABSPATH . '/wp-admin/menu.php'); 123 endif; 78 require(ABSPATH . '/wp-admin/menu-header.php'); 79 80 if ( $parent_file == 'options-general.php' ) { 81 require(ABSPATH . '/wp-admin/options-head.php'); 82 } 124 83 ?>
Note: See TracChangeset
for help on using the changeset viewer.