Parašė bad_user· 2008 Kov. 4 22:03:39
#2
openside("Server status");
error_reporting(0);
$my_serv_name2="";
$my_ip2="server ip:7777";
$IP2 = array(
"$my_serv_name2" => ""
);
while(list($ServerName2,$Host2)=each($IP2)) {
list($IPAddress2,$Port2)=explode(":",$Host);
echo("<TR><TD>".$ServerName2."</TD><TD>");
if($fp=fsockopen($IPAddress2, 7777, $ERROR_NO, $ERROR_STR,(float)0.5)) {
echo("
<table border='0' cellpadding='0' cellspacing='0' width='165' height='50'>
<tr height='50'>
Game Server: <font color=green><B>ONLINE</B></font></td>
</tr>
</table>
");
fclose($fp);}
else
echo ("
<table border='0' cellpadding='0' cellspacing='0' width='165' height='50'>
<tr height='50'>
Game Server: <font color=black><B>OFFLINE</B></font></td>
</tr>
</table>
");
}
closeside();
Redagavo bad_user· 2008 Kov. 4 22:03:25