2020-01-26 13:19:35 +00:00
|
|
|
<?php declare(strict_types=1);
|
2007-06-30 01:19:11 +00:00
|
|
|
|
2019-05-28 17:59:38 +01:00
|
|
|
class IPBanTheme extends Themelet
|
|
|
|
{
|
2019-11-24 15:59:14 +00:00
|
|
|
public function display_bans(Page $page, $table, $paginator)
|
2019-05-28 17:59:38 +01:00
|
|
|
{
|
|
|
|
$html = "
|
2019-11-24 13:24:42 +00:00
|
|
|
<a href='".make_link("ip_ban/list", "r__size=1000000")."'>Show All Active</a> /
|
|
|
|
<a href='".make_link("ip_ban/list", "r_all=on&r__size=1000000")."'>Show EVERYTHING</a>
|
2019-11-24 15:59:14 +00:00
|
|
|
|
|
|
|
$table
|
|
|
|
|
|
|
|
$paginator
|
2007-06-30 01:19:11 +00:00
|
|
|
";
|
2019-05-28 17:59:38 +01:00
|
|
|
$page->set_title("IP Bans");
|
|
|
|
$page->set_heading("IP Bans");
|
|
|
|
$page->add_block(new NavBlock());
|
|
|
|
$page->add_block(new Block("Edit IP Bans", $html));
|
|
|
|
}
|
2007-06-30 01:19:11 +00:00
|
|
|
}
|