89) $loading = false; sleep(1); } if ($maxtimetowait < 90) $savemsg = gettext("The bogons database has been updated."); } } exec("/sbin/pfctl -t " . escapeshellarg($tablename) . " -T show", $entries); exec("/sbin/pfctl -sT", $tables); include("head.inc"); if ($savemsg) print_info_box($savemsg); $form = new Form('Show'); $section = new Form_Section('Table to display'); $section->addInput(new Form_Select( 'type', 'Table', $tablename, array_combine($tables, $tables) )); $form->add($section); print $form; ?>
Remove
addInput(new Form_StaticText( 'Last update', $last_updated )); $section->addInput(new Form_Button( 'Download', 'Download' ))->setHelp('Download the latest bogon data')->addClass('btn-warning'); } elseif (!empty($entries)) { $section->addInput(new Form_Button( 'deleteall', 'Clear Table' ))->setHelp('Clear all of the entries in this table')->addClass('btn-danger'); } $form->add($section); print $form; } include("foot.inc");