Preview:
support.php
If you use a TFS 0.2 distribution, use:
If you use a TFS 0.3 distribution, use:
Configure your groups' names based on group id at:
For TFS 0.3 configure worlds' names at:
support.php
If you use a TFS 0.2 distribution, use:
PHP:
<?php
# TFS 0.2 Support List for ZnoteAAC
# By cbrm @ otland.net
# Credits to: AchTung, Zonet
require_once 'engine/init.php'; include 'layout/overall/header.php';
$groups = array(2 => 'Gamemaster', 3 => 'God');
echo'<h1>Support in game</h1>';
$list = mysql_query('SELECT `name`, `online`, `group_id` FROM `players` WHERE `group_id` > 1 ORDER BY `group_id` DESC');
while ($row = mysql_fetch_assoc($list)) {$data[] = $row;}
if (empty($data)) {echo 'This server is ruled by the players.'; return include 'layout/overall/footer.php';}
$headline = '<table>
<tr class="yellow"><td width="30%"><strong>Group</strong></td>
<td width="40%"><strong>Name</strong></td>
<td width="30%"><strong>Status</strong></td>';
$group_id = 0;
foreach($data as $staff)
{
if($group_id != (int)$staff['group_id'])
{
if($group_id != 0) echo '</table>'; echo $headline; $group_id = (int)$staff['group_id'];
}
echo '<tr><td>'.$groups[(int)$staff['group_id']].'</td>';
echo '<td><a href="characterprofile.php?name='.$staff['name'].'">'.$staff['name'].'</a></td>';
echo '<td><span style="color:'.($staff['online'] == 0 ? 'red;">Offline':'green;">Online').'</span></td></tr>';
}
echo'</table>'; include 'layout/overall/footer.php'; ?>
If you use a TFS 0.3 distribution, use:
PHP:
<?php
# TFS 0.3 Support List for ZnoteAAC
# By cbrm @ otland.net
# Credits to: AchTung, Zonet
require_once 'engine/init.php'; include 'layout/overall/header.php';
$groups = array(2 => 'Tutor', 3 => 'Senior Tutor', 4 => 'Gamemaster', 5 => 'Community Manager', 6 => 'God');
$worlds = array(0 => 'Server1', 1 => 'Server2');
echo'<h1>Support in game</h1>';
$list = mysql_query('SELECT `name`, `online`, `group_id`, `world_id` FROM `players` WHERE `group_id` > 1 ORDER BY `group_id` DESC');
while ($row = mysql_fetch_assoc($list)) {$data[] = $row;}
if (empty($data)) {echo 'This server is ruled by the players.'; return include 'layout/overall/footer.php';}
$headline = '<table>
<tr class="yellow"><td width="30%"><strong>Group</strong></td>
<td width="30%"><strong>Name</strong></td>
<td width="20%"><strong>Status</strong></td>
<td width="20%"><strong>World</strong></td>';
$group_id = 0;
foreach($data as $staff)
{
if($group_id != (int)$staff['group_id'])
{
if($group_id != 0) echo '</table>'; echo $headline; $group_id = (int)$staff['group_id'];
}
echo '<tr><td>'.$groups[(int)$staff['group_id']].'</td>';
echo '<td><a href="characterprofile.php?name='.$staff['name'].'">'.$staff['name'].'</a></td>';
echo '<td><span style="color:'.($staff['online'] == 0 ? 'red;">Offline':'green;">Online').'</span></td>';
echo '<td>'.$worlds[(int)$staff['world_id']].'</td></tr>';
}
echo'</table>'; include 'layout/overall/footer.php'; ?>
Configure your groups' names based on group id at:
PHP:
$groups = array(2 => 'Gamemaster', 3 => 'God');
PHP:
$groups = array(2 => 'Tutor', 3 => 'Senior Tutor', 4 => 'Gamemaster', 5 => 'Community Manager', 6 => 'God');
For TFS 0.3 configure worlds' names at:
PHP:
$worlds = array(0 => 'Server1', 1 => 'Server2');
Last edited: