taki kod dzialal dla Enraged:
Kod:
error_reporting(0);
$IP = array(
"auth server:" => "67.43.178.144:2106",
"game server:" => "67.43.178.144:7777",
);
// echo "<center><h2>Status serwera Lineage 2 Enraged</h2></center>\n";
echo "<center><table><tr>\n";
while(list($ServerName,$Host)=each($IP)) {
list($IPAddress,$Port)=explode(":",$Host);
echo "<td class=calendar_5>$ServerName</td>\n";
if($fp=fsockopen($IPAddress,$Port,$ERROR_NO,$ERROR_STR,(float)0.5)) echo '
{
echo "\n<td class=calendar_5><font color=green><b>Online</b></font></td>";
fclose($fp);
}
else {
echo "<td class=calendar_5><font color=#ff0000><b>Offline</b></td>";
}
echo "</tr>\n";
}