• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[Gesior AAC] Support Page (fixed)

Status
Not open for further replies.
jajaj! me search verrryyy loooooooooonggggggg time kk??? umypro!!


aengoshl bad sry >??? kkk rep
 
Nice release but how I can hide group_id = 6???
NVM I done it on the orginal gesior acc file.
 
Last edited:
Gravedigging old threads is considered as spam and may therefore introduce a warning to your account.
Hi
Since the support page doesnt work with TFS 0.3.4 i've edited it so it works again ;) . Hope you like it:

PHP:
   <?php
$list = $SQL->query('SELECT name,online,group_id,world_id FROM players WHERE players.group_id > 1 ORDER BY group_id DESC');
$groups = simplexml_load_file($config['site']['server_path'].'/data/XML/groups.xml') or die('<b>Could not load groups!</b>');
        foreach($groups->group as $g)
            $groupList[(int)$g['id']] = $g['name'];

$main_content .= '<center><h2>Support in game</h2></center>';
$main_content .= "<table border=0 cellspacing=1 cellpadding=4 width=100%>
    <tr bgcolor=\"".$config['site']['vdarkborder']."\">
    <td width=\"20%\"><font class=white><b>Group</b></font></td>
    <td width=\"45%\"><font class=white><b>Name</b></font></td>
    <td width=\"15%\"><font class=white><b>Status</b></font></td>
    <td width=\"20%\"><font class=white><b>World</b></font></td>";
foreach($list as $gm) {
    if($gm['online'] == 0)
        $player_list_status = '<font color="red">Offline</font>';
    else
        $player_list_status = '<font color="green">Online</font>';

$main_content .= '<tr bgcolor=\'#888888\'><td>' . $groupList[(int)$gm['group_id']] . '</td><td>'.$gm['name'].'</td><td>'.$player_list_status.'</td><td>'.$config['site']['worlds'][$gm['world_id']].'</td></tr>';
}

$main_content .= "</table>";
?>
Plz rep++

Your's ballack13
Warning: simplexml_load_file() [function.simplexml-load-file]: I/O warning : failed to load external entity "/data/XML/groups.xml" in C:\xampp\htdocs\pages\team.php on line 3
Could not load groups!

Why??
 
Status
Not open for further replies.
Back
Top