<?php
$server = "127.0.0.1";
$portg = "2000";
$portl = "2000";
$timeout = "5";
if ($server and $port and $timeout) {
$game = @fsockopen("$server", $portg, $errno, $errstr, $timeout);
$login = @fsockopen("$server", $portl, $errno, $errstr, $timeout);
}
if($game) { print'<tr><td>Server Status: </td><td><font color="#FF0000"><strong>Offline</strong></font></td></tr>'; }
else { print'<tr><td>Server Status: </td><td"><font color="#00FF00"><strong>Online</strong></td></tr>'; }
print'</table>';
?>
0 replies