MODERN ACC
Good evening, I have this PHP from staff:
I would like to LOG equal these from the image:
Can someone help me?
Good evening, I have this PHP from staff:
PHP:
<div class='message'>
<div class='title'>Suporte Online</div>
<div class='content'>
<?PHP
$ots = POT::getInstance();
$ots->connect(POT::DB_MYSQL, connection());
$SQL = POT::getInstance()->getDBHandle();
include ('config.php');
//Ranks
$rank[6]="ADM";
$rank[5]="CM";
$rank[4]="Game Master";
$rank[3]="Senior Tutor";
$rank[2]="Tutor";
$query = $SQL->query("SELECT group_id,name FROM players WHERE group_id > 1 ORDER BY group_id DESC");
echo '
<table width="100%">
<tbody>
<tr><td><b>Rank</b></td><td width="60%"><b>Name</b></td><td><b>Status</b></td></tr>';
$aaa = 0;
foreach($query as $info)
{
$player = $ots->createObject('Player');
$player->find($info['name']);
$showRank = $rank[ $info['group_id'] ];
echo '<tr>
<td>'.$showRank.'</td>
<td width="60%"><a href="/index.php/character/view/'.$info['name'].'">'.$info['name'].'</a></td>
<td><font color="';
echo ($player->isOnline()) ? 'green' : 'red';
echo '">';
echo ($player->isOnline()) ? 'Online' : 'Offline';
echo '</font></td>
</tr>';
$aaa++;
}
echo '</tbody>
</table>';
?>
</div></div>
I would like to LOG equal these from the image:
Can someone help me?