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, 'success'); } if ($tablename == "webConfiguratorlockout") { $displayname = gettext("webConfigurator Lockout Table"); } else { $displayname = sprintf(gettext("%s Table"), ucfirst($tablename)); } $form = new Form(false); $section = new Form_Section('Table to Display'); $group = new Form_Group("Table"); $group->add(new Form_Select( 'type', null, $tablename, array_combine($tables, $tables) )); if ($bogons || !empty($entries)) { if ($bogons) { $group->add(new Form_Button( 'Download', 'Update' ))->removeClass('btn-primary')->addClass('btn-success btn-sm'); } elseif (!empty($entries)) { $group->add(new Form_Button( 'clearall', 'Clear Table' ))->removeClass('btn-primary')->addClass('btn-danger btn-sm'); } } $section->add($group); $form->add($section); print $form; if ($bogons || !empty($entries)) { ?>
=gettext("IP Address")?> | |
---|---|
=$entry?> | =gettext("Remove")?> |