Tyson12302
New Member
- Joined
- Aug 6, 2014
- Messages
- 264
- Reaction score
- 4
I've changed around my layout.php and now everything works fine but when my server is offline it still says 0 Players Offline instead of saying "Server Offline" I tried adding
But i don't know where. Where can i add it without moving any of the codes? Heres my layout.php with the code
Where can i add the "Server Offline"?
PHP:
echo '<font color="red"><b>Server<br />OFFLINE</b></font>';
PHP:
Account Maker made by Gesior. Layout by CipSoft GmbH.<br/>Page has been viewed <?PHP echo $page_views; ?> times. Load time: <?PHP echo round($time, 4); ?> seconds, queries: <?PHP echo $SQL->queriesCount; ?>
</div>
</div>
<div id="ThemeboxesColumn">
<div id="RightArtwork">
<img id="Monster" src="<?PHP echo $layout_name; ?>/images/hellhound.gif" alt="Monster of the Week" />
<img id="PedestalAndOnline" src="<?PHP echo $layout_name; ?>/images/header/pedestal-and-online.gif" alt="Monster Pedestal and Players Online Box"/>
<?PHP
if(count($config['site']['worlds']) > 1)
$whoisonlineworld = '?subtopic=whoisonline';
else
$whoisonlineworld = '?subtopic=whoisonline&world=0';
?>
<div id="PlayersOnline" onClick="window.location='<?PHP echo $whoisonlineworld; ?>'">
<?php
$online = $SQL->query('SELECT COUNT(*) FROM players WHERE online > 0')->fetch();
echo $online[0].'<br />Players Online';
?>
</div>
</div>