$value) { if ($value['suppresslistname'] == $supplist) return $rule; } return false; } if ($_GET['act'] == "del") { if ($a_suppress[$_GET['id']]) { // make sure list is not being referenced by any Suricata-configured interface if (suricata_suppresslist_used($a_suppress[$_GET['id']]['name'])) { $input_errors[] = gettext("ERROR -- Suppress List is currently assigned to an interface and cannot be removed!"); } else { unset($a_suppress[$_GET['id']]); write_config(); header("Location: /suricata/suricata_suppress.php"); exit; } } } $pgtitle = gettext("Suricata: Suppression Lists"); include_once("head.inc"); ?>
' . $pgtitle . '';} if ($input_errors) { print_input_errors($input_errors); } ?>