#native_company# #native_desc#
#native_cta#

Online/Offline cs servers

By Corey
on April 10, 2012

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, "xFFxFFxFFxFFx54x53x6Fx75x72x63x65x20x45x6Ex67x69x6Ex65x20x51x75x65x72x79x00");

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

?>