c_top.gif);"> </td> <td width="20"><img alt="" src="<?php echo $cq2imageurl; ?> c_righttopcorner.gif" width="20" height="15"></td> </tr> <tr> <td width="20" style="background-image: url(<?php echo $cq2imageurl; ?> c_left.gif);"> </td> <td width="132"> <?php topic("Donation", FALSE, FALSE); menuitem("Make a Donation", "donation"); ?> </td> </tr> </table> </td> <td width="21" style="background-image: url(<?php echo $cq2imageurl; ?> c_right.gif);"> </td> </tr> <tr> <td width="20"><img alt="" src="<?php echo $cq2imageurl;
function setmenu($highlight = false, $menuitems = false) { global $menu, $default_menuitems; global $client; if (!$menuitems) { $menuitems = $default_menuitems; } $menu = ''; if ($highlight && $client->bankid) { foreach ($menuitems as $cmd => $text) { if ($cmd != 'admins' || $client->bankid && $client->id == $client->bankid) { if ($menu) { $menu .= '  '; } $menu .= menuitem($cmd, $text, $highlight); } } } else { $menu .= menuitem('logout', 'Logout', false); } }
if ($gdSpecialBuildings["{$acc['x']}"]["{$acc['y']}"]) { $building = $gdSpecialBuildings["{$acc['x']}"]["{$acc['y']}"]; if ($building["name"] != "Stonehenge") { // teleportation fix if (!$page) { $page = $building["name"]; } echo '<table height="3" width="1"><tr><td></td></table>'; // name menuitem($building["fullname"], $building["name"]); // extra options $array2 = $building["menu"]; reset($array2); while (list($oname, $pagename) = each($array2)) { menuitem($oname, $pagename, "SPECIAL"); } } } } echo '<table height="3" width="1"><tr><td></td></table>'; menuitem("Other Players", "playersinfo"); menuitem("Other Kingdoms", "kingdominfo"); menuitem("Rodia", "rodia"); menuitem("Travel", "travel"); if (!is_null($acc[x]) && !is_null($acc[y])) { menuitem("Go home", "travel", "&action=teleport&kid={$acc['kingdom']}", FALSE, TRUE); } menuitem("Go to Aether", "travel", "&action=teleport&kid=Aether", FALSE, TRUE); if (!$gdSpecialKingdoms[$acc["kingdom"]]) { menuitem("Go to {$gdStartingKingdomName}", "travel", "&action=teleport&kid={$gdStartingKingdomId}", FALSE, TRUE); }
<table cellspacing="10px"> <tr> <td><a href="router.php?zone=menu&action=activations"><?php echo menuitem(Constants::ACTIVATION_SECTION); ?> </a></td> <td><a href="router.php?zone=menu&action=events"><?php echo menuitem(Constants::EVENTS_SECTION); ?> </a></td> <td><a href="router.php?zone=menu&action=logout"><?php echo menuitem(Constants::LOGOUT_SECTION); ?> </a></td> <td><a href="router.php?zone=menu&action=about"><?php echo menuitem(Constants::ABOUT_SECTION); ?> </a></td> </tr> </table> <?php } ?> <?php // Returns the HTML string corresponding to a menu item // @param the section code constant // @return the HTML string (bold if is the active section) function menuitem($sectioncode) {