Devilfenix Posted August 1, 2012 Share Posted August 1, 2012 Hello guys , i want an online server checker like blackout gaming status, thanks. Link to comment Share on other sites More sharing options...
MoneyMan Posted August 1, 2012 Share Posted August 1, 2012 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 Link to comment Share on other sites More sharing options...
Devilfenix Posted August 1, 2012 Author Share Posted August 1, 2012 oriste ena script p dulebh apsoga thanks, lock it. Link to comment Share on other sites More sharing options...
MixMasteR Posted August 1, 2012 Share Posted August 1, 2012 thanks, lock it. οκ Link to comment Share on other sites More sharing options...
Recommended Posts