Skip to content

Commit

Permalink
✅ Added spoiler to invite log
Browse files Browse the repository at this point in the history
  • Loading branch information
anditv21 committed Aug 13, 2023
1 parent ee60c9b commit e176552
Showing 1 changed file with 25 additions and 20 deletions.
45 changes: 25 additions & 20 deletions src/user/log.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,26 +130,31 @@ function submitForm() {
</tr>
</thead>
<tbody>
<?php foreach ($logarray as $row) : ?>
<tr style="text-align: center;">

<td><?php Util::display(
$row->time
); ?>
</td>
<td><?php Util::display(
$row->action
); ?>
</td>
<td><?php Util::display(
$row->os
); ?>
</td>
<td><?php Util::display("<br><p onclick=\"copyToClipboard('" . $user->getlastip() . "')\" title='Click to copy' data-toggle='tooltip' data-placement='top' class='spoiler'>" . $row->ip . "</p>"); ?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
<?php foreach ($logarray as $row) : ?>
<tr style="text-align: center;">

<td><?php Util::display($row->time); ?></td>

<?php
$action = $row->action;

echo '<td>';
if (strpos($action, 'Generated an inv:') === 0) {
echo 'Generated an inv: <span class="spoiler">' . substr($action, strlen('Generated an inv:')) . '</span>';
} else {
Util::display($action);
}
echo '</td>';
?>

<td><?php Util::display($row->os); ?></td>

<td><?php Util::display("<br><p onclick=\"copyToClipboard('" . $user->getlastip() . "')\" title='Click to copy' data-toggle='tooltip' data-placement='top' class='spoiler'>" . $row->ip . "</p>"); ?>
</tr>
<?php endforeach; ?>
</tbody>


</table>
</div>
</main>
Expand Down

0 comments on commit e176552

Please sign in to comment.