$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; echo InsertGalaxyScripts($CurrentPlanet); echo ShowGalaxySelector($galaxy, $system); // echo ShowGalaxyFooter ( $galaxy, $system, $CurrentMIP, $CurrentRC, $CurrentSP); if ($mode == 2) { $CurrentPlanetID = $_GET['current']; echo ShowGalaxyMISelector($galaxy, $system, $planet, $CurrentPlanetID, $CurrentMIP); } echo "<table width=569><tbody>"; // $page .= ShowGalaxyTitles ( $galaxy, $system ); // $page .= ShowGalaxyRows ( $galaxy, $system ); // $page .= ShowGalaxyFooter ( $galaxy, $system, $CurrentMIP, $CurrentRC, $CurrentSP); echo "</tbody></table></div>"; echo "\r\n\r\n<div id=\"raum_3\" style=\"z-index: 0; position: absolute; top: 50px; height: 0px;\"><img src=\"images/galaxy/gala.jpg\" border=\"4\" height=\"615\" width=\"916\"></div>\r\n"; $e = 0; $f = 1; $g = 1; $position = array("276;577; 347;590; 350;138; 593;590; 444;502; 110;400; 661;351; 725;150; 40;280; 751;483; 300;347; 186;182; 206;540; 494;380; 516;220;", "350;308; 533;608; 444;472; 37;487; 176;610; 347;570; 641;351; 755;150; 444;320; 546;240; 126;200; 701;483; 240;347; 336;142; 246;500;", "546;340; 176;597; 347;570; 350;138; 524;220; 533;600; 444;412; 70;530; 246;480; 641;351; 755;150; 106;230; 701;483; 380;347; 236;282;", "533;428; 444;472; 137;450; 611;351; 755;150; 106;230; 701;483; 380;347; 236;282; 246;500; 584;550; 546;240; 46;607; 347;570; 350;138;", "350;288; 533;588; 444;472; 36;607; 347;570; 107;450; 641;351; 755;150; 106;200; 701;483; 380;347; 306;162; 246;500; 240;280; 546;240;", "187;470; 661;351; 755;150; 56;607; 347;570; 350;138; 533;588; 304;472; 546;240; 60;230; 701;503; 340;327; 524;400; 196;282; 166;500;");
} } elseif ($mode == 2) { $galaxy = $_GET['galaxy']; $system = $_GET['system']; $planet = $_GET['planet']; } elseif ($mode == 3) { $galaxy = $_GET['galaxy']; $system = $_GET['system']; } else { $galaxy = 1; $system = 1; } $planetcount = 0; $lunacount = 0; $page = InsertGalaxyScripts($CurrentPlanet); $page .= "\n<table style=\"width:100%;\" cellspacing=\"0\" >\n <tr><td style=\"width:10%;\" valign=\"top\" >\n "; $page .= ShowGalaxySelector($galaxy, $system, $CurrentMIP, $CurrentRC, $CurrentGRC, $CurrentSP); $page .= "\n </td><td style=\"width:90%;\" valign=\"top\" >\n\n <table cellspacing=\"0\" style=\"width:800px;\">\n <tr><td>\n "; $bild = array('Bild1.png', 'Bild2.png', 'Bild3.png', 'Bild4.png', 'Bild5.png', 'Bild6.png', 'Bild7.png', 'Bild8.png', 'Bild9.png', 'Bild10.png', 'Bild11.png', 'Bild12.png', 'Bild13.png', 'Bild14.png'); shuffle($bild); $page .= "<a href=\"fleet.php?galaxy=" . $Galaxy . "&system=" . $System . "&planet=16;planettype=1&target_mission=15\"><img src=\"./styl/image/gala/" . $bild[0] . "\" alt=\"\"></a>"; $page .= "\n </td><td>\n\n <table cellspacing=\"0\">\n "; $page .= ShowGalaxyRows($galaxy, $system); $page .= "\n </table>\n </td></tr>\n </table>\n </td></tr>\n</table>\n "; if ($mode == 2) { $CurrentPlanetID = $_GET['current']; $page .= ShowGalaxyMISelector($galaxy, $system, $planet, $CurrentPlanetID, $CurrentMIP); } $page .= ShowGalaxyFooter($galaxy, $system, $CurrentMIP, $CurrentRC, $CurrentGRC, $CurrentSP); $page .= "\n<div style='position:absolute; bottom:20px; right:0%; width:150px;' ><a href=\"galaxy.php?mode=0\"><b><u>" . $lang['gala']['0013'] . "</u></b></a></div>\n "; display($page, $lang['Galaxy'], true);
} 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);
* @copyright 2010 by MadnessRed for XNova */ 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]);