aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort-dev/snort_barnyard.php
diff options
context:
space:
mode:
authorrobiscool <robrob2626@yahoo.com>2009-11-18 02:02:40 -0800
committerrobiscool <robrob2626@yahoo.com>2009-11-18 02:02:40 -0800
commitc2c025d9879f4dfd48bc744cf731f1dd671121e0 (patch)
tree97a95e0a37b6b73f3b83d34b686e80f461244064 /config/snort-dev/snort_barnyard.php
parent0b5df72ea1ccb50d917ba7c3e3e41bb0ef6037d6 (diff)
downloadpfsense-packages-c2c025d9879f4dfd48bc744cf731f1dd671121e0.tar.gz
pfsense-packages-c2c025d9879f4dfd48bc744cf731f1dd671121e0.tar.bz2
pfsense-packages-c2c025d9879f4dfd48bc744cf731f1dd671121e0.zip
snort-dev, point tabs in the right direction
Diffstat (limited to 'config/snort-dev/snort_barnyard.php')
-rw-r--r--config/snort-dev/snort_barnyard.php19
1 files changed, 10 insertions, 9 deletions
diff --git a/config/snort-dev/snort_barnyard.php b/config/snort-dev/snort_barnyard.php
index d703b5dc..cfe4e77d 100644
--- a/config/snort-dev/snort_barnyard.php
+++ b/config/snort-dev/snort_barnyard.php
@@ -80,6 +80,8 @@ if (isset($id) && $a_nat[$id]) {
if (isset($_GET['dup']))
unset($id);
+
+$if_real = convert_friendly_interface_to_real_interface_name($pconfig['interface']);
if ($_POST) {
@@ -129,7 +131,7 @@ if ($_POST) {
}
}
-$pgtitle = "Services: Snort Barnyard2 Edit";
+$pgtitle = "Snort: Interface: $id$if_real Barnyard2 Edit";
include("head.inc");
?>
@@ -184,14 +186,13 @@ if($id != "")
{
$tab_array = array();
- $tab_array[] = array("Snort Interfaces", false, "/snort_interfaces.php");
- $tab_array[] = array("If Settings", false, "/snort_interfaces_edit.php");
- $tab_array[] = array("Categories", false, "/snort/snort_{$snortIf}_{$id}/snort_rulesets_{$snortIf}_{$id}.php");
- $tab_array[] = array("Rules", false, "/snort/snort_{$snortIf}_{$id}/snort_rules_{$snortIf}_{$id}.php");
- $tab_array[] = array("Servers", false, "/pkg_edit.php?xml=snort/snort_{$snortIf}_{$id}/snort_define_servers_{$snortIf}_{$id}.xml&amp;id=0");
- $tab_array[] = array("Barnyard2", false, "/pkg_edit.php?xml=snort/snort_{$snortIf}_{$id}/snort_barnyard2_{$snortIf}_{$id}.xml&id=0");
- $tab_array[] = array("Barnyard2", false, "/pkg_edit.php?xml=snort/snort_{$snortIf}_{$id}/snort_barnyard2_{$snortIf}_{$id}.xml&id=0");
- $tab_array[] = array("Barnyard2", true, "/pkg_edit.php?xml=snort/snort_{$snortIf}_{$id}/snort_barnyard2_{$snortIf}_{$id}.xml&id=0");
+ $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", 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", true, "/snort/snort_barnyard.php?id={$id}");
display_top_tabs($tab_array);
}