diff options
author | robiscool <robrob2626@yahoo.com> | 2009-11-18 02:02:40 -0800 |
---|---|---|
committer | robiscool <robrob2626@yahoo.com> | 2009-11-18 02:02:40 -0800 |
commit | c2c025d9879f4dfd48bc744cf731f1dd671121e0 (patch) | |
tree | 97a95e0a37b6b73f3b83d34b686e80f461244064 /config/snort-dev/snort_define_servers.php | |
parent | 0b5df72ea1ccb50d917ba7c3e3e41bb0ef6037d6 (diff) | |
download | pfsense-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_define_servers.php')
-rw-r--r-- | config/snort-dev/snort_define_servers.php | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/config/snort-dev/snort_define_servers.php b/config/snort-dev/snort_define_servers.php index 243e106f..812d379b 100644 --- a/config/snort-dev/snort_define_servers.php +++ b/config/snort-dev/snort_define_servers.php @@ -109,6 +109,9 @@ if (isset($_GET['dup'])) unset($id); } +/* convert fake interfaces to real */ +$if_real = convert_friendly_interface_to_real_interface_name($pconfig['interface']); + if ($_POST) { /* check for overlaps */ @@ -186,7 +189,7 @@ if ($_POST) { } } -$pgtitle = "Services: Snort Define Servers"; +$pgtitle = "Snort: Interface $id$if_real Define Servers"; include("head.inc"); ?> @@ -221,15 +224,14 @@ if($id != "") { $tab_array = array(); - $tab_array[] = array("Snort Interfaces", false, "/snort_interfaces.php"); - $tab_array[] = array("If Settings", false, "/snort/snort_interfaces_edit.php?id=$id"); - $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", true, "/snort/snort_define_servers.php?id=$id"); - $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", false, "/snort/snort_barnyard.php?id=$id"); - display_top_tabs($tab_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", false, "/snort/snort_rules.php?id={$id}"); + $tab_array[] = array("Servers", true, "/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); } ?> |