the banned IP * 'reason' => why the IP was banned * 'date' => when the ban started * 'end' => when the ban will end * ) */ public function display_bans(Page $page, $bans) { global $user; $h_bans = ""; $n = 0; foreach($bans as $ban) { $end_human = date('Y-m-d', $ban['end_timestamp']); $oe = ($n++ % 2 == 0) ? "even" : "odd"; $h_bans .= " {$ban['ip']} {$ban['reason']} {$ban['banner_name']} {$end_human}
"; } $html = " Show All

$h_bans
IPReasonByUntilAction
{$user->name}
"; $page->set_title("IP Bans"); $page->set_heading("IP Bans"); $page->add_block(new NavBlock()); $page->add_block(new Block("Edit IP Bans", $html)); } } ?>