summaryrefslogtreecommitdiff
path: root/FunnyDotImage.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2007-06-25 17:39:04 +0200
committerPierre Schmitz <pierre@archlinux.de>2007-06-25 17:39:04 +0200
commit1ad8de4f9a6fa3875722b5f4a42a59d80bd356ac (patch)
tree8c753e84dbb44817483b2d731f533727765f0c88 /FunnyDotImage.php
parent343f608375412f24e64f2a259f71c72540c422e2 (diff)
benutze statisches FunnyDotImage
Diffstat (limited to 'FunnyDotImage.php')
-rw-r--r--FunnyDotImage.php15
1 files changed, 3 insertions, 12 deletions
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;