} elseif ($mode == 2) { // Mais c'est qu'il mordrait ! // A t'on idée de vouloir lancer des MIP sur ce pauvre bonhomme !! $galaxy = $_GET['galaxy']; $system = $_GET['system']; $planet = $_GET['planet']; } elseif ($mode == 3) { // Appel depuis un menu avec uniquement galaxy et system de passé ! $galaxy = $_GET['galaxy']; $system = $_GET['system']; } else { // Si j'arrive ici ... // C'est qu'il y a vraiment eu un bug $galaxy = 1; $system = 1; } $planetcount = 0; $lunacount = 0; $page = InsertGalaxyScripts($CurrentPlanet); $page .= "<body style=\"overflow: hidden;\" onUnload=\"\"><br><br>"; $page .= ShowGalaxySelector($galaxy, $system); if ($mode == 2) { $CurrentPlanetID = $_GET['current']; $page .= ShowGalaxyMISelector($galaxy, $system, $planet, $CurrentPlanetID, $CurrentMIP); } $page .= "<table width=700><tbody>"; $page .= ShowGalaxyTitles($galaxy, $system); $page .= ShowGalaxyRows($galaxy, $system); $page .= ShowGalaxyFooter($galaxy, $system, $CurrentMIP, $CurrentRC, $CurrentSP); $page .= "</tbody></table></div>"; display($page, 'Galaxie', false, '', false);
*/ includeLang('galaxy'); getLang('galaxy'); // Get the mdoe $mode = idstring($_GET['mode']); if ($mode == 1) { //We are browsing galaxy, so what gal / sys $galaxy = idstring($_GET["galaxy"]); $system = idstring($_GET["system"]); } else { // Well we have just got to galaxy, so show the homeworld $galaxy = $planetrow['galaxy']; $system = $planetrow['system']; } $bloc['galaxy_head'] = ShowGalaxySelector($galaxy, $system); $bloc['galaxy_rows'] = ShowGalaxyRows($galaxy, $system); //Footer $bloc['res209'] = $planetrow[$resource[209]]; $bloc['res210'] = $planetrow[$resource[210]]; $bloc['res503'] = $planetrow[$resource[503]]; $bloc['curfleets'] = doquery("SELECT COUNT(fleet_id) as count FROM {{table}} WHERE `owner_userid` = '" . $user['id'] . "';", 'fleets', true); $bloc['curfleets'] = $bloc['curfleets']['count']; //Current gal/sys $bloc['cgal'] = $galaxy; $bloc['csys'] = $system; $page = parsetemplate(gettemplate('galaxy/galaxy_div'), $bloc); /* $userally = doquery("SELECT `relations` FROM {{table}} WHERE `id` = '".$user['ally_id']."' LIMIT 1 ;",'alliance',true); $relations = explode(";",$userally['relations']); $replace_a = explode(",",$relations[0]); $with_a = explode(",",$relations[1]);