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 $database, $user; $h_bans = ""; $prefix = ($database->get_driver_name() == DatabaseDriver::SQLITE ? "bans." : ""); foreach ($bans as $ban) { $h_bans .= "
IP | Reason | By | From | Until | Type | Action |
---|---|---|---|---|---|---|
{$user->name} | {$today} | block |