diff options
| author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-06-22 18:31:50 +0000 |
|---|---|---|
| committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-06-22 18:31:50 +0000 |
| commit | d48e85e0ac5e675ca33fac173f30c75403d1033f (patch) | |
| tree | 1164430fa3b83a4d9283961b09c1576f2885e6b2 /wp-inst/wp-admin/menu-header.php | |
| parent | 086dcde66603301531efc6d8087bd06d0546f148 (diff) | |
Moved everything in wp-inst down a directory.
Uses's Ryan Boren's htaccess rules and mods
If you're upgrading, try this on a test server first!
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@591 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-inst/wp-admin/menu-header.php')
| -rw-r--r-- | wp-inst/wp-admin/menu-header.php | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/wp-inst/wp-admin/menu-header.php b/wp-inst/wp-admin/menu-header.php deleted file mode 100644 index 416a229..0000000 --- a/wp-inst/wp-admin/menu-header.php +++ /dev/null @@ -1,61 +0,0 @@ -<ul id="adminmenu"> -<?php -$self = preg_replace('|^.*/wp-admin/|i', '', $_SERVER['PHP_SELF']); -$self = preg_replace('|^.*/plugins/|i', '', $self); - -get_admin_page_parent(); - -foreach ($menu as $item) { - $class = ''; - - // 0 = name, 1 = capability, 2 = file - if (( strcmp($self, $item[2]) == 0 && empty($parent_file)) || ($parent_file && ($item[2] == $parent_file))) $class = ' class="current"'; - - if ( !empty($submenu[$item[2]]) || current_user_can($item[1]) ) { - if ( file_exists(ABSPATH . "wp-content/plugins/{$item[2]}") ) - echo "\n\t<li><a href='" . get_settings('siteurl') . "/wp-admin/admin.php?page={$item[2]}'$class>{$item[0]}</a></li>"; - else - echo "\n\t<li><a href='" . get_settings('siteurl') . "/wp-admin/{$item[2]}'$class>{$item[0]}</a></li>"; - } -} - -?> -</ul> - -<?php -// Sub-menu -if ( isset($submenu["$parent_file"]) ) : -?> -<ul id="submenu"> -<?php -foreach ($submenu["$parent_file"] as $item) : - if ( !current_user_can($item[1]) ) - continue; - -if ( isset($submenu_file) ) { - if ( $submenu_file == $item[2] ) $class = ' class="current"'; - else $class = ''; -} else if ( (isset($plugin_page) && $plugin_page == $item[2]) || (!isset($plugin_page) && $self == $item[2]) ) $class = ' class="current"'; -else $class = ''; - -$menu_hook = get_plugin_page_hook($item[2], $parent_file); - -if (file_exists(ABSPATH . "wp-content/plugins/{$item[2]}") || ! empty($menu_hook)) { - if ( 'admin.php' == $pagenow ) - echo "\n\t<li><a href='" . get_settings('siteurl') . "/wp-admin/admin.php?page={$item[2]}'$class>{$item[0]}</a></li>"; - else - echo "\n\t<li><a href='" . get_settings('siteurl') . "/wp-admin/{$parent_file}?page={$item[2]}'$class>{$item[0]}</a></li>"; - } else { - echo "\n\t<li><a href='" . get_settings('siteurl') . "/wp-admin/{$item[2]}'$class>{$item[0]}</a></li>"; - } -endforeach; -?> - -</ul> -<?php - -endif; - -do_action('admin_notices'); - -?> |
