function displaypage($page, $title = '', $body = '', $scripts = '') { //global $link, $game_config, $debug, $user, $planetrow; //old global $link, $InLogin, $game_config, $debug, $user, $planetrow, $cpage, $pageid, $loadstart; if ($_GET['page'] != 'admin') { include ROOT_PATH . "menu.php"; } else { include ROOT_PATH . "adminmenu.php"; } include ROOT_PATH . "planetlist.php"; $Menu = ShowLeftMenu($cpage); $Planets = ShowPlanetList(); if (defined('IN_ADMIN')) { $AdminPage = true; } if (!defined("NO_ADS") && $game_config['OverviewBanner'] == '1') { $ads = $game_config['OverviewClickBanner']; } else { $ads = ''; } $DisplayPage = GeneralHead($title); $DisplayPage .= NewHeader($pageid); $DisplayPage .= $Menu; $DisplayPage .= "\n<!--Start axah bit -->\n<div id=\"axah\">\n"; $DisplayPage .= $page; $DisplayPage .= "\n<!--End axah bit -->\n</div>\n"; // Debug from origional XNova if ($user['authlevel'] >= 1) { if ($game_config['debug'] == 1) { $debug->echo_log(); } } //$DisplayPage .= RightMenu(); $DisplayPage .= $Planets; $DisplayPage .= GeneralFoot(); if (isset($link)) { mysql_close(); } die(AddUniToLinks($DisplayPage)); }
} if ($c > 5) { $mode = 'cutty'; $name = 'myPlanets'; $size = '1'; } else { $mode = 'norm'; $name = 'myWorlds'; $size = '3'; } $planetlist = str_replace('{size}', $size, $planetlist); if ($axah) { $return = "\t<div id=\"" . $mode . "\">\n\t\t<div id=\"" . $name . "\">\n\n\t\t\t<div id=\"countColonies\">\n\t\t\t\t<p class=\"textCenter tips\" title=\"|\">\n\t\t\t\t\t<span>" . $c . "/" . eval($formulas['max_planets']) . "</span> Planets\n\t\t\t\t</p>\n\t\t\t</div>" . $planetlist . "\n\n\t\t</div>\n\t</div>\n"; } else { $return = "<!-- RIGHTMENU -->\n<div id=\"rechts\">\n\n\t<div id=\"" . $mode . "\">\n\t\t<div id=\"" . $name . "\">\n\n\t\t\t<div id=\"countColonies\">\n\t\t\t\t<p class=\"textCenter tips\" title=\"|\">\n\t\t\t\t\t<span>" . $c . "/" . eval($formulas['max_planets']) . "</span> Planets\n\t\t\t\t</p>\n\t\t\t</div>" . $planetlist . "\n\n\t\t</div>\n\t</div>\n</div>\n<!-- END RIGHTMENU -->\n"; } } else { $return = ""; if ($debug) { echo "\$user returned <font color=blue><b>false</b></font><br /><br />"; print_r($user); } } return $return; } if ($_GET['debug'] || $_GET['show'] || $_GET['axah']) { echo ShowPlanetList($_GET['axah'], $_GET['debug']); } ?>