Support in-game
hasExpired()) {
// Fetch all staffs in-game.
if ($config['ServerEngine'] == 'TFS_03') {
$staffs = support_list03();
} else $staffs = support_list();
// Fetch group ids and names from config.php
$groups = $config['ingame_positions'];
// Loops through groups, separating each group element into an ID variable and name variable
foreach ($groups as $group_id => $group_name) {
// Loops through list of staffs
if (!empty($staffs))
foreach ($staffs as $staff) {
if ($staff['group_id'] == $group_id) $srtGrp[$group_name][] = $staff;
}
}
if (!empty($srtGrp)) {
$cache->setContent($srtGrp);
$cache->save();
}
} else {
$srtGrp = $cache->load();
}
$writeHeader = true;
if (!empty($srtGrp)) {
foreach (array_reverse($srtGrp) as $grpName => $grpList) {
?>
Group |
Name |
Status |
';
echo "". $grpName ." | ";
echo ''. $char['name'] .' | ';
echo "". online_id_to_name($char['online']) ." | ";
echo '';
}
}
?>
'; include 'layout/overall/footer.php'; ?>