forked from Yive/maxbans-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mutes.php
29 lines (22 loc) · 819 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->print_check_form();
$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(
$page->lang->mutes_player => $page->get_avatar($player_name, $row['uuid']),
$page->lang->mutes_by => $page->get_avatar($page->get_banner_name($row), $row['banned_by_uuid']),
$page->lang->mutes_reason => $page->clean($row['reason']),
$page->lang->mutes_when => $page->millis_to_date($row['time']),
$page->lang->mutes_expiry => $page->expiry($row),
));
}
$page->table_end();
$page->print_pager();
$page->print_footer();