rendered paste body<?PHP
error_reporting(0);
$ip_dir = "azumaxanime.no-ip.info";
$lport = "6900";
$cport = "6121";
$zport = "5121";
$IP = array(
"Login Server : " => "$ip_dir:$lport",
"Char Server : " => "$ip_dir:$cport",
"Map Server : " => "$ip_dir:$zport",
);
while(list($Server,$Host)=each($IP)) {
list($IPAddress,$Port)=explode(":",$Host);
echo ("<strong>".$Server."</strong>");
if($con=fsockopen($IPAddress,$Port,$ERROR_NO,$ERROR_STR,(float)0.5)) {
echo("<b><font color='#5DFC0A'>Online<BR></b></font>");
fclose($con);
}
else {
echo("<b><font color='#FF3300'>Offline<BR></b></font>"); }
}
?>