?

áEÓê¤ÎïLwebshll2019

Current Path : /home/webyoo/www/backup/allback/bm-eythan.com/
Upload File :
Current File : /home/webyoo/www/backup/allback/bm-eythan.com/extract_excel.php

<?php
extract($_POST);
$return = 'KO';

function lptocsv($data,$filename='demo'){
	header('Content-Encoding: UTF-8');
	header('Content-Type:text/csv; charset=UTF-8');
	header('Content-Disposition: attachment; filename="'.$filename.'.csv"');
	$fp = fopen($filename.'.csv', 'a');
	fputcsv($fp, $data);
	fclose($fp);
}

if($nom !="")
{

$date=date("Y-m-d H:i:s");


$data=array(
	'Nom'=>$nom,
	'Prenom'=>$prenom,
	'Presence'=>$presence,
	'Nb Personnes'=>$nb_personnes,
	'Message'=>$message,
	'Date Envoi'=>$date,
);

lptocsv($data,'extract-bm');

$msg ='<table align="center" width="600px" style="border:1px solid #dedede;">
	<tr>
		<td width="600px" align="center">BM EYTHAN - REPONSE INVITE
		</td>
	</tr><tr>	
		<td width="600px" style="border: 0 none; padding: 20px; font-size: 12px; color: rgb(0, 0, 0); font-family: Verdana,Geneva,sans-serif; text-align: left; ">
			<p>Nom: '.$nom.'</p>
			<p>Prénom: '.$prenom.'</p>
			<p>Presence: '.$presence.'</p>
			<p>Nb Personnes: '.$nb_personnes.'</p>
			<p>Message: '.$message.'</p>
			<p>A tout moment téléchargez la liste de tous les leads en format CSV <a href="http://bm-eythan.com/extract-bm.csv">ici</a></p>
		</td>
	</tr>
</table>';

$headers = 'Mime-Version: 1.0'."\r\n";
$headers .= 'Content-type: text/html; charset=utf-8'."\r\n";
$headers .= "From: contact@bm-eythan.com \r\n";

mail("hmichael26@gmail.com","Reponse Invite ".$prenom." ".$nom."",$msg,$headers);
mail("hsarah26@gmail.com","Reponse Invite ".$prenom." ".$nom."",$msg,$headers);

$return = 'OK';

}

echo $return;


?>



web shell, Coded By 2019