Skip to content

[Request]Online Server Checker

Featured Replies

Hello guys , i want an online server checker like blackout gaming status, thanks.

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

  • Author

oriste ena script p dulebh apsoga

 

thanks, lock it.

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.