Hacked By AnonymousFox
<?php
include '../lib/init.php';
/**
* Initialisation
*/
use Lib\Utilisateur;
Utilisateur::ifConnect();
/* Fichier à compléter */
$fp = fopen("newsletterCsv.csv","w");
/* Titre */
fputcsv($fp,array('Email'),';');
$sql = $bdd->query("SELECT * FROM newsletter
ORDER BY newsletterId ASC ");
while($data = $sql->fetchObject()){
/* CSV row */
$row = array(
'email' => $data->newsletterEmail
);
fputcsv($fp, $row,';');
}
fclose($fp);
/* Téléchargement du fichier */
header('location:'.BASEADMIN.'csv/newsletterCsv.csv');
?>
Hacked By AnonymousFox1.0, Coded By AnonymousFox