2003-05-22 08:12:53 -04:00
|
|
|
<h1 id="wphead"><a href="http://wordpress.org" rel="external"><span>WordPress</span></a></h1>
|
|
|
|
<ul id="adminmenu">
|
2003-05-28 03:54:49 -04:00
|
|
|
<?php
|
2003-05-22 18:51:40 -04:00
|
|
|
$menu = file("./b2menutop.txt");
|
2003-05-28 03:54:49 -04: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
|
|
|
|
if (substr($PHP_SELF, -6) == substr($item[1], -6)) $class = ' id="current"';
|
|
|
|
if ($user_level >= $item[0]) echo "\n\t<li><a href='{$item[1]}'$class>{$item[2]}</a></li>";
|
2003-05-22 08:12:53 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|
2003-05-28 03:54:49 -04:00
|
|
|
|
|
|
|
<li><a href="javascript:profile(<?php echo $user_ID ?>)">My Profile</a></li>
|
|
|
|
<li><a href="<?php echo "$siteurl/$blogfilename"; ?>">View site</a></li>
|
2003-06-12 17:32:06 -04:00
|
|
|
<li id="last"><a href="<?php echo $siteurl ?>/b2login.php?action=logout">Logout (<?php echo $user_nickname ?>)</a></li>
|
2003-05-22 08:12:53 -04:00
|
|
|
</ul>
|
2003-05-23 04:29:51 -04:00
|
|
|
<br clear="all" />
|
2003-05-22 08:12:53 -04:00
|
|
|
|
2003-05-23 04:29:51 -04:00
|
|
|
<h2><?php echo $title; ?></h2>
|