\r\nContent-Type: text/plain; charset=\"UTF-8\"\nContent-Transfer-Encoding: 8bit"; mail (ADRESSEMAILADMIN, "" . _("[CONTACT] You have sent a question ") . "".NOMAPPLICATION, "" . _("You have a question from a user ") . " ".NOMAPPLICATION."\n\n" . _("User") . " : ".$_POST["nom"]."\n\n" . _("User's email address") . " : $_POST[adresse_mail]\n\n" . _("Message") . " :".$message,$headers); if (isset($_POST['adresse_mail']) && !empty($_POST['adresse_mail']) && validateEmail($_POST['adresse_mail'])){ $headers="From: ".NOMAPPLICATION." <".ADRESSEMAILADMIN.">\r\nContent-Type: text/plain; charset=\"UTF-8\"\nContent-Transfer-Encoding: 8bit"; mail ("$_POST[adresse_mail]", "" . _("[COPY] Someone has sent a question ") . "".NOMAPPLICATION, "" . _("Here is a copy of your question") . " :\n\n".$message." \n\n" . _("We're going to answer your question shortly.") . "\n\n" . _("Thanks for your confidence.") . "\n".NOMAPPLICATION,$headers); } //affichage de la page de confirmation d'envoi echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''.NOMAPPLICATION.''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; logo(); bandeau_tete(); bandeau_titre(_("Make your polls")); echo '
'."\n"; print "

" . _("Your message has been sent!") . "



"."\n"; print "" . _("Back to the homepage of ") . " ".NOMAPPLICATION."."."\n"; echo '


'."\n"; echo '
'."\n"; bandeau_pied(); session_unset(); } else { $post_var = array('question', 'nom', 'adresse_mail', ); foreach ($post_var as $var) { if (isset($_POST[$var]) && !empty($_POST[$var])) { $_SESSION[$var] = $_POST[$var]; } else { $_SESSION[$var] = null; } } //affichage de la page echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''.NOMAPPLICATION.''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; //debut du formulaire echo '
'."\n"; //bandeaux de tete logo(); bandeau_tete(); bandeau_titre(_("Contact us")); sous_bandeau(); //blablabla echo '
'."\n"; echo _("If you have questions, you can send a message here.") .'

'."\n"; echo _("Your name") .' :
'."\n"; echo ''; if ((isset($_POST['envoiquestion']) || isset($_POST['envoiquestion_x'])) && $_SESSION["nom"]==""){ echo ' '. _("Enter a name") .''; } echo '

'."\n"; echo _("Your email address ") .' :
'."\n"; echo ''."\n"; echo '

'; echo _("Question") .' :
'."\n"; echo ''; if ((isset($_POST['envoiquestion']) || isset($_POST['envoiquestion_x'])) && $_SESSION["question"]==""){ echo '  Il faut poser une question !'; } echo '


'."\n"; echo ''."\n"; echo ''."\n"; echo '
'. _("Send your question") .'
'."\n"; echo '


'."\n"; echo '
'."\n"; echo '
'."\n"; //bandeau de pied bandeau_pied(); echo ''."\n"; echo ''."\n"; } ?>