glemor123 1 Posted May 23, 2013 about flux cp what is my server status still offline eventhough i configured it correctly and my server is up Share this post Link to post Share on other sites
0 mybitch 9 Posted May 25, 2013 What did you do? i just change my status to what you gave me.. then no ONLINE OR OFFLINE text appears try this.. <?php if (!defined('FLUX_ROOT')) exit; ?><h2><?php echo htmlspecialchars(Flux::message('ServerStatusHeading')) ?></h2><p><?php echo htmlspecialchars(Flux::message('ServerStatusInfo')) ?></p><?php foreach ($serverStatus as $privServerName => $gameServers): ?><h3>Server Status for <?php echo htmlspecialchars($privServerName) ?></h3><table id="server_status"> <tr> <td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusServerLabel')) ?></td> <td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusLoginLabel')) ?></td> <td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusCharLabel')) ?></td> <td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusMapLabel')) ?></td> <td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusOnlineLabel')) ?></td> </tr> <?php foreach ($gameServers as $serverName => $gameServer): ?> <tr> <th class="server"><?php echo htmlspecialchars($serverName) ?></th> <td class="status"><font color="green">ONLINE</font></td> <td class="status"><font color="green">ONLINE</font></td> <td class="status"><font color="green">ONLINE</font></td> <td class="status"><?php echo $gameServer['playersOnline'] ?></td> </tr> <?php endforeach ?></table><?php endforeach ?> Share this post Link to post Share on other sites
0 Fatalis 2 Posted May 23, 2013 allow outgoing connection Share this post Link to post Share on other sites
0 glemor123 1 Posted May 23, 2013 how will allow outgoing connections from my vps? Share this post Link to post Share on other sites
0 glemor123 1 Posted May 23, 2013 allow outgoing connection i already set it using iptables but still didnt work Share this post Link to post Share on other sites
0 mybitch 9 Posted May 23, 2013 Maybe the website doesn't allow outgoing ports? Share this post Link to post Share on other sites
0 Jezu 25 Posted May 23, 2013 Don't use '127.0.0.1' on your server.php, instead, put your real IP address there. Share this post Link to post Share on other sites
0 glemor123 1 Posted May 23, 2013 Don't use '127.0.0.1' on your server.php, instead, put your real IP address there. it is already set Maybe the website doesn't allow outgoing ports? i think it does not allow.. how can i fake the offline text there and make it to online? Share this post Link to post Share on other sites
0 mybitch 9 Posted May 23, 2013 Don't use '127.0.0.1' on your server.php, instead, put your real IP address there. it is already set >Maybe the website doesn't allow outgoing ports? i think it does not allow.. how can i fake the offline text there and make it to online? themes/status/status.php if i'm not mistaken.. Share this post Link to post Share on other sites
0 glemor123 1 Posted May 23, 2013 Don't use '127.0.0.1' on your server.php, instead, put your real IP address there. it is already set >Maybe the website doesn't allow outgoing ports? i think it does not allow.. how can i fake the offline text there and make it to online? themes/status/status.php if i'm not mistaken.. what to edit here <?phpif (!defined('FLUX_ROOT')) exit;$title = Flux::message('ServerStatusTitle');$cache = FLUX_DATA_DIR.'/tmp/ServerStatus.cache';if (file_exists($cache) && (time() - filemtime($cache)) < (Flux::config('ServerStatusCache') * 60)) { $serverStatus = unserialize(file_get_contents($cache));}else { $serverStatus = array(); foreach (Flux::$loginAthenaGroupRegistry as $groupName => $loginAthenaGroup) { if (!array_key_exists($groupName, $serverStatus)) { $serverStatus[$groupName] = array(); } $loginServerUp = $loginAthenaGroup->loginServer->isUp(); foreach ($loginAthenaGroup->athenaServers as $athenaServer) { $serverName = $athenaServer->serverName; $sql = "SELECT COUNT(char_id) AS players_online FROM {$athenaServer->charMapDatabase}.char WHERE online > 0"; $sth = $loginAthenaGroup->connection->getStatement($sql); $sth->execute(); $res = $sth->fetch(); $serverStatus[$groupName][$serverName] = array( 'loginServerUp' => $loginServerUp, 'charServerUp' => $athenaServer->charServer->isUp(), 'mapServerUp' => $athenaServer->mapServer->isUp(), 'playersOnline' => intval($res ? $res->players_online : 0) ); } } $fp = fopen($cache, 'w'); if (is_resource($fp)) { fwrite($fp, serialize($serverStatus)); fclose($fp); }}?> Share this post Link to post Share on other sites
0 mybitch 9 Posted May 23, 2013 find this themes/server/status.php <?php if (!defined('FLUX_ROOT')) exit; ?><h2><?php echo htmlspecialchars(Flux::message('ServerStatusHeading')) ?></h2><p><?php echo htmlspecialchars(Flux::message('ServerStatusInfo')) ?></p><?php foreach ($serverStatus as $privServerName => $gameServers): ?><h3>Server Status for <?php echo htmlspecialchars($privServerName) ?></h3><table id="server_status"> <tr> <td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusServerLabel')) ?></td> <td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusLoginLabel')) ?></td> <td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusCharLabel')) ?></td> <td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusMapLabel')) ?></td> <td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusOnlineLabel')) ?></td> </tr> <?php foreach ($gameServers as $serverName => $gameServer): ?> <tr> <th class="server"><?php echo htmlspecialchars($serverName) ?></th> <td class="status"><?php echo $this->serverUpDown($gameServer['loginServerUp']) ?></td> <td class="status"><?php echo $this->serverUpDown($gameServer['charServerUp']) ?></td> <td class="status"><?php echo $this->serverUpDown($gameServer['mapServerUp']) ?></td> <td class="status"><?php echo $gameServer['playersOnline'] ?></td> </tr> <?php endforeach ?></table><?php endforeach ?> replace by.. <?php if (!defined('FLUX_ROOT')) exit; ?><h2><?php echo htmlspecialchars(Flux::message('ServerStatusHeading')) ?></h2><p><?php echo htmlspecialchars(Flux::message('ServerStatusInfo')) ?></p><?php foreach ($serverStatus as $privServerName => $gameServers): ?><h3>Server Status for <?php echo htmlspecialchars($privServerName) ?></h3><table id="server_status"> <tr> <td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusServerLabel')) ?></td> <td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusLoginLabel')) ?></td> <td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusCharLabel')) ?></td> <td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusMapLabel')) ?></td> <td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusOnlineLabel')) ?></td> </tr> <?php foreach ($gameServers as $serverName => $gameServer): ?> <tr> <th class="server"><?php echo htmlspecialchars($serverName) ?></th> <td class="status"><?php echo $this->ONLINE ?></td> <td class="status"><?php echo $this->ONLINE ?></td> <td class="status"><?php echo $this->ONLINE ?></td> <td class="status"><?php echo $gameServer['playersOnline'] ?></td> </tr> <?php endforeach ?></table><?php endforeach ?> Share this post Link to post Share on other sites
0 glemor123 1 Posted May 24, 2013 find this themes/server/status.php <?php if (!defined('FLUX_ROOT')) exit; ?><h2><?php echo htmlspecialchars(Flux::message('ServerStatusHeading')) ?></h2><p><?php echo htmlspecialchars(Flux::message('ServerStatusInfo')) ?></p><?php foreach ($serverStatus as $privServerName => $gameServers): ?><h3>Server Status for <?php echo htmlspecialchars($privServerName) ?></h3><table id="server_status"> <tr> <td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusServerLabel')) ?></td> <td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusLoginLabel')) ?></td> <td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusCharLabel')) ?></td> <td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusMapLabel')) ?></td> <td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusOnlineLabel')) ?></td> </tr> <?php foreach ($gameServers as $serverName => $gameServer): ?> <tr> <th class="server"><?php echo htmlspecialchars($serverName) ?></th> <td class="status"><?php echo $this->serverUpDown($gameServer['loginServerUp']) ?></td> <td class="status"><?php echo $this->serverUpDown($gameServer['charServerUp']) ?></td> <td class="status"><?php echo $this->serverUpDown($gameServer['mapServerUp']) ?></td> <td class="status"><?php echo $gameServer['playersOnline'] ?></td> </tr> <?php endforeach ?></table><?php endforeach ?> replace by.. <?php if (!defined('FLUX_ROOT')) exit; ?><h2><?php echo htmlspecialchars(Flux::message('ServerStatusHeading')) ?></h2><p><?php echo htmlspecialchars(Flux::message('ServerStatusInfo')) ?></p><?php foreach ($serverStatus as $privServerName => $gameServers): ?><h3>Server Status for <?php echo htmlspecialchars($privServerName) ?></h3><table id="server_status"> <tr> <td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusServerLabel')) ?></td> <td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusLoginLabel')) ?></td> <td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusCharLabel')) ?></td> <td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusMapLabel')) ?></td> <td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusOnlineLabel')) ?></td> </tr> <?php foreach ($gameServers as $serverName => $gameServer): ?> <tr> <th class="server"><?php echo htmlspecialchars($serverName) ?></th> <td class="status"><?php echo $this->ONLINE ?></td> <td class="status"><?php echo $this->ONLINE ?></td> <td class="status"><?php echo $this->ONLINE ?></td> <td class="status"><?php echo $gameServer['playersOnline'] ?></td> </tr> <?php endforeach ?></table><?php endforeach ?> doesnt work..your status is different to my status Share this post Link to post Share on other sites
0 mybitch 9 Posted May 24, 2013 find this themes/server/status.php <?php if (!defined('FLUX_ROOT')) exit; ?><h2><?php echo htmlspecialchars(Flux::message('ServerStatusHeading')) ?></h2><p><?php echo htmlspecialchars(Flux::message('ServerStatusInfo')) ?></p><?php foreach ($serverStatus as $privServerName => $gameServers): ?><h3>Server Status for <?php echo htmlspecialchars($privServerName) ?></h3><table id="server_status"> <tr> <td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusServerLabel')) ?></td> <td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusLoginLabel')) ?></td> <td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusCharLabel')) ?></td> <td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusMapLabel')) ?></td> <td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusOnlineLabel')) ?></td> </tr> <?php foreach ($gameServers as $serverName => $gameServer): ?> <tr> <th class="server"><?php echo htmlspecialchars($serverName) ?></th> <td class="status"><?php echo $this->serverUpDown($gameServer['loginServerUp']) ?></td> <td class="status"><?php echo $this->serverUpDown($gameServer['charServerUp']) ?></td> <td class="status"><?php echo $this->serverUpDown($gameServer['mapServerUp']) ?></td> <td class="status"><?php echo $gameServer['playersOnline'] ?></td> </tr> <?php endforeach ?></table><?php endforeach ?> replace by.. <?php if (!defined('FLUX_ROOT')) exit; ?><h2><?php echo htmlspecialchars(Flux::message('ServerStatusHeading')) ?></h2><p><?php echo htmlspecialchars(Flux::message('ServerStatusInfo')) ?></p><?php foreach ($serverStatus as $privServerName => $gameServers): ?><h3>Server Status for <?php echo htmlspecialchars($privServerName) ?></h3><table id="server_status"> <tr> <td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusServerLabel')) ?></td> <td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusLoginLabel')) ?></td> <td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusCharLabel')) ?></td> <td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusMapLabel')) ?></td> <td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusOnlineLabel')) ?></td> </tr> <?php foreach ($gameServers as $serverName => $gameServer): ?> <tr> <th class="server"><?php echo htmlspecialchars($serverName) ?></th> <td class="status"><?php echo $this->ONLINE ?></td> <td class="status"><?php echo $this->ONLINE ?></td> <td class="status"><?php echo $this->ONLINE ?></td> <td class="status"><?php echo $gameServer['playersOnline'] ?></td> </tr> <?php endforeach ?></table><?php endforeach ?> doesnt work..your status is different to my status You should have told me that you're not using a default theme. Share this post Link to post Share on other sites
0 glemor123 1 Posted May 24, 2013 find this themes/server/status.php <?php if (!defined('FLUX_ROOT')) exit; ?><h2><?php echo htmlspecialchars(Flux::message('ServerStatusHeading')) ?></h2><p><?php echo htmlspecialchars(Flux::message('ServerStatusInfo')) ?></p><?php foreach ($serverStatus as $privServerName => $gameServers): ?><h3>Server Status for <?php echo htmlspecialchars($privServerName) ?></h3><table id="server_status"> <tr> <td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusServerLabel')) ?></td> <td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusLoginLabel')) ?></td> <td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusCharLabel')) ?></td> <td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusMapLabel')) ?></td> <td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusOnlineLabel')) ?></td> </tr> <?php foreach ($gameServers as $serverName => $gameServer): ?> <tr> <th class="server"><?php echo htmlspecialchars($serverName) ?></th> <td class="status"><?php echo $this->serverUpDown($gameServer['loginServerUp']) ?></td> <td class="status"><?php echo $this->serverUpDown($gameServer['charServerUp']) ?></td> <td class="status"><?php echo $this->serverUpDown($gameServer['mapServerUp']) ?></td> <td class="status"><?php echo $gameServer['playersOnline'] ?></td> </tr> <?php endforeach ?></table><?php endforeach ?> replace by.. <?php if (!defined('FLUX_ROOT')) exit; ?><h2><?php echo htmlspecialchars(Flux::message('ServerStatusHeading')) ?></h2><p><?php echo htmlspecialchars(Flux::message('ServerStatusInfo')) ?></p><?php foreach ($serverStatus as $privServerName => $gameServers): ?><h3>Server Status for <?php echo htmlspecialchars($privServerName) ?></h3><table id="server_status"> <tr> <td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusServerLabel')) ?></td> <td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusLoginLabel')) ?></td> <td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusCharLabel')) ?></td> <td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusMapLabel')) ?></td> <td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusOnlineLabel')) ?></td> </tr> <?php foreach ($gameServers as $serverName => $gameServer): ?> <tr> <th class="server"><?php echo htmlspecialchars($serverName) ?></th> <td class="status"><?php echo $this->ONLINE ?></td> <td class="status"><?php echo $this->ONLINE ?></td> <td class="status"><?php echo $this->ONLINE ?></td> <td class="status"><?php echo $gameServer['playersOnline'] ?></td> </tr> <?php endforeach ?></table><?php endforeach ?> doesnt work..your status is different to my status You should have told me that you're not using a default theme. sorry about that..the status i posted above is my status Share this post Link to post Share on other sites
0 mybitch 9 Posted May 24, 2013 Tell me the link for your website. I want to see the website. Also, if possible are you using a default theme or a custom one? Share this post Link to post Share on other sites
0 glemor123 1 Posted May 24, 2013 Tell me the link for your website. I want to see the website. Also, if possible are you using a default theme or a custom one? using the default 1 http://3rdjob.reviserogaming.org/ Share this post Link to post Share on other sites
0 mybitch 9 Posted May 24, 2013 yes. the status.php is the same with default. It's the same with what I posted earlier. Share this post Link to post Share on other sites
0 glemor123 1 Posted May 25, 2013 yes. the status.php is the same with default. It's the same with what I posted earlier. nope sir is does not change the offline thing this is my status from that default flux <?phpif (!defined('FLUX_ROOT')) exit; $title = Flux::message('ServerStatusTitle');$cache = FLUX_DATA_DIR.'/tmp/ServerStatus.cache'; if (file_exists($cache) && (time() - filemtime($cache)) < (Flux::config('ServerStatusCache') * 60)) { $serverStatus = unserialize(file_get_contents($cache));}else { $serverStatus = array(); foreach (Flux::$loginAthenaGroupRegistry as $groupName => $loginAthenaGroup) { if (!array_key_exists($groupName, $serverStatus)) { $serverStatus[$groupName] = array(); } $loginServerUp = $loginAthenaGroup->loginServer->isUp(); foreach ($loginAthenaGroup->athenaServers as $athenaServer) { $serverName = $athenaServer->serverName; $sql = "SELECT COUNT(char_id) AS players_online FROM {$athenaServer->charMapDatabase}.char WHERE online > 0"; $sth = $loginAthenaGroup->connection->getStatement($sql); $sth->execute(); $res = $sth->fetch(); $serverStatus[$groupName][$serverName] = array( 'loginServerUp' => $loginServerUp, 'charServerUp' => $athenaServer->charServer->isUp(), 'mapServerUp' => $athenaServer->mapServer->isUp(), 'playersOnline' => intval($res ? $res->players_online : 0) ); } } $fp = fopen($cache, 'w'); if (is_resource($fp)) { fwrite($fp, serialize($serverStatus)); fclose($fp); }}?> Share this post Link to post Share on other sites
0 mybitch 9 Posted May 25, 2013 yes. the status.php is the same with default. It's the same with what I posted earlier. nope sir is does not change the offline thing this is my status from that default flux <?phpif (!defined('FLUX_ROOT')) exit; $title = Flux::message('ServerStatusTitle');$cache = FLUX_DATA_DIR.'/tmp/ServerStatus.cache'; if (file_exists($cache) && (time() - filemtime($cache)) < (Flux::config('ServerStatusCache') * 60)) { $serverStatus = unserialize(file_get_contents($cache));}else { $serverStatus = array(); foreach (Flux::$loginAthenaGroupRegistry as $groupName => $loginAthenaGroup) { if (!array_key_exists($groupName, $serverStatus)) { $serverStatus[$groupName] = array(); } $loginServerUp = $loginAthenaGroup->loginServer->isUp(); foreach ($loginAthenaGroup->athenaServers as $athenaServer) { $serverName = $athenaServer->serverName; $sql = "SELECT COUNT(char_id) AS players_online FROM {$athenaServer->charMapDatabase}.char WHERE online > 0"; $sth = $loginAthenaGroup->connection->getStatement($sql); $sth->execute(); $res = $sth->fetch(); $serverStatus[$groupName][$serverName] = array( 'loginServerUp' => $loginServerUp, 'charServerUp' => $athenaServer->charServer->isUp(), 'mapServerUp' => $athenaServer->mapServer->isUp(), 'playersOnline' => intval($res ? $res->players_online : 0) ); } } $fp = fopen($cache, 'w'); if (is_resource($fp)) { fwrite($fp, serialize($serverStatus)); fclose($fp); }}?> this is not the theme status.php rather the module/server/status.php.. I already told you that the file was located themes/server/status.php Share this post Link to post Share on other sites
0 glemor123 1 Posted May 25, 2013 (edited) yes. the status.php is the same with default. It's the same with what I posted earlier. nope sir is does not change the offline thing this is my status from that default flux <?phpif (!defined('FLUX_ROOT')) exit; $title = Flux::message('ServerStatusTitle');$cache = FLUX_DATA_DIR.'/tmp/ServerStatus.cache'; if (file_exists($cache) && (time() - filemtime($cache)) < (Flux::config('ServerStatusCache') * 60)) { $serverStatus = unserialize(file_get_contents($cache));}else { $serverStatus = array(); foreach (Flux::$loginAthenaGroupRegistry as $groupName => $loginAthenaGroup) { if (!array_key_exists($groupName, $serverStatus)) { $serverStatus[$groupName] = array(); } $loginServerUp = $loginAthenaGroup->loginServer->isUp(); foreach ($loginAthenaGroup->athenaServers as $athenaServer) { $serverName = $athenaServer->serverName; $sql = "SELECT COUNT(char_id) AS players_online FROM {$athenaServer->charMapDatabase}.char WHERE online > 0"; $sth = $loginAthenaGroup->connection->getStatement($sql); $sth->execute(); $res = $sth->fetch(); $serverStatus[$groupName][$serverName] = array( 'loginServerUp' => $loginServerUp, 'charServerUp' => $athenaServer->charServer->isUp(), 'mapServerUp' => $athenaServer->mapServer->isUp(), 'playersOnline' => intval($res ? $res->players_online : 0) ); } } $fp = fopen($cache, 'w'); if (is_resource($fp)) { fwrite($fp, serialize($serverStatus)); fclose($fp); }}?> this is not the theme status.php rather the module/server/status.php.. I already told you that the file was located themes/server/status.php sorry about that i already change my status.. but there are no ONLINE text there look http://3rdjob.reviserogaming.org/?module=server&action=status Edited May 25, 2013 by glemor123 Share this post Link to post Share on other sites
0 glemor123 1 Posted May 25, 2013 What did you do? i just change my status to what you gave me.. then no ONLINE OR OFFLINE text appears Share this post Link to post Share on other sites
0 astralprojection 35 Posted November 25, 2015 it this the right way to fix the problem? this will show server online ALL THE TIME even offline. is there any other way to fix this? Share this post Link to post Share on other sites
0 Tranquility 12 Posted November 28, 2015 it this the right way to fix the problem? this will show server online ALL THE TIME even offline. is there any other way to fix this? There is another way, however, you'll require some tweaks to pull it off. I personally have separated the information in two files (one config, one navigation), however, you can merge it into one. Alter the $host, $user, $pwd & $db variables as needed. Here's the config file: // Server Timedate_default_timezone_set('America/Chicago'); //Change your timezone to your server's timezone.$today = date("H:i", time());// Server configuration$host = "SERVER_IP";$user = "SQL_USER";$pwd = "SQL_PASS";$db = "SQL_DATABASE";// Login, Char & Map Server ports$login = 6900;$char = 6121;$map = 5121;//PHP Data Objects -> onlinePlayersCount & serverOnline// Players Online$server = new PDO("mysql:host={$host};dbname={$db}",$user,$pwd);$sql = "SELECT COUNT(*) AS players_online FROM main.char WHERE online > 0";$onlinePlayersCount = $server->query($sql)->fetchColumn();// Server Statusfunction getServerStatus() { //global $host,$login,$char,$map; $host = "SERVER_IP"; $login = 6900; $char = 6121; $map = 5121; $loginStatus = @fsockopen($host,$login,$errno,$errstr); $charStatus = @fsockopen($host,$char,$errno,$errstr); $mapStatus = @fsockopen($host,$map,$errno,$errstr); if($loginStatus == false || $charStatus == false || $mapStatus == false){ return false; }else{ fclose($loginStatus); fclose($charStatus); fclose($mapStatus); return true; }}$serverOnline = getServerStatus();?> And here's my navigation file: <?phprequire_once('serv_config.php');?><ul class="pull-right"> <li>Time: <?php echo $today; ?></li> <li><span>Players: <?php echo $onlinePlayersCount; ?></span></li> <li><span>Server: <span id="<?php if($serverOnline == true) { echo "server-online";} else {echo "server-offline";}?>"><?php if($serverOnline == true) {echo "Online";} else {echo "Offline";} ?></span></span></li></ul> <!-- pull-right --> The CSS for the online/offline indicators (green&red): .main-navigation #server-online { color: green;}.main-navigation #server-offline { color: red;} All these tweaks I have applied to Herc's FluxCP with the emphaino theme. There's more CSS involved with this, however, it's not relevant for the code you wanted and just visual positioning etc. Good luck. 1 astralprojection reacted to this Share this post Link to post Share on other sites
about flux cp
what is my server status still offline eventhough i configured it correctly and my server is up
Share this post
Link to post
Share on other sites