-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmutes.php
29 lines (23 loc) · 892 Bytes
/
mutes.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
require_once './inc/page.php';
$page = new Page("mutes");
$page->print_title();
$page->print_header();
$page->table_begin();
$rows = $page->run_query();
foreach ($rows as $row) {
$player_name = $page->get_name($row['uuid']);
if ($player_name === null) continue;
$page->print_table_rows($row, array(
"player" => $page->get_avatar($player_name, $row['uuid']),
"executor" => $page->get_avatar($page->get_banner_name($row), $row['banned_by_uuid']),
"reason" => $page->clean($row['reason']) ?: $page->t("generic.reason.default"),
"date" => $page->millis_to_date($row['time']),
"expires" => $page->expiry($row),
"server.name" => $page->server($row),
"server.origin" => $page->server($row, "server_origin"),
));
}
$page->table_end();
$page->print_pager();
$page->print_footer();