summaryrefslogtreecommitdiff
path: root/FunnyDotImage.php
blob: aa95413444a0f740856d176679c5caee099ff53e (plain)
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
<?php

require ('includes/WebStart.php');

$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);

while (ob_get_level() > 0)
	{
	ob_end_flush();
	}

exit;

?>