summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;