From 3576806af6e71a778efc011c5c1b0ce714398a7f Mon Sep 17 00:00:00 2001 From: Ermal Date: Mon, 9 Jul 2012 16:59:26 +0000 Subject: Remove all snort layout customizations since they cause issues allover and remove all unneeded files anymore. --- config/snort/snort_rules.php | 131 +++++++++++++++++-------------------------- 1 file changed, 50 insertions(+), 81 deletions(-) (limited to 'config/snort/snort_rules.php') diff --git a/config/snort/snort_rules.php b/config/snort/snort_rules.php index c4e149b3..75f6c467 100644 --- a/config/snort/snort_rules.php +++ b/config/snort/snort_rules.php @@ -30,7 +30,6 @@ require_once("guiconfig.inc"); -require_once("/usr/local/pkg/snort/snort_gui.inc"); require_once("/usr/local/pkg/snort/snort.inc"); global $g; @@ -78,20 +77,13 @@ if ($isrulesfolderempty == "") { \n"; $tab_array = array(); - $tabid = 0; - $tab_array[$tabid] = array(gettext("Snort Interfaces"), false, "/snort/snort_interfaces.php"); - $tabid++; - $tab_array[$tabid] = array(gettext("If Settings"), false, "/snort/snort_interfaces_edit.php?id={$id}"); - $tabid++; - $tab_array[$tabid] = array(gettext("Categories"), false, "/snort/snort_rulesets.php?id={$id}"); - $tabid++; - $tab_array[$tabid] = array(gettext("Rules"), true, "/snort/snort_rules.php?id={$id}"); - $tabid++; - $tab_array[$tabid] = array(gettext("Servers"), false, "/snort/snort_define_servers.php?id={$id}"); - $tabid++; - $tab_array[$tabid] = array(gettext("Preprocessors"), false, "/snort/snort_preprocessors.php?id={$id}"); - $tabid++; - $tab_array[$tabid] = array(gettext("Barnyard2"), false, "/snort/snort_barnyard.php?id={$id}"); + $tab_array[] = array(gettext("Snort Interfaces"), false, "/snort/snort_interfaces.php"); + $tab_array[] = array(gettext("If Settings"), false, "/snort/snort_interfaces_edit.php?id={$id}"); + $tab_array[] = array(gettext("Categories"), false, "/snort/snort_rulesets.php?id={$id}"); + $tab_array[] = array(gettext("Rules"), true, "/snort/snort_rules.php?id={$id}"); + $tab_array[] = array(gettext("Servers"), false, "/snort/snort_define_servers.php?id={$id}"); + $tab_array[] = array(gettext("Preprocessors"), false, "/snort/snort_preprocessors.php?id={$id}"); + $tab_array[] = array(gettext("Barnyard2"), false, "/snort/snort_barnyard.php?id={$id}"); display_top_tabs($tab_array); echo "\n \n @@ -229,8 +221,6 @@ $pgtitle = "Snort: $id $iface_uuid $if_real Category: $currentruleset"; ' . $pgtitle . '

';} - -echo "{$snort_general_css}\n"; ?>
@@ -259,30 +249,23 @@ function popup(url) -
- +
- + + - - + + - + + $value ) @@ -351,54 +337,36 @@ function popup(url) else if (strstr($value, 'msg:"')) $message = get_middle($value, 'msg:"', '";', 0); - echo " - - - - - - + "; - ?> - + + @@ -417,12 +386,12 @@ function popup(url) - -
-
Category: +
  +
Category: +
 
 SIDProtoSIDProto Source Port Destination PortMessageMessage 
$textss\n"; - ?> - - - - - - $textss - $sid + echo "
$textss + + $textse - $textss - $protocol"; - echo "$textse + + $textss $sid $textse - $textss - $source - $textse + + $textss $protocol $textse - $textss - $source_port - $textse + + $textss $source $textse - $textss - $destination - $textse + + $textss $source_port $textse - $textss - $destination_port - $textse + + $textss $destination $textse - $textss - $message - $textse + + $textss $destination_port $textse + + $textss $message $textse + ?> +
-
+ There are {$counter} rules in this category.

"; ?>
+