require_once './fonction.php'; // les cinq planètes $Planete1 = 1; $Planete2 = 2; $Planete3 = 3; $Planete4 = 4; $Planete5 = 5; $Pla1 = false; $Pla2 = false; $Pla3 = false; $Pla4 = false; $Pla5 = false; //Check si activé $coordvalid = false; if (!addons::getinstance()->Get_Addons('triangulation')->CheckPerms()) { DataEngine::NoPermsAndDie(); } // Si les coordonnées de deux centre de communications avec deux mesure de distance correspondante sont rentrée dans le tableau alors $coordvalid = true; if (isset($_POST['sys1']) && isset($_POST['sys2']) && isset($_POST['dist11']) && isset($_POST['dist21']) || isset($_POST['sys1']) && isset($_POST['sys3']) && isset($_POST['dist11']) && isset($_POST['dist31']) || isset($_POST['sys3']) && isset($_POST['sys2']) && isset($_POST['dist31']) && isset($_POST['dist21'])) { $_SESSION['coord_syst1'] = gpc_esc($_POST['sys1']); $_SESSION['coord_syst2'] = gpc_esc($_POST['sys2']); $_SESSION['coord_syst3'] = gpc_esc($_POST['sys3']); $_SESSION['ccdistance11'] = gpc_esc($_POST['dist11']); $_SESSION['ccdistance21'] = gpc_esc($_POST['dist21']); $_SESSION['ccdistance31'] = gpc_esc($_POST['dist31']); $coordvalid = true; // Faire des calculs que s'il y a une entrée $Pla1 = $_SESSION['coord_syst1'] != "" && $_SESSION['coord_syst2'] != "" && $_SESSION['ccdistance11'] != "" && $_SESSION['ccdistance21'] != "" || $_SESSION['coord_syst1'] != "" && $_SESSION['coord_syst3'] != "" && $_SESSION['ccdistance11'] != "" && $_SESSION['ccdistance31'] != "" || $_SESSION['coord_syst3'] != "" && $_SESSION['coord_syst2'] != "" && $_SESSION['ccdistance31'] != "" && $_SESSION['ccdistance21'] != ""; $dist11 = $_SESSION['ccdistance11']; $dist21 = $_SESSION['ccdistance21']; $dist31 = $_SESSION['ccdistance31'];