Jump to content

Recommended Posts

Posted

oriste ena script p dulebh apsoga:

<?php
/*Serverio Ip bei Portai*/
$ip = '123.456.78.9';
$login = '2106';
$game= '7777';

/*Stilius*/
function statusOnline($login)
{
if($login == "Login") {
echo "Login server: <font color= #008000>Online</font>";
}else{
echo "<br/>Game server: <font color= #008000>Online</font>";
}
}

function statusOffline($login)
{
if($login == "Login") {
echo "Login server: <font color= ##FF0000>Offline</font>";
}else{
echo "<br/>Game server: <font color= ##FF0000>Offline</font>";
}
}

/*Cia nelysk*/
$timeout = "0.3";
if ($ip and $login and $timeout) {
$login = @fsockopen("$ip", $login, $errno, $errstr, $timeout);
$game = @fsockopen("$ip", $game, $errno, $errstr, $timeout);
}
if($login) { statusOnline("Login");  }
else { statusOffline("Login");  }
if($game) { statusOnline("Game");  }
else { StatusOffline("Game"); }
?>

apla prepei h eteria p hostaris to site sou na exei anixta ta ports :2106  7777

Guest
This topic is now closed to further replies.


×
×
  • Create New...