ÿØÿà JFIF ` ` ÿþxØ
| Server IP : 109.234.164.53 / Your IP : 216.73.216.110 Web Server : Apache System : Linux cervelle.o2switch.net 4.18.0-553.32.1.lve.el8.x86_64 #1 SMP Thu Dec 19 13:14:03 UTC 2024 x86_64 User : computer3 ( 1098) PHP Version : 7.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/computer3/8-maquette-diabolo.com/ |
Upload File : |
<?php
/*
+--------------------------------------------------------------+
| Html5 - Php 5.4 - CSS 3 - Responsive design - Bootstrap |
+--------------------------------------------------------------+
| PDO - TPL Smarty - CloudFlare |
+--------------------------------------------------------------+
| Copyright (c) Jean Pierre Fonteneau 2015 |
| seomedias.com - contact@seomedias.com |
| Formule : Strawberry Multi-th?es Muti-langues |
+--------------------------------------------------------------+
| Version : Strawberry RC4.1 - Template : base |
+------------------------------------------------------------- +
*/
// Chargement fichiers de configuration...
require('includes/thema_get.php');
require('libs/Smarty.class.php');
require('includes/webzone.php');
// D?arrage du moteur TPL...
$smarty = new Smarty;
// Chargement des Fonctions Globals...
require('includes/session_start.php');
require('fonctions.php');
// Controle si le site est en mise ?jour...
if (($maintenance_on < '1') and ($no_maintenance < '1')) { header("location:maintenance.php"); }
// Recherche Bottom...
$list = get_select_2(array('table'=>'fixed_pages', 'where1'=>'name', 'where2'=>'"Bottom"', 'where3'=>'langue', 'where4'=>'"' . $language . '"'));
$smarty->assign("status_bottom_on", $list[0]['status']);
$smarty->assign("bottom", $list[0]['content']);
// Page fixe ...
$categorie ="1";
$smarty->assign("language", $language);
$list = get_select_2(array('table'=>'fixed_pages', 'where1'=>'categorie', 'where2'=>'"' . $categorie . '"', 'where3'=>'langue', 'where4'=>'"' . $language . '"'));
$slide = '4';
$advert = $list[0]['advertising'];
$colon = $list[0]['colonne'];
$colon2 = $list[0]['colonne2'];
$colon3 = $list[0]['colonne3'];
$milieu_picture= $list[0]['milieu'];
$smarty->assign("milieu_picture", $milieu_picture);
$milieu_picture2= $list[0]['milieu2'];
$smarty->assign("milieu_picture2", $milieu_picture2);
$milieu_picture3= $list[0]['milieu3'];
$smarty->assign("milieu_picture3", $milieu_picture3);
$gallery = $list[0]['mini_gallery'];
$smarty->assign('gallery',$gallery);
$content= $list[0]['content'];
$content = str_replace ( 'target="_blank"' , 'onclick="window.open(this.href); return false;"' , $content);
$content = str_replace ( 'target="_parent"' , 'rel="prettyPhoto" ' , $content);
$content = str_replace ( 'href="#lirelasuite"' , 'onclick="document.getElementById(\'lirelasuite\').style.display = \'block\'; this.style.display = \'none\';"' , $content);
$content = str_replace ( 'href="#lirelasuite2"' , 'onclick="document.getElementById(\'lirelasuite2\').style.display = \'block\'; this.style.display = \'none\';"' , $content);
$content = str_replace ( 'href="#lirelasuite3"' , 'onclick="document.getElementById(\'lirelasuite3\').style.display = \'block\'; this.style.display = \'none\';"' , $content);
$content = str_replace ( 'href="#lirelasuite4"' , 'onclick="document.getElementById(\'lirelasuite4\').style.display = \'block\'; this.style.display = \'none\';"' , $content);
$smarty->assign("content", $content);
$content2= $list[0]['content2'];
$content2 = str_replace ( 'target="_blank"' , 'onclick="window.open(this.href); return false;"' , $content2);
$content2 = str_replace ( 'target="_parent"' , 'rel="prettyPhoto" ' , $content2);
$content2 = str_replace ( 'href="#lirelasuite"' , 'onclick="document.getElementById(\'lirelasuite\').style.display = \'block\'; this.style.display = \'none\';"' , $content2);
$content2 = str_replace ( 'href="#lirelasuite2"' , 'onclick="document.getElementById(\'lirelasuite2\').style.display = \'block\'; this.style.display = \'none\';"' , $content2);
$content2 = str_replace ( 'href="#lirelasuite3"' , 'onclick="document.getElementById(\'lirelasuite3\').style.display = \'block\'; this.style.display = \'none\';"' , $content2);
$content2 = str_replace ( 'href="#lirelasuite4"' , 'onclick="document.getElementById(\'lirelasuite4\').style.display = \'block\'; this.style.display = \'none\';"' , $content2);
$smarty->assign("content2", $content2);
$content3= $list[0]['content3'];
$content3 = str_replace ( 'target="_blank"' , 'onclick="window.open(this.href); return false;"' , $content3);
$content3 = str_replace ( 'target="_parent"' , 'rel="prettyPhoto" ' , $content3);
$content3 = str_replace ( 'href="#lirelasuite"' , 'onclick="document.getElementById(\'lirelasuite\').style.display = \'block\'; this.style.display = \'none\';"' , $content3);
$content3 = str_replace ( 'href="#lirelasuite2"' , 'onclick="document.getElementById(\'lirelasuite2\').style.display = \'block\'; this.style.display = \'none\';"' , $content3);
$content3 = str_replace ( 'href="#lirelasuite3"' , 'onclick="document.getElementById(\'lirelasuite3\').style.display = \'block\'; this.style.display = \'none\';"' , $content3);
$content3 = str_replace ( 'href="#lirelasuite4"' , 'onclick="document.getElementById(\'lirelasuite4\').style.display = \'block\'; this.style.display = \'none\';"' , $content3);
$smarty->assign("content3", $content3);
// $smarty->assign("title_page", $list[0]['title']);
$title_page = $list[0]['title'];
$title_page = html_entity_decode($title_page); // decode le html
$smarty->assign("title_page", $title_page);
$meta_desc = $list[0]['meta_desc'];
$meta_desc = html_entity_decode($meta_desc); // decode le html
$smarty->assign("meta_description", $meta_desc);
$meta_keywords = $list[0]['meta_keywords'];
$meta_keywords = strtolower($meta_keywords);// Met tout en minuscules
$meta_keywords = html_entity_decode($meta_keywords); // decode le html
$meta_keywords = str_replace ( " " , " " , $meta_keywords);
$meta_keywords = str_replace ( " " , " " , $meta_keywords);
$meta_keywords = str_replace ( ", " , " " , $meta_keywords);
$meta_keywords = str_replace ( " " , "," , $meta_keywords);
$smarty->assign("meta_keywords", $meta_keywords);
$smarty->assign("slide", $list[0]['slideshow']);
$smarty->assign('list',$list);
// Facebook partage
$img_facebook= $list[0]['img_facebook'];
if ($img_facebook==''){ $img_facebook=$Image_facebook_defaut; $dossier_faceb = DOS_THEMES ."images/"; } else { $dossier_faceb = "uploadfiles/advertisings/partage/"; $img_facebook=$img_facebook; }
$url_img_faceb = $dossier_faceb . $img_facebook;
$smarty->assign("img_facebook", $url_img_faceb);
$title_p = $list[0]['title'];
$share_name = str_replace ( ' ' , ' ' , $title_p);
$share_name = str_replace ( '|' , '' , $share_name);
$smarty->assign("share_seo", 'accueil');
$smarty->assign("share_name", $share_name);
// chemin de fer
$chemin_2 = $list[0]['name'];
$chemin_2 = ucfirst(strtolower($chemin_2));
$chemin_de_fer = '<i class="fa fa-home"></i> ' . $chemin_2;
$smarty->assign('chemin_de_fer',$chemin_de_fer);
// Adversiting Pub...
$smarty->assign('advert',$advert);
if (($advertisings_on > 0) and ($advert > 0)){
$list = get_select_2(array('table'=>'advertising_pictures', 'where1'=>'advertising', 'where2'=>'"' . $advert. '"', 'where3'=>'langue', 'where4'=>'"' . $language . '"', 'order'=>'position'));
$posit_adv = $list[0]['position'];
$pict_adv = $list[0]['picture'];$smarty->assign("on_picture_advertising", $pict_adv);
$smarty->assign('advertising',$list);
}
// Slideshows Pub...
if (($slideshows_on > 0) and ($slide > 0)){
$list = get_select(array('table'=>'slideshows', 'where1'=>'categorie', 'where2'=>'"'.$slide.'"'));
$type = $list[0]['type'];$smarty->assign("picture_type", $type);
$animation = $list[0]['animation'];$smarty->assign("animation", $animation);
$list = get_select_2(array('table'=>'slideshow_pictures', 'where1'=>'slideshow', 'where2'=>'"' . $slide. '"', 'where3'=>'langue', 'where4'=>'"' . $language . '"', 'order'=>'position'));
$pict = $list[0]['picture'];$smarty->assign("on_picture_slideshow", $pict);
if ($list[0]['position'] < '2') { $pole_video = $list[0]['video']; }
$smarty->assign('pole_video',$pole_video);
$smarty->assign('slideshow',$list);
}
// Colonne 1 Pub...
if (($colonnes_on > 0) and ($colon > 0)){
///////////////////////////////////////////////////////////////
// Ajout pour events
$listc = get_select_2(array('table'=>'colonnes', 'where1'=>'categorie', 'where2'=>'"' . $colon. '"', 'where3'=>'langue', 'where4'=>'"' . $language . '"'));
$colonne_name= $listc[0]['name'];
$smarty->assign('colonne_name',$colonne_name);
// Fin Ajout pour events
///////////////////////////////////////////////////////////////
$list = get_select_2(array('table'=>'colonne_pictures', 'where1'=>'colonne', 'where2'=>'"' . $colon. '"', 'where3'=>'langue', 'where4'=>'"' . $language . '"', 'order'=>'position'));
$posit_col= $list[0]['position'];
$pict_col= $list[0]['picture'];$smarty->assign("on_picture_colonnes", $pict_col);
$smarty->assign('colonnes',$list); $smarty->assign('colon',$colon);
}
// Colonne 2 Pub...
if (($colonnes_on > 0) and ($colon2 > 0)){
///////////////////////////////////////////////////////////////
// Ajout pour events
$listc = get_select_2(array('table'=>'colonnes', 'where1'=>'categorie', 'where2'=>'"' . $colon2. '"', 'where3'=>'langue', 'where4'=>'"' . $language . '"'));
$colonne_name2= $listc[0]['name'];
$smarty->assign('colonne_name2',$colonne_name2);
// Fin Ajout pour events
///////////////////////////////////////////////////////////////
$list = get_select_2(array('table'=>'colonne_pictures', 'where1'=>'colonne', 'where2'=>'"' . $colon2. '"', 'where3'=>'langue', 'where4'=>'"' . $language . '"', 'order'=>'position'));
$posit_col2= $list[0]['position'];
$pict_col2= $list[0]['picture'];$smarty->assign("on_picture_colonnes2", $pict_col2);
$smarty->assign('colonnes2',$list); $smarty->assign('colon2',$colon2);
}
// Colonne 3 Pub...
if (($colonnes_on > 0) and ($colon3 > 0)){
///////////////////////////////////////////////////////////////
// Ajout pour events
$listc = get_select_2(array('table'=>'colonnes', 'where1'=>'categorie', 'where2'=>'"' . $colon3. '"', 'where3'=>'langue', 'where4'=>'"' . $language . '"'));
$colonne_name3= $listc[0]['name'];
$smarty->assign('colonne_name3',$colonne_name3);
// Fin Ajout pour events
///////////////////////////////////////////////////////////////
$list = get_select_2(array('table'=>'colonne_pictures', 'where1'=>'colonne', 'where2'=>'"' . $colon3. '"', 'where3'=>'langue', 'where4'=>'"' . $language . '"', 'order'=>'position'));
$posit_col3= $list[0]['position'];
$pict_col3= $list[0]['picture'];$smarty->assign("on_picture_colonnes3", $pict_col3);
$smarty->assign('colonnes3',$list); $smarty->assign('colon3',$colon3);
}
//****************************************************************************************//
//************************************ Avis **********************************************//
//****************************************************************************************//
if (isset($_GET["msg"])) {
$lemsg = '<br />Votre commentaire a bien été enregistré !<br />';
$smarty->assign("lemsg", $lemsg);
}
$nb_total =0;
$res = $GLOBALS['bdd']->query("SELECT count(id) AS nb_total FROM avis WHERE date_insere >'0000-00-00' AND (status = '1' || id_parent >0) ");
$columns = $res->fetch();
$nb_total = $columns['nb_total'];
$smarty->assign("nb_total", $nb_total);
$sql = $GLOBALS['bdd']->query("SELECT * FROM avis WHERE date_insere >'0000-00-00' AND (status = '1' || id_parent >0) ORDER BY date_insere DESC");
$resultav = $sql->fetchAll();
$smarty->assign("lesavis", $resultav);
if (isset($_GET['tt'])) {
$tt = $_GET['tt'];
$smarty->assign("tout", $tt);
}
//****************************************************************************************//
//************************************ Avis EMAIL ****************************************//
//****************************************************************************************//
if (isset($_POST["envoi"])) {
if (empty($_POST["prenom"])){ $err_prenom= '1'; }
if (empty($_POST["nom"])){ $err_nom= '1'; }
/*
$email_contact = $list[0]['email_contact'];
$company = $list[0]['company'];
$url = $list[0]['url'];
*/
$_POST['email'] = htmlspecialchars($_POST['email']);
if (preg_match("#^[a-z0-9._-]+@[a-z0-9._-]{2,}\.[a-z]{2,4}$#i", $_POST['email']))
{ $err_email="" ; } else { $err_email="1" ; }
// if ($_POST['email'] == $email_contact) { $err_email="1" ; }
if(($err_email<1) and ($err_nom<1) and ($err_email<1))
{
/////////////////////////////////////////////
/////////////////////////////////////////////
/////////////////////////////////////////////
// Ecrit l avis
$email_client = $_POST['email'];
// $etoile = $_POST["etoile"];
// $avis_comment= $_POST["avis_message"];
// $avis_comment= str_replace( "'", "\'", $avis_comment);
// $avis_title= $_POST["avis_titre"];
// $avis_title= str_replace( "'", "\'", $avis_title);
$aute = substr(md5(time().trim($avis_env).trim($cSuivi)), 0, 6);
$email_aute = substr($email_client, 0, 4);
$prenom= $_POST["prenom"];
$prenom= htmlentities($prenom);
$prenom= strtolower($prenom);
$prenom= ucfirst($prenom);
$nom = $_POST["nom"];
$initiale = substr($nom,0,1);
$auteur = $prenom .' '.$initiale.'...';
$cSuivi = substr(md5(time().trim($_POST['prenom']).trim($_POST['email'])), 0, 7);
// Ecrit dans BDD
/****************/
$qid = $bdd->prepare("INSERT INTO " . $GLOBALS['db_table']['avis'] . " (email, date_insere, id_parent, title, comment, auteur, orders, suivi, etoiles) VALUES (:email, :date_insere, :id_parent, :title, :comment, :auteur, :orders, :suivi, :etoiles)");
$qid->execute(array( 'date_insere' => '0000-00-00',
'id_parent' => '0',
'email' => $email_client,
'title' => '',
'comment' => '',
'auteur' => $auteur,
'orders' => 'none',
'suivi' => $cSuivi,
'etoiles' => '0'));
/* correction par php mail */
/****************************/
$uploaddir = '../uploadfiles/pieces_jointes/'; //===Chemin du dossier de votre serveur web dans lequel sera transf??la pi?e jointe avant d'?re trait?
$erreurs = '0';
$sql = "SELECT * FROM ".$GLOBALS['db_table']['info']." WHERE id='1'";
$result = $GLOBALS['bdd']->query($sql);
$list = $result->fetchAll();
$email_contact = $list[0]['email_contact'];
$company = $list[0]['company'];
$mail_destinataire = $email_client;
$mail_expediteur = $email_contact;
$nom_expediteur = $company;
$nom_destinataire = $auteur;
$prenom_destinataire = $prenom;
if (isset($email_client)) {
//=====V?ification de l'existence d'une pi?e jointe.
if ($_FILES['piecejointe']['name']<>"") $ispiece = true; else $ispiece = false;
//=====V?ification de l'adresse de destination.
if (!preg_match("#^[a-z0-9._-]+@(hotmail|live|msn).[a-z]{2,4}$#", $mail_destinataire)) $passage_ligne = "\r\n"; else $passage_ligne = "\n";
//=====R?up?ation du mail, du nom de l'exp?iteur et du sujet.
$sujet = 'Donnez-nous votre Avis ! ' . $company;
// mets en forme les accents
$sujet = htmlentities($sujet);
// mets en forme les accents
$nom = htmlentities($nom_expediteur);
setlocale(LC_CTYPE, 'fr_FR.UTF-8');
$nom_expediteur = iconv('UTF-8', 'ISO-8859-15//TRANSLIT//IGNORE', $nom_expediteur);
//=====D?laration des messages au format texte et au format HTML.
$message_txt = "Donnez-nous votre Avis : " . $company;
// Message
$msg_body ="<p style='text-align:center'><img src='".$adresse_url."/business/images/".$Image_Logo."' style='max-width:300px'></p>";
$msg_body .= "<p style='text-align:center; font-size:12pt'>Bonjour ".$prenom."</p>";
$msg_body .= "".$avis_text_1."";
$msg_body .= "<p style='text-align:center; font-size:12pt'><br><b><a href='".$adresse_url."/avis-clients-" . $cSuivi. "'>sur les Avis du Net</a></b></p>";
$msg_body .= "<p style='text-align:center; font-size:10pt'><br><br>Conformément à la Loi Informatique et Libertés, vous disposez d'un droit d'accès de rectification et d'opposition en vous adressant à :</p>";
$msg_body .= "<p style='text-align:center; font-size:10pt'>".$company." - ".$address." - ".$zip_code." ".$town."</p><br><br><br>";
// Fin message
$texte_message = "Cet e-mail est automatique et a pour but de valider votre demande d'avis.";
$texte_message = htmlentities($texte_message);
$message_tape = $texte_message;
$retourligne = array("\r\n", "\n", "\r");
$remplace = '<br />';
$msg_body .= "<p>".str_replace($retourligne, $remplace, $message_tape)."</p>";
//$msg_body = stripslashes($msg_body);
$message_html = "<html><head></head><body>".$msg_body."</body></html>";
//=====Transfert de la pi?e jointe sur le serveur.
if ($ispiece) { //===traitement de la pi?e jointe seulement si le champ du formulaire a ??renseign?
$upload_file = $uploaddir . $_FILES['piecejointe']['name'];
if (move_uploaded_file($_FILES['piecejointe']['tmp_name'], $upload_file)) {
$ext = explode(".", basename($_FILES['piecejointe']['name']));
switch($ext[1]) {
default:
$attach_type = "application/octet-stream";
break;
case "gz":
$attach_type = "application/x-gzip";
break;
case "tgz":
$attach_type = "application/x-gzip";
break;
case "zip":
$attach_type = "application/zip";
break;
case "pdf":
$attach_type = "application/pdf";
break;
case "png":
$attach_type = "image/png";
break;
case "gif":
$attach_type = "image/gif";
break;
case "jpg":
case"jpeg":
$attach_type = "image/jpeg";
break;
case "txt":
$attach_type = "text/plain";
break;
case "htm":
$attach_type = "text/html";
break;
case "html":
$attach_type = "text/html";
break;
}
$attach_name = $_FILES["piecejointe"]["name"];
}
//=====Lecture et mise en forme de la pi?e jointe.
if (file_exists($upload_file)) {
$fichier = fopen($upload_file, "r");
$attachement = fread($fichier, filesize($upload_file));
$attachement = chunk_split(base64_encode($attachement));
fclose($fichier);
}
}
//=====Cr?tion de la boundary.
$boundary = "-----=".md5(rand());
$boundary_alt = "-----=".md5(rand());
//=====Cr?tion du header de l'e-mail.
$header = "From: ".$nom_expediteur." <".$mail_expediteur.">".$passage_ligne;
$header.= "Reply-To: ".$nom_expediteur." <".$mail_expediteur.">".$passage_ligne;
$header .= "MIME-Version: 1.0".$passage_ligne;
$header.= "Content-Type: multipart/mixed;".$passage_ligne." boundary=\"$boundary\"".$passage_ligne;
//=====Cr?tion du message.
$message = $passage_ligne."--".$boundary.$passage_ligne;
$message.= "Content-Type: multipart/alternative;".$passage_ligne." boundary=\"$boundary_alt\"".$passage_ligne;
$message.= $passage_ligne."--".$boundary_alt.$passage_ligne;
//=====Ajout du message au format texte.
$message.= "Content-Type: text/plain; charset=\"ISO-8859-1\"".$passage_ligne;
$message.= "Content-Transfer-Encoding: 8bit".$passage_ligne;
$message.= $passage_ligne.$message_txt.$passage_ligne;
//==========
$message.= $passage_ligne."--".$boundary_alt.$passage_ligne;
//=====Ajout du message au format HTML.
$message.= "Content-Type: text/html; charset=\"ISO-8859-1\"".$passage_ligne;
$message.= "Content-Transfer-Encoding: 8bit".$passage_ligne;
$message.= $passage_ligne.$message_html.$passage_ligne;
//==========
//=====On ferme la boundary alternative.
$message.= $passage_ligne."--".$boundary_alt."--".$passage_ligne;
//==========
$message.= $passage_ligne."--".$boundary.$passage_ligne;
//=====Ajout de la pi?e jointe.
if ($ispiece) { //===Ajout de la pi?e jointe seulement si le champ du formulaire a ??renseign?
$message.= "Content-Type: ".$attach_type."; name=\"".$attach_name."\"".$passage_ligne;
$message.= "Content-Transfer-Encoding: base64".$passage_ligne;
$message.= "Content-Disposition: attachment; filename=\"".$attach_name."\"".$passage_ligne;
$message.= $passage_ligne.$attachement.$passage_ligne.$passage_ligne;
$message.= $passage_ligne."--".$boundary."--".$passage_ligne;
}
//=====Envoi de l'e-mail.
mail($mail_destinataire,$sujet,$message,$header);
//==========
echo '<script>';
echo 'window.location = "success_mail.php"';
echo '</script>';
}
/*
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////// E M A I L /////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
$msg ='<html lang="fr"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body>';
$msg .='<div align="center" style="padding-top:20px;padding-bottom:20px;width:100%;background:#fff;font-size:12pt">
<table style="background-color: #ffffff; border: 1px solid #CCC; border-radius: 6px; outline: medium none; padding: 20px; width: 800px;;font-size:12pt;-webkit-box-shadow: 5px 5px 15px 5px #ccc; box-shadow: 5px 5px 15px 5px #ccc;font-family: Calibri,Candara,Segoe,Segoe UI,Optima,Arial,sans-serif;" cellspacing="0">
<tbody><tr><td style="text-align: center; vertical-align: top;font-size:12pt" colspan="5">';
$msg .='<img src="'.$wwwroot.'business/images/'.$Image_Logo.'" style="margin:10px;max-width:300px">';
$msg .='</td></tr>';
$msg .='<tr><td style="text-align: center; vertical-align: top;font-size:12pt" colspan="5">
<table style="width: 100%;">
<tbody><tr><td style="width: 100%; text-align: left; vertical-align: middle;font-size:12pt;line-height:16pt" colspan="2">
Bonjour ' . $prenom. ',
<br /></b>
<br />
</td>
</tr>';
$msg .='<tr>
<td style="text-align: center;font-size:11pt" colspan="6"><br />';
$msg .= ''.$avis_text_1.'';
$msg .='
<br />
<b>Suivre le lien : <a href="'.$adresse_url.'/avis-clients-' . $cSuivi. '">Je donne mon Avis !</a></b><br />
<div style="text-align:center"><a href="'.$adresse_url.'/avis-clients-' . $cSuivi. '"><img src="'.$wwwroot.'images/logo-avis-du-net.png" style="margin:10px;width:200px"></a></div>
<br />
</td>
</tr>
</tbody>
</table>';
$msg .='</td></tr>';
$msg .= '<tr>
<td style="text-align: left;font-size:12pt;line-height:16pt" colspan="6">';
$msg .= '</td></tr><tr><td style="text-align: left;" colspan="6"><p> </p></td></tr><tr><td style="text-align: center;" colspan="6"><table border="0" width="100%" cellspacing="5">
</table>
</td>
</tr>';
$msg .= '<tr><td style="text-align: center; vertical-align: middle;" colspan="6">';
$msg .= '</td></tr>';
$msg .= '
<tr>
<td style="text-align: center; vertical-align: middle;" colspan="6"> </td>
</tr>
<tr>
<td style="text-align: center; vertical-align: middle;" colspan="6">
<div align="center"><span style="font-size: 8pt; color: #999999;"><span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; display: inline ! important; float: none; background-color: #ffffff;">
<br />Conformément à la Loi Informatique et Libertés, vous disposez d\'un droit d\'accès de rectification <br />et d\'opposition en vous adressant à :</span></span>';
$msg .= '
<span style="color: #999999; font-family: Tahoma; font-size: 10pt;">'.$thecompagny.' - adresse de correspondance : <br /></span><span style="color: #999999;">'.$address.' - '.$zip_code.' '.$town.'</span></span></span></div>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
';
$msg .='</body>
</html>';
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////// E M A I L /////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Envoi message au client.
require "rappel/phpmailer/class.phpmailer.php";
$mail = new PHPMailer();
$mail->IsMail();
$mail->AddReplyTo($email_rappel, $company);
$mail->AddAddress($email_client);
$mail->SetFrom($email_rappel, $company);
$mail->Subject = "Donnez-nous votre Avis ! " . $company;
$mail->MsgHTML($msg);
$mail->Send();
header("location:success_mail.php");
/////////////////////////////////////////////
/////////////////////////////////////////////
/////////////////////////////////////////////
*/
} else {
/////////////////////////////////////////////
$rremail = $_POST["email"];
$rrnom = $_POST["nom"];
$rrprenom = $_POST["nom"];
echo'
<form name="xxxl" action="Avis_du_net.php" method="POST">
<input type="hidden" name="err_email" value="'.$err_email.'">
<input type="hidden" name="err_nom" value="'.$err_nom.'">
<input type="hidden" name="err_prenom" value="'.$err_prenom.'">
<input type="hidden" name="rrprenom" value="'.$rrprenom.'">
<input type="hidden" name="rrnom" value="'.$rrnom.'">
<input type="hidden" name="rremail" value="'.$rremail.'">
<script type="text/javascript">
document.xxxl.submit(); //on envoie le formulaire
</script>
</form>';
////////////////////////////////////////////
}
}
//*************************************** Affichage **************************************//
$smarty->display('Avis_du_net.tpl');
?>