'Update Statusbox', $menus = array( 'index.php' => 'Dashboard', 'post-comic.php?next=yes' => 'Post Next Comic', 'post-comic.php' => 'Post Comic', 'post-rant.php' => 'Write Rant', 'post-twitter.php' => 'Update Feeds', 'post-page.php' => 'Add page', 'manage-comics.php' => 'Manage', 'users.php' => 'Users' ); // structure of the second level menubar $submenu['manage-comics.php'] = array( 'manage-comics.php' => 'Comics', 'manage-rants.php' => 'Rants' , 'manage-pages.php' => 'Pages', 'manage-types.php' => 'Types', 'manage-twitter-users.php' => 'Manage Twitter Users', 'manage-metatypes.php' => 'Metatypes', 'swap-comics.php' => 'Swap Comics', 'character-twitter.php' => 'Character Twitters', 'view-adminlog.php' => 'View Admin Log' ); function adminmenu($current='') { global $menus, $submenu, $error, $info; if( $current ) { $curS = $curT = $current; } else { $curS = $curT = basename( $_SERVER["PHP_SELF"] ); } foreach( $submenu as $l=>$L ) { foreach( $L as $k=>$v ) { if( $k == $curS ) { $curT = $l; } } } $current_sub_menu = false; ?>

Howdy, . [Sign Out]

Deleted successfully.

'; if( $_GET['saved'] && $_GET['saved'] == 'success' ) $info.='

Changes saved successfully.

'; if( $error ) echo "
$error
"; if( $info ) echo "
$info
"; ?>
<?php echo $title?$title:'Megatokyo Administration Editor'; ?>

Megatokyo Admin

$title\n"; ?>

$entity){ $mapping[$entity] = '&#' . ord($char) . ';'; } return str_replace(array_keys($mapping), $mapping, $string); } function utfentities($string) { return htmlentities($string, ENT_COMPAT, 'UTF-8'); } ?>