save_map_info($_GET['selector'], $_GET['info']); echo "Réussite"; } else { show_error(); } } function update_website() { // if (isset($_POST['login']) && isset($_POST['password'])) { // $login = $_POST['login']; // $password = $_POST['password']; // echo $login . ":" . $password."\n"; // // Cannot write because php cannot write as user www-data // // be sure to escape characters // // Do not remove the space before the command (prevent command from being saved in history) //// system(" git pull https://".$login.":".$password."@git.srv-falcon.etud.insa-toulouse.fr/vergnet/site-accueil-insa.git"); // } else { // show_error(); // } } function show_error() { echo "Échec :\n"; echo "GET\n"; var_dump($_GET); echo "POST\n"; var_dump($_POST); }