2003-10-13 07:17:36 +02:00
|
|
|
<h1 id="wphead"><a href="http://wordpress.org" rel="external">WordPress</a></h1>
|
|
|
|
|
2003-05-22 14:12:53 +02:00
|
|
|
<ul id="adminmenu">
|
2003-05-28 09:54:49 +02:00
|
|
|
<?php
|
2003-12-11 01:22:36 +01:00
|
|
|
$menu = file('./menu.txt');
|
2003-05-28 09:54:49 +02:00
|
|
|
$continue = true;
|
|
|
|
foreach ($menu as $item) {
|
|
|
|
$class = '';
|
|
|
|
$item = trim($item);
|
|
|
|
if ('***' == $item) $continue = false;
|
|
|
|
if ($continue) {
|
|
|
|
$item = explode("\t", $item);
|
|
|
|
// 0 = user level, 1 = file, 2 = name
|
2003-12-08 04:46:42 +01:00
|
|
|
$self = str_replace('/wp-admin/', '', $PHP_SELF);
|
|
|
|
if ((substr($self, -20) == substr($item[1], -20)) || ($parent_file && ($item[1] == $parent_file))) $class = ' class="current"';
|
2003-05-28 09:54:49 +02:00
|
|
|
if ($user_level >= $item[0]) echo "\n\t<li><a href='{$item[1]}'$class>{$item[2]}</a></li>";
|
2003-05-22 14:12:53 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|
2003-05-28 09:54:49 +02:00
|
|
|
|
2004-01-01 01:55:31 +01:00
|
|
|
<li><a href="profile.php">My Profile</a></li>
|
2003-10-26 20:31:13 +01:00
|
|
|
<li><a href="<?php echo "$siteurl/$blogfilename"; ?>">View site</a></li>
|
2003-12-11 01:22:36 +01:00
|
|
|
<li class="last"><a href="<?php echo $siteurl ?>/wp-login.php?action=logout">Logout (<?php echo stripslashes($user_nickname) ?>)</a></li>
|
2003-05-22 14:12:53 +02:00
|
|
|
</ul>
|
|
|
|
|
2003-10-26 20:31:13 +01:00
|
|
|
<h2><?php echo $title; ?></h2>
|