mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
39 lines
759 B
Smarty
39 lines
759 B
Smarty
<?php
|
|
$id = (int) $_GET['uid'];
|
|
if(isset($id))
|
|
{
|
|
?>
|
|
<table cellpadding="1" cellspacing="1" id="member">
|
|
<thead>
|
|
<tr>
|
|
<th colspan="10"><a href="admin.php?p=player&uid=<?php echo $player['id']; ?>"><?php echo $player['username']; ?></a>'s Illegals Log</th>
|
|
</tr>
|
|
<tr>
|
|
<td>Offence</td>
|
|
<td>ID</td>
|
|
<td>Description</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
$sql = "SELECT * FROM ".TB_PREFIX."illegal_log WHERE user = $id";
|
|
$result = mysqli_query($GLOBALS["link"], $sql);
|
|
while($row = mysqli_fetch_assoc($result))
|
|
{
|
|
$i++;
|
|
echo '
|
|
<tr>
|
|
<td>'.$i.'</td>
|
|
<td>'.$row['id'].'</td>
|
|
<td>'.$row['log'].'</td>
|
|
</tr>';
|
|
}
|
|
?>
|
|
</tbody>
|
|
</table><?php
|
|
}
|
|
else
|
|
{
|
|
include("404.tpl");
|
|
}
|
|
?> |