1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323
|
<?php
if (isset($_POST['send_mail']))
{
/* Récupération des valeurs des champs du formulaire */
if (get_magic_quotes_gpc())
{
$civilite = stripslashes(trim($_POST['STATUTS']));
$nom = stripslashes(trim($_POST['NAME1']));
$expediteur = stripslashes(trim($_POST['EMAIL']));
$sujet = stripslashes(trim($_POST['SUBJECT']));
$message = stripslashes(trim($_POST['MESSAGE']));
$telephone = stripslashes(trim($_POST['PHONE']));
}
else
{
$civilite = trim($_POST['STATUTS']);
$nom = trim($_POST['NAME1']);
$expediteur = trim($_POST['EMAIL']);
$sujet = trim($_POST['SUBJECT']);
$message = trim($_POST['MESSAGE']);
$telephone = trim($_POST['PHONE']);
}
$date = date("d/m/Y");
$hour = date("H:i");
/* Expression régulière permettant de vérifier si le
* format d'une adresse e-mail est correct */
$regex_mail = '/^[-+.\w]{1,64}@[-.\w]{1,64}\.[-.\w]{2,6}$/i';
/* Expression régulière permettant de vérifier qu'aucun
* en-tête n'est inséré dans nos champs */
$regex_head = '/[\n\r]/';
/* Si le formulaire n'est pas posté de notre site on renvoie
* vers la page d'accueil */
if($_SERVER['HTTP_REFERER'] != 'http://www.rememberfactory.be/contact.php')
{
header('Location: http://www.rememberfactory.be/');
}
/* On vérifie que tous les champs sont remplis */
elseif (empty($nom)
|| empty($expediteur)
|| empty($sujet)
|| empty($message)
|| empty($telephone))
{
$alert = 'Tous les champs doivent';
echo "<script>showDIV()</script>";
echo "Test PHP - OK";
}
/* On vérifie que le format de l'e-mail est correct */
elseif (!preg_match($regex_mail, $expediteur))
{
$alert = 'L\'adresse '.$expediteur.' n\'est pas valide';
}
/* On vérifie qu'il n'y a aucun header dans les champs */
elseif (preg_match($regex_head, $expediteur)
|| preg_match($regex_head, $nom)
|| preg_match($regex_head, $sujet))
{
$alert = 'interdites dans les champs du formulaire';
}
/* Si aucun problème et aucun cookie créé, on construit le message et on envoie l'e-mail */
elseif (!isset($_COOKIE['sent']))
{
/* Destinataire (votre adresse e-mail) */
$to = 'contact@rememberfactory.be';
/* Construction du message */
$msg = '
<html>
<body bgcolor="#350040" leftmargin="0" topmargin="20" marginwidth="0" marginheight="0" bottommargin="20">
<table id="Tableau_01" width="600" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td width="600" height="140" valign="top" bgcolor="#FFFFFF"><img alt="" src="http://www.rememberfactory.be/PIC/MSG_contact_01.jpg" width="600" height="120" alt=""></td>
</tr>
<tr>
<td width="600" bgcolor="#FFFFFF" valign="top" align="center">
<table width="540" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<div style="font:Helvetica, Arial; color:#999; font-size:12px; color:#C09; margin-bottom:10px;">
CUSTOMER SERVICES - '.$sujet.'<br>
FROM -'.$nom.', '.$expediteur.'<br>
</div>
<div style="font:Helvetica, Arial; color:#999; font-size:12px; color:#999; margin-bottom:10px;">
DISPATCH - '.$date.', '.$hour.'<br><br>
</div>
<div style="margin-top:10px; margin-bottom:10px; background-color:#ffbfff;">
<p style="font:Helvetica, Arial; color:#999; margin-top:10px; margin-bottom:10px; font-size:12px; background-color:#ffbfff; color:#969; padding:5px;">MESSAGE<br><br>'.$message.'</p>
</div>
<div style="font:Helvetica, Arial; color:#999; font-size:12px; color:#999;">CONTACT INFORMATION<br><br>
<table width="300" border="0" cellspacing="0" cellpadding="0" style="font-size:12px; color:#999;">
<tr>
<td width="100">NAME:</td>
<td>'.$nom.'</td>
</tr>
<tr>
<td>STATUT:</td>
<td>'.$civilite.'</td>
</tr>
<tr>
<td>PHONE:</td>
<td>'.$telephone.'</td>
</tr>
<tr>
<td>ADRESS MAIL:</td>
<td>'.$expediteur.'</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="31" valign="bottom" bgcolor="#FFFFFF">
<img alt="" src="http://www.rememberfactory.be/PIC/MSG_contact_02.jpg" width="600" height="11" alt=""></td>
</tr>
</table>
</FONT>
</body>
</html>
';
/* En-têtes de l'e-mail */
$headers = "From: CUSTOMERS SERVICES - $nom <contact@rememberfactory.be>\n";
$headers .= "MIME-Version: 1.0\n";
$headers .= "Reply-To: $expediteur\n";
$headers .= "Content-Type: text/html; charset=iso-8859-1\n";
$headers .= "X-abuse-contact: abuse@lws.fr";
/* Envoi de l'e-mail */
if (mail($to, $sujet, $msg, $headers))
{
$alert = 'E-mail';
/* On créé un cookie de courte durée (ici 120 secondes) pour éviter de
* renvoyer un mail en rafraichissant la page */
setcookie("sent", "1", time() + 120);
/* On détruit la variable $_POST */
unset($_POST);
}
else
{
$alert = 'Erreur';
}
}
/* Cas où le cookie est créé et que la page est rafraichie, on détruit la variable $_POST */
else
{
unset($_POST);
}
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<head profile="http://dublincore.org/documents/2008/08/04/dc-html/">
<title>Remember Factory | Contact</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="schema.DC" href="http://purl.org/dc/elements/1.1/" />
<link rel="schema.DCTERMS" href="http://purl.org/dc/terms/" />
<meta name="DC.title" lang="fr" content="Mariage, fiançailles, naissance, offrez-vous compilation DVD, livre photos, cartes d'invitation, photo sur toile, tirage photos et photos poster" />
<meta name="DC.date" scheme="DCTERMS.W3CDTF" content="2010-02-12" />
<meta name="DC.subject" lang="fr" content="Compilation DVD, mariage, montage photo, montage vidéo, livre photos, cartes d'invitation, photo sur toire, tirage photos, cadeaux, souvenirs" />
<meta name="DC.language" scheme="DCTERMS.RFC4646" content="fr-FR" />
<meta name="DC.description" lang="fr"
content="Mariage, fiançailles, naissance, cadeaux, offrez-vous de somptueux souvenirs" />
<link rel="DC.source" href="urn:ISBN:978-1-2345-6789-X" />
<meta name="keywords" content="compilation dvd, livre photos, montage photo, montage vidéo, mariage, souvenir, tirage photos, photo poster, cartes d'invitation" />
<meta name="description" content="Mariage, fiançailles, naissance, offrez-vous de somptueux souvenirs grâce à Remember Factory" />
<link href="CSS/index.css" rel="stylesheet" type="text/css">
<link href="CSS/common.css" rel="stylesheet" type="text/css">
<!-- SIFR CSS -->
<!-- SIFR JS -->
<script src="Scripts/common.js" type="text/javascript"></script>
<script type="text/javascript">
function showDIV()
{
alert('ok');
}
</script>
</head>
<body onload="MM_preloadImages('PIC/HEAD/BT_card1.jpg','PIC/HEAD/BT_imagery1.jpg','PIC/HEAD/BT_dvd1.jpg','PIC/HEAD/BT_home1.jpg','PIC/HEAD/BT_favoris1.jpg')">
<div id="DIV_head">
<div id="DIV_sub_head">
<div style="height:267px; width:470px; margin-left:506px;">
<div style="width:390px; float:left">
<div id="Title" style="margin-top:14px; width:390px; height:42px;"><img alt="" src="PIC/HEAD/T6.jpg" width="390" height="42"></div>
<div id="BT_card" style="width:186px; height:18px; margin-top:28px;"><a href="card.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('BT_card','','PIC/HEAD/BT_card2.jpg',1)"><img alt="" src="PIC/HEAD/BT_card1.jpg" name="BT_card" width="186" height="18" border="0" id="BT_card2"></a></div>
<div id="BT_imagery" style="width:85px; height:18px; margin-top:10px;"><a href="imagery.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('BT_imagery','','PIC/HEAD/BT_imagery2.jpg',1)"><img alt="" src="PIC/HEAD/BT_imagery1.jpg" name="BT_imagery" width="85" height="18" border="0" id="BT_imagery2"></a></div>
<div id="BT_dvd" style="width:170px; height:18px; margin-top:10px;"><a href="dvd.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('BT_dvd','','PIC/HEAD/BT_dvd2.jpg',1)"><img alt="" src="PIC/HEAD/BT_dvd1.jpg" name="BT_dvd" width="170" height="18" border="0" id="BT_dvd2"></a></div>
</div>
<div style="width:50px; float:left; margin-left:13px;">
<div class="classA1" id="Case_language" style="width:50px; height:22px; font-size:10px; color:#FFF; margin:0px; padding-top:5px;">FR | NL</div>
<div id="BT_home" style="width:33px; height:30px; margin-top:6px; margin-left:auto; margin-right:auto"><a href="index.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('BT_home','','PIC/HEAD/BT_home1.jpg',1)"><img alt="" src="PIC/HEAD/BT_home0.jpg" name="BT_home" width="33" height="30" border="0" id="BT_home2"></a></div>
<div id="BT_contact" style="width:33px; height:29px; margin-top:19px; margin-left:auto; margin-right:auto"></div>
<div id="BT_favoris" style="width:33px; height:29px; margin-top:2px; margin-left:auto; margin-right:auto"><a href="#" onclick="favoris()" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('BT_favoris','','PIC/HEAD/BT_favoris1.jpg',1)"><img alt="" src="PIC/HEAD/BT_favoris0.jpg" name="BT_favoris" width="33" height="27" border="0" id="BT_favoris2"></a></div>
</div>
</div>
<div style="height:33px; width:1004px;"><img alt="" src="PIC/HEAD/body_up01.jpg" width="1004" height="33"></div>
</div>
</div>
<div id="DIV_Transition">
<h4>Contact</h4>
<p>Demander, s'informer et partager avec Remember Factory</p></div>
<div id="DIV_Content">
<p>
Professionnels ou particuliers, n'hésitez pas à* nous contacter par téléphone ou par email.
<br>Nous serons ravis de répondre à* vos attentes ou éventuelles questions, quelles qu'elles soient.
</p>
<h3>Coordonnées</h3>
<p>
BELGIQUE, Bruxelles<br>
<br>
Remember FACTORY<br>
+32 0485/79.63.61<br>
<br>
<a href="http://www.rememberfactory.be/" target="_blank">www.rememberfactory.be</a><br>
<a href="mailto:contact@rememberfactory.be?subject=N'oubliez pas d'informer l'objet de votre message">contact@rememberfactory.be</a><br>
<a href="http://www.facebook.com/pages/Remember-Factory/318362347813" target="_blank">Remember Factory sur Facebook</a>
</p>
<h3>envoyer message</h3>
<p>Remplissez les champs suivants. Votre message nous sera ainsi envoyé et nous le traiterons dès que possible. </p><br>
<br>
<form action="contact.php" method="post">
<table width="800" border="0" cellpadding="0" cellspacing="0" style="margin-left:30px; color:#666">
<tr>
<td width="123" height="28" valign="top"><label for="forename1">Nom</label></td>
<td height="28" valign="top"><input id="forename1" name="NAME1" type="text" value="<?php echo (isset($_POST['NAME1'])) ? $nom : '' ?>"class="IPT_all"></td>
<td width="432" rowspan="3" valign="middle">
<div style="margin-left:10px; margin-right:10px; padding:5px;">
<label><input name="STATUTS" type="radio" style="outline:none;" value="PARTICULAR" checked="checked">Particulier</label><br>
<label><input name="STATUTS" type="radio" style="outline:none;" value="PROFESSIONAL ">Professionnel</label>
<p class="p4">INFO | Indiquez votre adresse email.</p>
</div>
</td>
</tr>
<tr>
<td height="28" valign="top"><label for="telephone">Téléphone</label></td>
<td width="245" valign="top"><input id="telephone" name="PHONE" type="text" value="<?php echo (isset($_POST['PHONE'])) ? $telephone : '' ?>" class="IPT_all"></td>
</tr>
<tr>
<td height="28" valign="top"><label for="mailcontact">Email</label></td>
<td height="28" valign="top"><input id="mailcontact" name="EMAIL" type="text" value="<?php echo (isset($_POST['EMAIL'])) ? $expediteur : '' ?>"class="IPT_all"></td>
</tr>
<tr>
<td height="28" valign="top"><label for="subject">Sujet</label></td>
<td height="28" colspan="2" valign="top"><input id="subject" name="SUBJECT" type="text" value="<?php echo (isset($_POST['SUBJECT'])) ? $sujet : '' ?>"class="IPT_all"></td>
</tr>
<tr>
<td height="28" valign="top" id="TD_message"><label for="message">Message</label></td>
<td height="28" colspan="2" valign="top"><textarea name="MESSAGE" rows="5" class="IPT_textbox" id="message" cols="25"><?php echo (isset($_POST['MESSAGE'])) ? $message : '' ?></textarea></td>
</tr>
</table>
<div id="DIV_statutsend1" style="color: #FFF">Cette fonction est en cours de maintenance.<br>
Si vous souhaitez nous faire parvenir un message, cliquez sur le <a href="mailto:contact@rememberfactory.be?subject=N'oubliez pas d'informer l'objet de votre message" style="color:#FFF"><u>lien</u></a> suivant.
</div>
<input name="send_mail" type="submit" class="BT_send" value ="">
<input type="reset" class="BT_reset" value="">
</form>
<h3>Partager sur Facebook</h3>
<p>N'hésitez pas à partager et à faire connaître notre site sur votre réseau social Facebook. <br>
Ou encore rejoindre le groupe Remember Factory disponible sur Facebook.
</p>
<input type="image" src="PIC/BT/Shared.jpg" onmouseover="" name="button" class="BT" value="Send" onclick="return fbs_click()"><br>
<input type="image" src="PIC/BT/Addmember.jpg" onmouseover="" name="button" class="BT" value="Send" onclick="window.open('http://www.facebook.com/pages/Remember-Factory/318362347813#','_blank');return false">
<h3>Ajouter aux favoris</h3>
<p>A l'avenir, il vous sera plus facile de retrouver notre site en cas de besoin. Ajoutez-le à* vos favoris dès maintenant.</p>
<input type="image" src="PIC/BT/Addfavorites.jpg" onmouseover="" onclick="favoris()" name="button" id="Sendmail" class="BT" value="Send">
<br>
<br>
</div>
<div id="DIV_bottom"><div id="DIV_sub_bottom">
<div id="DIV_sublink"><img alt="" src="PIC/Sublink.jpg" width="206" height="96" border="0" usemap="#Map3">
<map name="Map3" id="Map3">
<area alt="" shape="rect" coords="42,7,128,23" href="index.html">
<area alt="" shape="rect" coords="42,39,118,54" href="plan.html">
<area alt="" shape="rect" coords="42,70,198,85" href="faq.html">
<area alt="" shape="circle" coords="17,77,13" href="faq.html">
<area alt="" shape="poly" coords="13,39,22,39,29,55,4,54" href="plan.html">
<area alt="" shape="poly" coords="10,25,5,16,17,5,28,17,24,25" href="index.html">
</map>
</div>
<p id="TXT_mail">CONTACT@REMEMBERFACTORY.BE</p>
</div>
</div>
</body>
</html> |
Partager