forked from Yive/maxbans-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bans.php
29 lines (22 loc) · 813 Bytes
/
bans.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("bans");
$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->bans_player => $page->get_avatar($player_name, $row['uuid']),
$page->lang->bans_by => $page->get_avatar($page->get_banner_name($row), $row['banned_by_uuid']),
$page->lang->bans_reason => $page->clean($row['reason']),
$page->lang->bans_when => $page->millis_to_date($row['time']),
$page->lang->bans_expiry => $page->expiry($row),
));
}
$page->table_end();
$page->print_pager();
$page->print_footer();