// inscription au site EOLE // ----------------------------- // == register_globals = Off == // ----------------------------- if (array_key_exists('ok', $_POST)) $ok = $_POST['ok']; else $ok = ''; if (array_key_exists('txt_mail', $_POST)) $txt_mail = $_POST['txt_mail']; else $txt_mail = ''; /*if (array_key_exists('txt_login', $_POST)) $txt_login = $_POST['txt_login']; else $txt_login = ''; if (array_key_exists('txt_pass', $_POST)) $txt_pass = $_POST['txt_pass']; else $txt_pass = ''; if (array_key_exists('txt_confirme_pass', $_POST)) $txt_confirme_pass = $_POST['txt_confirme_pass']; else $txt_confirme_pass = '';*/ // ----------------------------- require "fonctions.php"; // en-tête echo "
"; $contenu = ""; $contenu .="Fermer cette fenêtre"; if ($ok) { $erreur = ''; if ($txt_mail) { if (!strpos($txt_mail,"@")) { $erreur="Adresse mail invalide"; } else { $mail = supp_space(replace_car($txt_mail)); $script = "sudo /var/www/plus/backend/get_attribut.py"; // récupération du login associé <=> test (suppression du '\n') $login=trim(`$script -m "$mail" -a "uid"`); if ($login == '-1') { echo "