Skip to content

Commit

Permalink
✅ Added ip lookup to admin panel
Browse files Browse the repository at this point in the history
  • Loading branch information
anditv21 committed Oct 23, 2023
1 parent 521093b commit 0e726dc
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/admin/users.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,9 @@
</td>
</center>
<th scope="row" class="text-center"><?php Util::display($row->uid); ?></th>
<td onclick="setClipboard('<?php Util::display($row->lastIP); ?>')" style="color: rgb(255,255,255);">
<td onclick="lookup('<?php Util::display($row->lastIP); ?>')" style="color: rgb(255,255,255);">
<?php Util::display(
"<br><p title='Click to copy' data-toggle='tooltip' data-placement='top' class='spoiler' style='maxwith: 100%;'>" .
"<br><p title='Click to lookup' data-toggle='tooltip' data-placement='top' class='spoiler' style='maxwith: 100%;'>" .
$row->lastIP .
"</p>"
); ?>
Expand Down Expand Up @@ -300,4 +300,9 @@ function setClipboard(value) {
$(document).ready(function() {
$('[data-toggle="tooltip"]').tooltip();
});

function lookup(ip)
{
window.location.replace("../user/lookup.php?ip=" + ip);
}
</script>

0 comments on commit 0e726dc

Please sign in to comment.