aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort-dev/snort.inc
diff options
context:
space:
mode:
authorunknown <rob@.(none)>2010-03-06 16:09:11 -0800
committerunknown <rob@.(none)>2010-03-06 16:52:37 -0800
commit330a0f8fadf1a0882df8ddc678d072bac6ae3472 (patch)
treea2653b47dbfc4e85674723480d8c80c57f032e30 /config/snort-dev/snort.inc
parentb994fc5f7ad9b928f56e2ab0dcadc937fa8e237e (diff)
downloadpfsense-packages-330a0f8fadf1a0882df8ddc678d072bac6ae3472.tar.gz
pfsense-packages-330a0f8fadf1a0882df8ddc678d072bac6ae3472.tar.bz2
pfsense-packages-330a0f8fadf1a0882df8ddc678d072bac6ae3472.zip
snort-dev, fix SNORT GUI for all modern browsers, start adding auto detect code based on pfsense version.
Diffstat (limited to 'config/snort-dev/snort.inc')
-rw-r--r--config/snort-dev/snort.inc20
1 files changed, 19 insertions, 1 deletions
diff --git a/config/snort-dev/snort.inc b/config/snort-dev/snort.inc
index 76a1e855..5c99f62a 100644
--- a/config/snort-dev/snort.inc
+++ b/config/snort-dev/snort.inc
@@ -34,6 +34,16 @@ require_once("pfsense-utils.inc");
// Needed on 2.0 because of filter_get_vpns_list()
require_once("filter.inc");
+/* find out if were in 1.2.3-RELEASE */
+
+$pfsense_ver_chk = exec('/bin/cat /etc/version');
+if ($pfsense_ver_chk == '1.2.3-RELEASE')
+{
+ $pfsense_stable = 'yes';
+}else{
+ $pfsense_stable = 'no';
+}
+
/* Get id and realinterfaces */
$id = $_GET['id'];
@@ -1173,7 +1183,15 @@ else
/* grab a list of vpns and whitelist if user desires added by nestorfish 954 */
if($whitelistvpns) {
- $vpns_list = filter_get_vpns_list();
+ if ($pfsense_stable == 'yes') // chk what pfsense version were on
+ {
+ $vpns_list = get_vpns_list();
+ }
+ if ($pfsense_stable == 'no') // chk what pfsense version were on
+ {
+ $vpns_list = filter_get_vpns_list();
+ }
+
$whitelist_vpns = split(" ", $vpns_list);
foreach($whitelist_vpns as $wl)
if(trim($wl))