From 1ad8de4f9a6fa3875722b5f4a42a59d80bd356ac Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Mon, 25 Jun 2007 17:39:04 +0200 Subject: benutze statisches FunnyDotImage --- FunnyDotImage.php | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'FunnyDotImage.php') diff --git a/FunnyDotImage.php b/FunnyDotImage.php index aa954134..f2e1110c 100644 --- a/FunnyDotImage.php +++ b/FunnyDotImage.php @@ -7,22 +7,13 @@ $time = time(); setCookie('AntiSpamTime', $time); setCookie('AntiSpamHash', sha1($time.$wgAntiSpamHash)); -$im = imagecreatetruecolor(1, 1); - -ob_start(); - header('HTTP/1.1 200 OK'); header("Cache-Control: no-cache, must-revalidate"); header('Content-Type: image/png'); -header('Content-Length: '.ob_get_length()); - -imagepng($im); -imagedestroy($im); +header('Content-Length: 69'); -while (ob_get_level() > 0) - { - ob_end_flush(); - } +/** transparent png (1px*1px) */ +echo base64_decode('iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAADElEQVQImWNgYGAAAAAEAAGjChXjAAAAAElFTkSuQmCC'); exit; -- cgit v1.2.3-54-g00ecf