<!-- status -->
<div id='left_content_block'>
<div id='left_panel_top'><div class='server_status'></div></div>
<div id='left_panel_mid'>
<div id='left_panel_txt'>
<div id='status_panel_server_info'>
<div class='server_title'>Server (***)</div><div class='status_panel_c'>
<?php
/*Serverio Ip bei Portai*/
$ip = 'IP';
$login = '2106';
$game= '7000';
/*Stilius*/
function statusOnline($login)
{
if($login == "Login") {
echo "<div class='status_panel_left'>Login server:</div>
<div class='status_panel_right'><span style='color: #8aff00;'>Online</span></div>";
}else{
echo "<br />
<div class='status_panel_left'>Game server:</div>
<div class='status_panel_right'><span style='color: #8aff00;'>Online</span></div>";
}
}
function statusOffline($login)
{
if($login == "Login") {
echo "<div class='status_panel_left'>Login server:</div>
<div class='status_panel_right'><span style='color: #ff0000;'>Online</span></div>";
}else{
echo "<br />
<div class='status_panel_left'>Game server:</div>
<div class='status_panel_right'><span style='color: #ff0000;'>Offline</span></div>";
}
}
/*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"); }
?>
<br />
<div class='status_panel_left'>Players online:</div>
<div class='status_panel_right' style='color: #8aff00;'>0</div></div> </div>
</div>
</div>
<div id='left_panel_bottom'></div>
</div>