echo "";
error_reporting(0);
$IP = array(
echo "<div style='padding-left:50px;'>";
"<font size=2>Login: </font>" => "78.58.83.53:2106" , "<font size=2>Game: </font>" => "78.58.83.53:7777",
); while(list($ServerName,$Host)=each($IP)) {
list($IPAddress,$Port)=explode(":",$Host);
echo($ServerName);
if($fp=fsockopen($IPAddress,$Port,$ERROR_NO,$ERROR_STR,(float)0.5)) {
echo("<font color='green'><font size=2>Online </font></font><br>");
fclose($fp);
}
else {
echo ("<font color='red'><font size=2>Offline</font></font><br>");
echo "</div>";
}
}