id}'>"; $html .= ""; $html .= "
"; $html .= "\n"; $page->add_block(new Block("Rule34 Comic Options", $html)); } public function display_bans(Page $page, $bans) { global $database, $user; $h_bans = ""; $prefix = ($database->get_driver_name() == "sqlite" ? "bans." : ""); foreach($bans as $ban) { $h_bans .= " {$ban[$prefix.'ip']} {$ban[$prefix.'reason']} {$ban['banner_name']} ".substr($ban[$prefix.'time_start'], 0, 10)." ".substr($ban[$prefix.'time_end'], 0, 10)." "; } $html = " Show All

$h_bans
IPReasonByFromUntil
"; $page->set_title("IP Bans"); $page->set_heading("IP Bans"); $page->add_block(new NavBlock()); $page->add_block(new Block("Edit IP Bans", $html)); } }