1.0.9.8 Where are the variables defined?

#1
Hello, I wanted to know where the variables are defined (In what file) such as: {{SERVER_INFO.GUILDS}} take the data of "$serverInfo [] = $ totalGuilds;" (From the file called cron server_info.php) and so with the other data of this type ...
 
#3
I have checked in those files and there is no line where define for example "SERVER_INFO.GUILDS" so that it takes the information "$ serverInfo [] = $ totalGuilds;" of the file named "server_info.php" from the cron folder. I think it is defined in another file, but I can not find where ...
 

Mon

Administrator
Developer
#6
I'd been looking for this, did you get it? I want to add top 5 guilds to my website but it's difficult if we don't see the variables.
You can take the code from the guild rankings module:
https://github.com/lautaroangelico/WebEngine/blob/master/modules/rankings/guilds.php

This is the exact function that loads the ranking data from cache.
PHP:
$ranking_data = LoadCacheData('rankings_guilds.cache');
You can then proceed at displaying the data in a table by using a FOREACH cycle:
PHP:
echo '<table class="table">';
$i = 0;
foreach($ranking_data as $rdata) {
    if($i>=1) {
        echo '<tr>';
            echo '<td>'.$rdata[0].'</td>';
            echo '<td>'.returnGuildLogo($rdata[3], 40).'</td>';
            echo '<td>'.$rdata[1].'</td>';
            echo '<td>'.$rdata[2].'</td>';
        echo '</tr>';
    }
    $i++;
}
echo '</table>';
 
Top