Just a question is there any admin panel or something like it.
To create forum boards, posts etc?
I changed my page_acess in the database to 5 but it seems i can't use the "admin" function any way.
Great AAC keep the good work up.
<?PHP
require ("config.php");
$ots = POT::getInstance();
$ots->connect(POT::DB_MYSQL, connection());
$SQL = POT::getInstance()->getDBHandle();
$record = $SQL->query('SELECT `record` FROM `server_record` ORDER BY `record` DESC LIMIT 1;');
$sql = $SQL->query("SELECT count(1) FROM `players` WHERE `online` = '1'")->fetch();
//** Config **//
$limit_on = 300;
///^^ Limit of players online ( it dont work but just to show that there is one ^^ ^^///
ECHO"<center><br>
<font color=\"ORANGE\"><b>Players Online:</font> <a href=\"#\"><font color=\"green\">"; ECHO "$sql[0]"; ECHO " / $limit_on"; ECHO "<br /></font></b></a>
<b>Record: <font color=\"red\"> ";
foreach($record as $result) { echo ''.$result['record'].''; } ECHO "<br /></b></font></center>";
?>
<h1>Server status</h1><br />
{foreach from=$worlds key=id item=world}
<b>World:</b> {$world} <br />
<b>Status:</b>
{if $serverOnline[$id]}
<font color='green'>Online</font><br />
{else}
<font color='red'>Offline{include_php file='templates\default\re.php'}</font><br />
{/if}
{/foreach}
I still need some help with my website not showing online players or if my server is online. i alrdy change the ip and everything idk whats wrong :/
/* Addresses of each server */
$config['servers'][0] = array('address'=>'your external ip here.(same that you have in your config.lua)', 'port'=>7171);
/* Addresses of each server */
$config['servers'][0] = array('address'=>'***************.com', 'port'=>7171);
Sorry for double posting, but i found the trouble... Its my layout the "wow" layout doesnt really work, cause i tried it on the default one and it did show my server online, then i changed it to the "wow" one and it didnt work.