\n"; } function menuTopLevelEntry($t, $l, $tt = null) { $te = is_string($tt) ? tooltip($tt) : ""; $t = preg_replace('/ /', ' ', $t); echo "\n"; } function menuEntry($t, $l, $tt = null) { $te = is_string($tt) ? tooltip($tt) : ""; echo "
  • $t
  • \n"; } function menuSubBegin($t, $l, $tt = null, $sid = null) { $te = is_string($tt) ? tooltip($tt) : ""; $id = ($sid == "") ? "" : " id='$sid'"; $t = preg_replace('/ /', ' ', $t); echo "
  • $t
  • \n"; } function drawIcon($n, $d) { $src = getStatic("beta5/pics/icons/$n." . (input::$IE ? 'gif' : 'png')); echo "\"".'; } $game = input::$game; $accounts = $game->getLib('main/account'); $players = $game->getLib('beta5/player'); $alliance = $game->getLib('beta5/alliance'); $player = $_SESSION[game::sessName()]['player']; $pInfo = $players->call('get', $player); if ($pInfo['aid']) { $privileges = $alliance->call('getPrivileges', $player); $techTrade = ($privileges['tech_trade'] > 0); } else { $techTrade = false; } $protected = $players->call('getProtectionLevel', $player); ?>
    call('isRestrained', $player)) { menuEntry('Marketplace', 'market', 'Sell stuff to other players and buy other stuff from them.'); } menuEntry('Enemies', 'enemylist', 'Manage your enemy list.'); menuEntry('Trusted Allies', 'allies', 'Manage your trusted allies list.'); menuTopLevelEnd(); menuTopLevelBegin('Universe', 'universe', 'Overview of the game universe.'); if (input::$IE) { menuEntry('Maps', 'map', 'View the maps of the game universe.'); menuEntry('Rankings', 'rank', 'View the rankings of players and alliances.'); } else { menuSubBegin('Maps', 'map', 'View the maps of the game universe.'); menuEntry('Planets', 'map?menu=p', 'View the planets in the current universe.'); menuEntry('Alliances', 'map?menu=a', 'View planets belonging to alliances in the current universe.'); menuEntry('Listing', 'map?menu=l', 'View a listing of the planets in the game universe.'); menuSubEnd(); menuSubBegin('Rankings', 'rank', 'View the rankings of players and alliances.'); menuEntry('Summary', 'rank?p=s', 'Overview of your current ranking.'); menuEntry('General', 'rank?p=g', 'Display general player rankings.'); menuEntry('Detailed', 'rank?p=d', 'Display detailed player rankings.'); menuEntry('Alliance', 'rank?p=a', 'Display alliance rankings.'); menuEntry('Overall', 'rank?p=o', 'Display overall player rankings.'); menuEntry('Damage', 'rank?p=i', 'Display inflicted damage rankings.'); menuSubEnd(); } menuEntry('Ticks', 'ticks', 'Display details about the ticks.'); menuEntry('Manual', 'manual', 'The manual. Newbies, please read it. Seriously.'); menuTopLevelEnd(); menuTopLevelBegin('Communications', 'comms', 'An overview of your communications with other players'); menuEntry('Compose', 'message?a=c', 'Compose a new private message.'); menuEntry('Inbox', 'message?a=f&f=I', 'View the contents of your inbox.'); if (input::$IE) { menuEntry('Transmissions', 'message?a=f&f=T', 'View internal transmissions'); menuEntry('Folders', 'message?a=mf', 'Manage your custom folders.'); } else { menuSubBegin('Folders', 'message?a=mf', 'Manage your custom folders.', 'jsfmenu'); menuEntry('Transmissions', 'message?a=f&f=T', 'View internal transmissions'); menuEntry('Outbox', 'message?a=f&f=O', 'View the messages you sent.'); menuSubEnd(); } menuEntry('Forums', 'forums?cmd=o', 'Access the forums.'); menuTopLevelEnd(); if ($accounts->call('isLeech', $_SESSION['userid'])) { menuTopLevelEntry('Contribute!', makeLink('contrib', 'main'), 'Contribute to LegacyWorlds!'); } if ($accounts->call('isAdmin', $_SESSION['userid'])) { menuTopLevelEntry('Admin', 'admin', 'Administrative tools'); } ?>
      >>>>>
    >Player >Current funds: >Server Time:
    Game: text?>
    output; $c = prefs::get('main/colour', 'red'); $src = getStatic("beta5/pics/ttl/def/en/$c/$n.gif"); if (!is_null($src)) { echo "\"$n\""; } } $pinf = $players->call('get', $player); if ($accounts->call('getQuitCountdown', $_SESSION['userid'])) { ?> call('isOnVacation', $player)) { ?>
    CLOSING ACCOUNT CLOSING ACCOUNT LEAVING GAME LEAVING GAME ON VACATION ON VACATION UNDER PROTECTION UNDER PROTECTION