Naxtie
mapper, designer
SOLVED THANKS TO NINJA!
Hey, I got this piece of php code to show if my server is online and so on.. It seemed to worked fine on 0.3.6 & 0.4 but when I switched to tfs 1.0 it seems like it's not working. Anyways, here's the code, I hope that someone will be able to answer why it isnt working
Thanks in advance,
Naxtie
Hey, I got this piece of php code to show if my server is online and so on.. It seemed to worked fine on 0.3.6 & 0.4 but when I switched to tfs 1.0 it seems like it's not working. Anyways, here's the code, I hope that someone will be able to answer why it isnt working
PHP:
<?PHP if($config['status']['serverStatus_online'] == 1) { echo '<font color="#b0fa00"><b>ONLINE</b></font>'; } else { echo '<font color="#c31818"><b>OFFLINE</b></font>'; } ?></b></td>
</tr>
<tr>
<td >Server Uptime:</td>
<td>
<?PHP if($config['status']['serverStatus_online'] == 1) { echo '<font color="#e8ceb7"><strong>' . $config['status']['serverStatus_uptime'] . '</font>'; } else { echo '--//--'; } ?></td>
</tr>
<tr>
<td>Players Online:</td>
<td>
<?PHP
if($config['status']['serverStatus_online'] == 1)
echo '<a href="?subtopic=whoisonline"><br></a>' . $config['status']['serverStatus_players'];
else
echo '-';
?>
Thanks in advance,
Naxtie
Last edited: