reconnexion(); //$alli = $bdd->unique_query("SELECT * FROM $table_alliances WHERE id = '".$planete->id_alliance."';"); //On regarde si le joueur a une flotte en vue $radar = array(); $nbPlan = count($queryPlanetes); //$detect = $planete->technologies[1]*1800; /*for($i = 0; $i < $nbPlan; $i++){ $end_galaxie = $queryPlanetes[$i]['galaxie']; $end_ss = $queryPlanetes[$i]['ss']; $end_position = $queryPlanetes[$i]['position']; $radar[] = array($bdd->query("SELECT F.mission, F.start_galaxie, F.start_ss, F.start_position, F.start_time, F.end_time, F.start_time + F.end_time - ".time()." AS arrive_time, P.nom_planete, U.pseudo FROM $table_flottes F INNER JOIN $table_planete P ON P.galaxie = F.start_galaxie AND P.ss = F.start_ss AND P.position = F.start_position INNER JOIN $table_user U ON U.id = P.id_user WHERE F.effectue != '1' AND F.end_galaxie = '$end_galaxie' AND F.end_ss = '$end_ss' AND F.end_position = '$end_position' AND F.id_user != $id_user AND F.start_time + F.end_time - ".time()." <= $detect;"), array($queryPlanetes[$i]['nom_planete'], $queryPlanetes[$i]['galaxie'], $queryPlanetes[$i]['ss'], $queryPlanetes[$i]['position'])); }*/ $bdd->deconnexion(); unset($nbPlan); if (SURFACE == "planete") { //Affichage des informations sur la planète $template->assign('diametre', $planete->cases * 92); $template->assign('points', $planete->points); } $template->assign('radar',$radar); //$template->assign('alliance', $alli); if (SURFACE == "planete") { $template->assign('fileBat', $planete->file_bat->printFile($planete)); $template->assign('fileCas', $planete->file_cas->printFile($planete)); $template->assign('fileVais', $planete->file_vais->printFile($planete)); $template->assign('fileTer', $planete->file_ter->printFile($planete)); $template->assign('fileTech', $planete->file_tech->printFile($planete)); } unset($radar, $alli) ?>