session_start(); } require './includes/common/recaptcha.php'; include_once './includes/common/verif_security.php'; include_once './includes/common/mailing.php'; include_once './includes/public/functions.php'; try { verif_origin_user(); } catch (Exception $e) { header('Location: http://hiddenj.jimdo.com/design-formulaire-1/error1'); die; } /* vérification du captcha*/ $captcha = new Recaptcha('6LdidxgTAAAAAHGefCS0_l2eyEeXVWh4lRFVHyzj', '6LdidxgTAAAAAA-7SGtTTaso_qETEZ6-fg_XUYOz'); if (!empty($_POST)) { if ($captcha->isValid($_POST['g-recaptcha-response']) == false) { header('Location: http://hiddenj.jimdo.com/design-formulaire-1/error2'); die; } if (isset($_POST['firstname']) && isset($_POST['lastname']) && isset($_POST['email']) && isset($_POST['city']) && isset($_POST['cp']) && isset($_POST['country']) && isset($_POST['newsletter']) && isset($_POST['marque']) && isset($_POST['model']) && isset($_POST['type']) && isset($_POST['motorisation']) && isset($_POST['immat']) && isset($_POST['date_circu']) && isset($_POST['infos'])) { /* sécurisation faille XSS*/ if (isset($_POST['concours1'])) { $concours1 = true; } else { $concours1 = false; } if (isset($_POST['concours2'])) { $concours2 = true; } else { $concours2 = false; }