Version: 1

Type: Full Script

Category: Games

License: GNU General Public License

Description: Tell your clan weather you server is up or not!



<?php
$vt_ip = "68.8.11.202";	// Server IP
$vt_port = "27015";	// Port

$output = @fsockopen("udp://$vt_ip", $vt_port, $errno, $errstr, 0.25);
@socket_set_timeout($output, 1);
@socket_set_blocking($output, 1);

@fwrite($output, "\xFF\xFF\xFF\xFF\x54\x53\x6F\x75\x72\x63\x65\x20\x45\x6E\x67\x69\x6E\x65\x20\x51\x75\x65\x72\x79\x00");

$buffer = @fread($output, 4096);

if (!$buffer) {
	$cache_file = "http://cur.pimpmyspace.org/cursors/online/31d5db52e529eea672be9ba5ebfa2c12.gif";
} else {
	$cache_file = "http://cur.pimpmyspace.org/cursors/online/6351473e988e557edd4e723c15c5b968.gif";
}

@fclose($output);

header("Content-Type: image/jpeg");
// header("Content-Length: ".filesize($cache_file));

$cache = fopen($cache_file,"r");
fpassthru($cache);
fclose($cache);

exit;

?>