From 140efc422969d411e620174501aa292ae1345534 Mon Sep 17 00:00:00 2001 From: robiscool Date: Mon, 16 Aug 2010 16:53:15 -0700 Subject: snort, major changes, fix pid bug, add jquery lightbox, update gui --- config/snort/snort_rules.php | 66 +++++++++++++++++++++++++++++--------------- 1 file changed, 43 insertions(+), 23 deletions(-) (limited to 'config/snort/snort_rules.php') diff --git a/config/snort/snort_rules.php b/config/snort/snort_rules.php index b5fa2fb2..d61b4131 100644 --- a/config/snort/snort_rules.php +++ b/config/snort/snort_rules.php @@ -64,8 +64,8 @@ $iface_uuid = $a_nat[$id]['uuid']; $isrulesfolderempty = exec("ls -A /usr/local/etc/snort/snort_{$iface_uuid}_{$if_real}/rules/*.rules"); if ($isrulesfolderempty == "") { -include("head.inc"); -include("./snort_fbegin.inc"); +include("/usr/local/pkg/snort/snort_head.inc"); +include("fbegin.inc"); echo ""; @@ -75,15 +75,18 @@ echo "\n \n \n"; - $tab_array = array(); - $tab_array[] = array("Snort Interfaces", false, "/snort/snort_interfaces.php"); - $tab_array[] = array("If Settings", false, "/snort/snort_interfaces_edit.php?id={$id}"); - $tab_array[] = array("Categories", false, "/snort/snort_rulesets.php?id={$id}"); - $tab_array[] = array("Rules", true, "/snort/snort_rules.php?id={$id}"); - $tab_array[] = array("Servers", false, "/snort/snort_define_servers.php?id={$id}"); - $tab_array[] = array("Preprocessors", false, "/snort/snort_preprocessors.php?id={$id}"); - $tab_array[] = array("Barnyard2", false, "/snort/snort_barnyard.php?id={$id}"); - display_top_tabs($tab_array); +echo '
' . "\n"; +echo '' . "\n"; +echo '' . "\n"; +echo '
' . "\n"; echo "\n \n @@ -405,15 +408,25 @@ $currentruleset = basename($rulefile); $ifname = strtoupper($pconfig['interface']); require("guiconfig.inc"); -include("head.inc"); +include("/usr/local/pkg/snort/snort_head.inc"); $pgtitle = "Snort: $id $iface_uuid $if_real Category: $currentruleset"; ?> - -

+ + +' . $pgtitle . '

';}?> + + + +
+ + + "; @@ -459,17 +472,22 @@ function popup(url) @@ -682,6 +700,8 @@ function popup(url)
+ ' . "\n"; +echo '' . "\n"; +echo '' . "\n"; +echo '' . "\n"; ?> +
+
+ -- cgit v1.2.3