addInput(new Form_Input( 'filter', 'Filter expression', 'text', $_POST['filter'], ['placeholder' => 'Simple filter such as 192.168, v6, icmp or ESTABLISHED'] )); $filterbtn = new Form_Button('filterbtn', 'Filter', null); $filterbtn->removeClass('btn-primary')->addClass('btn-default btn-sm'); $section->addInput(new Form_StaticText( '', $filterbtn )); if (isset($_POST['filter']) && (is_ipaddr($_POST['filter']) || is_subnet($_POST['filter']))) { $killbtn = new Form_Button('killfilter', 'Kill States'); $killbtn->removeClass('btn-primary')->addClass('btn-danger btn-sm'); $section->addInput(new Form_StaticText( 'Kill filtered states', $killbtn ))->setHelp('Remove all states to and from the filtered address'); } $form->add($section); print $form; ?>
=gettext("Int")?> | =gettext("Proto")?> | =gettext("Source -> Router -> Destination")?> | =gettext("State")?> | |
---|---|---|---|---|
= $iface ?> | = $proto ?> | = $info ?> | = $state ?> | Remove |