Le canard dit qu'ils n'ont même pas eu besoin de pirater. Après un rapide coup d'œil aux sources de leur logiciel de pétitions, je dirais qu'ils ont laissé un export signature.csv trainer.
function ExporterSignatures($p){
global $prefixe;
$dir=dirname(__FILE__);
$fichier="$dir/signature.csv";
$infosPetition=LireInfosPetition($p);
$q="SELECT * FROM ${prefixe}".$infosPetition['nom']." ORDER BY nom";
$d=mysql_query($q) or die("adm_ListeSignature::".mysql_error());
while ($row=mysql_fetch_assoc($d)) {
$texte .= implode('|',$row)."\n";
}
if (!($hdl = fopen($fichier,'w'))) {
echo "impossible d'ouvrir $fichier";
exit;
}
fwrite($hdl,$texte) or die ("merde");;
fclose($hdl);
header("Expires: 1997年7月26日 05:00:00 GMT"); // some day in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Content-type: application/x-download");
header("Content-Disposition: attachment; filename={$fichier}");
header("Content-Transfer-Encoding: binary");
readfile($fichier);
}
[^] # Re: pétition en ligne
Posté par Ozz . En réponse à la dépêche EDVIGE : un nouveau fichier de renseignements policiers. Évalué à 2.
function ExporterSignatures($p){
global $prefixe;
$dir=dirname(__FILE__);
$fichier="$dir/signature.csv";
$infosPetition=LireInfosPetition($p);
$q="SELECT * FROM ${prefixe}".$infosPetition['nom']." ORDER BY nom";
$d=mysql_query($q) or die("adm_ListeSignature::".mysql_error());
while ($row=mysql_fetch_assoc($d)) {
$texte .= implode('|',$row)."\n";
}
if (!($hdl = fopen($fichier,'w'))) {
echo "impossible d'ouvrir $fichier";
exit;
}
fwrite($hdl,$texte) or die ("merde");;
fclose($hdl);
header("Expires: 1997年7月26日 05:00:00 GMT"); // some day in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Content-type: application/x-download");
header("Content-Disposition: attachment; filename={$fichier}");
header("Content-Transfer-Encoding: binary");
readfile($fichier);
}
argh!