Pass List name to test * * * * Returns: TRUE if Pass List is in use or * * FALSE if not in use * **********************************************/ global $config; if (!is_array($config['installedpackages']['suricata']['rule'])) return FALSE; foreach($config['installedpackages']['suricata']['rule'] as $v) { if (isset($v['passlistname']) && $v['passlistname'] == $list) return TRUE; } return FALSE; } if ($_POST['del'] && is_numericint($_POST['list_id'])) { if ($a_passlist[$_POST['list_id']]) { /* make sure list is not being referenced by any interface */ if (suricata_is_passlist_used($a_passlist[$_POST['list_id']]['name'])) { $input_errors[] = gettext("This Pass List is currently assigned to a Suricata interface and cannot be deleted. Unassign it from all Suricata interfaces first."); } if (!$input_errors) { unset($a_passlist[$_POST['list_id']]); write_config("Suricata pkg: deleted PASS LIST."); sync_suricata_package_config(); header("Location: /suricata/suricata_passlist.php"); exit; } } } $pgtitle = gettext("Suricata: Pass Lists"); include_once("head.inc"); ?>
$list): ?>
List Name Assigned Alias Description
 
"> ');" src="/themes//images/icons/icon_x.gif" width="17" height="17" border="0" title=""/>
  "/>