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_rulesets.php | 74 ++++++++++++++++++++++++++--------------- 1 file changed, 47 insertions(+), 27 deletions(-) (limited to 'config/snort/snort_rulesets.php') diff --git a/config/snort/snort_rulesets.php b/config/snort/snort_rulesets.php index 6d5d7332..f872fffb 100644 --- a/config/snort/snort_rulesets.php +++ b/config/snort/snort_rulesets.php @@ -28,9 +28,9 @@ POSSIBILITY OF SUCH DAMAGE. */ -require("guiconfig.inc"); -include_once("/usr/local/pkg/snort/snort.inc"); +require_once("guiconfig.inc"); require_once("/usr/local/pkg/snort/snort_gui.inc"); +require_once("/usr/local/pkg/snort/snort.inc"); if (!is_array($config['installedpackages']['snortglobal']['rule'])) { @@ -66,8 +66,8 @@ $pgtitle = "Snort: Interface $id $iface_uuid $if_real Categories"; $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 "

"; if($pfsense_stable == 'yes'){echo $pgtitle;} @@ -79,16 +79,19 @@ echo " \n \n \n \n @@ -174,13 +177,23 @@ $enabled_rulesets = $a_nat[$id]['rulesets']; if($enabled_rulesets) $enabled_rulesets_array = split("\|\|", $enabled_rulesets); -include("head.inc"); +include("/usr/local/pkg/snort/snort_head.inc"); ?> - -

+ + +' . $pgtitle . '

';}?> + + + +
+ + + "; @@ -217,17 +230,22 @@ echo "
@@ -288,7 +306,9 @@ echo " -

NOTE: You can click on a ruleset name to edit the ruleset. +

NOTE: You can click on a ruleset name to edit the ruleset.

+ + -- cgit v1.2.3
\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", true, "/snort/snort_rulesets.php?id={$id}"); - $tab_array[] = array("Rules", false, "/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"; +echo '' . "\n"; +echo '' . "\n"; +echo '' . "\n"; ?> +