i already set it using iptables but still didnt workallow outgoing connection
it is already setDon't use '127.0.0.1' on your server.php, instead, put your real IP address there.
i think it does not allow.. how can i fake the offline text there and make it to online?Maybe the website doesn't allow outgoing ports?
themes/status/status.php if i'm not mistaken..it is already setDon't use '127.0.0.1' on your server.php, instead, put your real IP address there.
i think it does not allow.. how can i fake the offline text there and make it to online?>Maybe the website doesn't allow outgoing ports?
what to edit herethemes/status/status.php if i'm not mistaken..it is already setDon't use '127.0.0.1' on your server.php, instead, put your real IP address there.
i think it does not allow.. how can i fake the offline text there and make it to online?>Maybe the website doesn't allow outgoing ports?
<?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); }}?>
<?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 statusfind 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 ?>
You should have told me that you're not using a default theme.doesnt work..your status is different to my statusfind 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 ?>
sorry about that..the status i posted above is my statusYou should have told me that you're not using a default theme.doesnt work..your status is different to my statusfind 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 ?>
using the default 1Tell 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?
nope sir is does not change the offline thingyes. the status.php is the same with default. It's the same with what I posted earlier.
<?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.phpnope sir is does not change the offline thingyes. the status.php is the same with default. It's the same with what I posted earlier.
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); }}?>
sorry about that i already change my status.. but there are no ONLINE text therethis is not the theme status.php rather the module/server/status.php.. I already told you that the file was located themes/server/status.phpnope sir is does not change the offline thingyes. the status.php is the same with default. It's the same with what I posted earlier.
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); }}?>
We use essential cookies to make this site work, and optional cookies to enhance your experience.