The server status of my server shows that its offline when it's not and that prevents players from joining it, because they think its offline obviously.
Please Help Me ;/
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?PHP echo $config['server']['serverName']; ?> - <?PHP echo $topic; ?></title>
<meta http-equiv="Reply-to" content="" />
<meta name="Description" content="Aleh" />
<meta name="keywords" content="free online game, free multiplayer game, ots, open tibia server, Aleh, otland" />
<meta name="Author" content="Aleh - Otland" />
<meta name="Robots" content="ALL" />
<meta name="revisit-after" content="10" />
<link rel="stylesheet" type="text/css" href="<?PHP echo $layout_name; ?>/style.css" />
<link rel="stylesheet" type="text/css" href="<?PHP echo $layout_name; ?>/basic.css" />
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
var ServerStatus;
var ServerInfo;
function init()
{
ServerStatus = document.getElementById('server_status');
ServerInfo = document.getElementById('server_info');
HideServerInfo();
}
function ShowServerInfo()
{
$(ServerStatus).fadeOut(1000);
$(ServerInfo).fadeIn(1000);
}
function HideServerInfo()
{
$(ServerStatus).fadeIn(1000);
$(ServerInfo).fadeOut(1000);
}
window.onload = init;
</script>
<script>
// Copyright 2006-2007 javascript-array.com
var timeout = 500;
var closetimer = 0;
var ddmenuitem = 0;
// open hidden layer
function mopen(id)
{
// cancel close timer
mcancelclosetime();
// close old layer
if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
// get new layer and show it
ddmenuitem = document.getElementById(id);
ddmenuitem.style.visibility = 'visible';
}
// close showed layer
function mclose()
{
if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
}
// go close timer
function mclosetime()
{
closetimer = window.setTimeout(mclose, timeout);
}
// cancel close timer
function mcancelclosetime()
{
if(closetimer)
{
window.clearTimeout(closetimer);
closetimer = null;
}
}
// close layer when click-out
document.onclick = mclose;
</script>
</head>
<body>
<div id="logo"></div>
<ul id="sddm">
<li><a href="#"
onmouseover="mopen('m1')"
onmouseout="mclosetime()"><img src="<?PHP echo $layout_name; ?>/img/news.png"/></a>
<div id="m1"
onmouseover="mcancelclosetime()"
onmouseout="mclosetime()">
<a href="index.php?subtopic=latestnews">LATEST NEWS</a>
<a href="index.php?subtopic=archive">NEWS ARCHIVE</a>
<a href="index.php?subtopic=forum">FORUM</a>
</div>
</li>
<li><a href="#"
onmouseover="mopen('m2')"
onmouseout="mclosetime()"><img src="<?PHP echo $layout_name; ?>/img/account.png"/></a>
<div id="m2"
onmouseover="mcancelclosetime()"
onmouseout="mclosetime()">
<a href="index.php?subtopic=accountmanagement">ACCOUNT MANAGMENT</a>
<a href="index.php?subtopic=createaccount">CREATE ACCOUNT</a>
<a href="index.php?subtopic=lostaccount">LOST ACCOUNT?</a>
<a href="index.php?subtopic=tibiarules">RULES</a>
<?PHP if($logged)
{
echo '<a href="?subtopic=accountmanagement&action=logout"><b>LOGOUT</b></a>';
}
if($group_id_of_acc_logged >= $config['site']['access_admin_panel'])
echo '
<a href="?subtopic=adminpanel" class="menu">Admin Panel</a>
<a href="?subtopic=shopadmin" class="menu">Shop Admin</a>
<a href="?subtopic=namelock" class="menu">Namelock</a>
';
?>
</div>
</li>
<li><a href="#"
onmouseover="mopen('m3')"
onmouseout="mclosetime()"><img src="<?PHP echo $layout_name; ?>/img/community.png"/></a>
<div id="m3"
onmouseover="mcancelclosetime()"
onmouseout="mclosetime()">
<a href="index.php?subtopic=characters">CHARACTERS</a>
<a href="index.php?subtopic=whoisonline">WHO IS ONLINE?</a>
<a href="index.php?subtopic=highscores">HIGHSCORES</a>
<a href="index.php?subtopic=guilds">GUILDS</a>
<a href="index.php?subtopic=killstatistic">KILL STATISTIC</a>
<a href="index.php?subtopic=wars">GUILD WAR</a>
<a href="index.php?subtopic=bans">BANS</a>
<a href="index.php?subtopic=team">SUPPORT</a>
</div>
</li>
<li><a href="#"
onmouseover="mopen('m4')"
onmouseout="mclosetime()"><img src="<?PHP echo $layout_name; ?>/img/library.png"/></a>
<div id="m4"
onmouseover="mcancelclosetime()"
onmouseout="mclosetime()">
<a href="index.php?subtopic=record">RECORD ONLINE</a>
<a href="index.php?subtopic=spells">SPELLS</a>
<a href="index.php?subtopic=creature">CREATURES</a>
<a href="index.php?subtopic=tracker">TRACKER</a>
<a href="index.php?subtopic=serverinfo">SERVER INFO</a>
</div>
</li>
<li><a href="#"
onmouseover="mopen('m5')"
onmouseout="mclosetime()"><img src="<?PHP echo $layout_name; ?>/img/donate.png"/></a>
<div id="m5"
onmouseover="mcancelclosetime()"
onmouseout="mclosetime()">
<a href="index.php?subtopic=buypoints">BUY POINTS</a>
<a href="index.php?subtopic=shopsystem">SHOP OFFER</a>
<?PHP if($logged)
echo '<a href="#">TRANS. HISTORY</a>';
?>
</div>
</li>
</ul>
<div style="clear:both"></div>
<div class="status">
<div id="server_status" onmouseover="ShowServerInfo();">
<?PHP if($config['status']['serverStatus_online'] == 1)
echo '<img src='.$layout_name.'/img/online.png" alt="" />';
else
echo '<img src="'.$layout_name.'/img/offline.png" alt="" />';
?>
</div>
<div id="server_info" onmouseout="HideServerInfo();">
<strong>Players online:</strong> <?PHP if($config['status']['serverStatus_online'] == 1) echo $config['status']['serverStatus_players'].''; else echo '0'; ?> <strong>Uptime:</strong> <?PHP if($config['status']['serverStatus_online'] == 1) echo $config['status']['serverStatus_uptime'].''; else echo '0h 0m'; ?>
</div>
</div>
<div id="cnt-center">
<div id="content-cnt">
<div id="content-bg">
<div id="content-bot">
<div id="mainpage">
<?PHP echo $main_content; ?>
</div>
</div>
</div>
</div>
</div>
<div id="footer">
Copyright (C) 2012. All right reserved!<br />
Designed and coded by Aleh
</div>
<br><br><br>
Please Help Me ;/