<?
if($live_server = fsockopen("udp://cs.sklepas.eu", "27015"))
fwrite($live_server, "\xFF\xFF\xFF\xFFTSource Engine Query\x00");
socket_set_timeout($live_server,1,0);
$junk = fread($live_server,5);
$status = socket_get_status($live_server);
if($status["unread_bytes"] == 0) {
echo "offline";
$do = 0;
}else{
echo "online";
}
?>