From 030051921b8da6cb57aab40eae704076303b17e7 Mon Sep 17 00:00:00 2001 From: Simon Leblanc Date: Sun, 3 Jul 2011 01:57:20 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20issue=20#17=20:=20ajout=20d'un=20reply-to?= =?UTF-8?q?=20+=20v=C3=A9rification=20adresse=20mail=20+=20mise=20en=20for?= =?UTF-8?q?me?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- contacts.php | 13 +++++++++---- locale/fr_FR/LC_MESSAGES/Studs.mo | Bin 19309 -> 19391 bytes locale/fr_FR/LC_MESSAGES/Studs.po | 4 ++++ 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/contacts.php b/contacts.php index a7b1842..0e4b306 100644 --- a/contacts.php +++ b/contacts.php @@ -52,7 +52,10 @@ if ((isset($_POST['envoiquestion']) || isset($_POST['envoiquestion_x'])) && isse $message=str_replace("\\","",$_POST["question"]); //envoi des mails - $headers="From: ".NOMAPPLICATION." <".ADRESSEMAILADMIN.">\r\nContent-Type: text/plain; charset=\"UTF-8\"\nContent-Transfer-Encoding: 8bit"; + $headers="From: ".NOMAPPLICATION." <".ADRESSEMAILADMIN.">\r\nContent-Type: text/plain; charset=\"UTF-8\"\r\nContent-Transfer-Encoding: 8bit"; + if (isset($_POST['adresse_mail']) && !empty($_POST['adresse_mail']) && validateEmail($_POST['adresse_mail'])) { + $headers .= "\r\n".'Reply-To: '.$_POST['adresse_mail']; + } 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"; @@ -122,6 +125,10 @@ framanav(); echo '

'."\n"; echo _("Your email address ") .' :
'."\n"; echo ''."\n"; + + if ((isset($_POST['envoiquestion']) || isset($_POST['envoiquestion_x'])) && empty($_SESSION["adresse_mail"]) === false && validateEmail($_SESSION["adresse_mail"]) === false) { + echo ' '. _("The address is not correct!") .''; + } echo '

'; @@ -133,9 +140,7 @@ framanav(); } echo '


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


'."\n"; echo ''."\n"; echo ''."\n"; diff --git a/locale/fr_FR/LC_MESSAGES/Studs.mo b/locale/fr_FR/LC_MESSAGES/Studs.mo index 1c90d14b8c0c88fb0999d4cd9ef63d8922a49db4..b4a2568ca7bbf597dd3ac7bdf46ae7a12b74f7c5 100644 GIT binary patch delta 3335 zcmXxld2miw7{~GRN+Kd}B8x~xs3al@VvRL~L?vPkA+?MlmX?U3+9Jf8&_p9Cc0wNEF~gh_Ss28LJZyt2uo+gO8mz&lxDPkGj5*}g)98in%ftYjg5fw9U&12v z$L)@LQSBVTP@Zp2P@paIEvlhgsGioNM(P`4Oh@eDI0@B&2i3t+)cqTrdNu0)T2vCx zp)z~P@mEx4d_y_U^Gyp18gYaUU>{V2spyU4uodQ@reXmq)di^g%1|lYi?nUdqB3y} zb>GjZ4n4yt3~6Z(APGI{NiqcnYlfmyH4)W7E^?1qh;4BVzK%OFlPT~EGv;OL**rxV zS%Ranz^R`{oxhA4$Ybn<4R{yh!^wX;3Vuu!ZJBt~$Wu@^j6roI8`ZH~=llYELcI_* zfQ1ZC*DrNkiFc?MW8;0KM{8&S>bfPU`<6wJe>!7|IG~YMqUr}wDL#kF%vEI2=057W zXQ;V%lYdP~7;4c)qXsYlwU$OW^{J?K<~zp=aTfLU9_PeUR72jZl&u(y8hI^hPQO4u zynu;#4e5h%F)!R|A|3nT8`LMDQvVIM$NLzK-lRJQ8qMPF| z2d7{yrlA+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V5H32zA|uL-8n*MDrAPV4n=G;WcdMrBIUT zq-;5A)mP&<^r05ZO;iT%q2{i|5U0Vms18oRx3LI2yZHAF6REd+#d+oSzzXW;uo(Le zW98!x^cGME9PaeA3}dJtMveFicEP*IIx=Bd&fI5VDD`aIj`_$sHLel-K42P7#>beB zV@EpMy9&orKaXh`Ig0%AZZIQ9IsYOpKrN09*a{C}3v96UuW$nOGZ>GNqn!@+M}O+M zs0>cG^+F^e%||t#>a+$pmC$qN=ry*9f)4#UX|xN8_X+j9gm{bCv!H=CG5 zY$bH;b1-jW4e_b17vVJGLtnT%GGGyn+YB3d~^8LGD^#R zE8Vf-pERF!ey3Di<2&IVkn|BHKYL|5>cvz}Xpwd$vItGjPG3w&Z0>eS^NC%Aj%|dN zS&}ODNPbp8-e}GL8E8Ux5UU9tl@6vKZXxvk-0Q0g$#ZS=xkB4_U16__B}6bWgwP6F nNxVkX`7%SJqn1+AF@`83v?h1gmxbOAtuOC5E2iFWaHIQw_ikZ2 diff --git a/locale/fr_FR/LC_MESSAGES/Studs.po b/locale/fr_FR/LC_MESSAGES/Studs.po index 4251b44..37036f6 100644 --- a/locale/fr_FR/LC_MESSAGES/Studs.po +++ b/locale/fr_FR/LC_MESSAGES/Studs.po @@ -738,6 +738,10 @@ msgstr "Votre nom" msgid "Your email address " msgstr "Votre adresse électronique " +#: contacts.php:127 +msgid "The address is not correct!" +msgstr "L'adresse saisie n'est pas correcte !" + #: contacts.php:129 msgid "Question" msgstr "Question"