<?php include "config/status.php" ?>
<?php
//if ($server && $port && $timeout) {
$game = @fsockopen("$server", $portg, $errno, $errstr, $timeout);
$login = @fsockopen("$server", $portl, $errno, $errstr, $timeout);
//}
if($login) {
echo "Login Server: <font color=#00DF00>Online</font><br />";
}
else {
echo "Login Server: <font color=#FF0000>Offline</font><br />";
}
if($game) {
echo "Game Server: <font color=#00DF00>Online</font><br />";
}
else {
echo "Game Server: <font color=#FF0000>Offline</font><br />";
}
echo "";
?>
Then create new folder "config" and new file in it "status.php"
there replace that:
<?php
$server = "~> Server IP <~";
$portg = "7777";
$portl = "2106";
$timeout = "1";
?>