1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
| <?php
$lv = $_POST['tab'];
$temp = explode(",",$lv);
settype($temp[1],'integer');
$sortie = imagecreatetruecolor(200,200);
$k = 0;
for($i=0; $i<200; $i++){
for($j=0; $j<200; $j++){
imagesetpixel($sortie,$j,$i,$temp[$k]);
$k++;
}
}
$lien = 'http://jxjxjxjxjx';
$couleur_texte = imagecolorallocate($sortie, 255, 255, 255);
imagestring($sortie, 1, 10, 190, $lien, $couleur_texte);
@ob_end_clean();
@ini_set('zlib.output_compression','Off');
header('Pragma: public');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: must-revalidate, pre-check=0, post-check=0, max-age=0');
header('Content-Tranfer-Encoding: none');
header('Content-Type: application/octetstream; name="buzz.jpg"');
header('Content-Disposition: attachement; filename="buzz.jpg"');
imagejpeg($sortie,"",100);
imagedestroy($sortie);
exit();
?> |
Partager