diff options
author | robiscool <robrob2626@yahoo.com> | 2009-11-30 23:24:13 -0800 |
---|---|---|
committer | robiscool <robrob2626@yahoo.com> | 2009-11-30 23:24:13 -0800 |
commit | 121a4e5af35799f63a9e5e36b45492f6996cff21 (patch) | |
tree | 8ede4eee6c559e2ebbc34617b283b2ec9d471a96 /config/snort-dev/snort_interfaces.php | |
parent | 84f9461274f2d25c1e0a4da0557158a6bb36d817 (diff) | |
download | pfsense-packages-121a4e5af35799f63a9e5e36b45492f6996cff21.tar.gz pfsense-packages-121a4e5af35799f63a9e5e36b45492f6996cff21.tar.bz2 pfsense-packages-121a4e5af35799f63a9e5e36b45492f6996cff21.zip |
snort-dev, main gui update, remove example files
Diffstat (limited to 'config/snort-dev/snort_interfaces.php')
-rw-r--r-- | config/snort-dev/snort_interfaces.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/config/snort-dev/snort_interfaces.php b/config/snort-dev/snort_interfaces.php index 877d6e6c..974e2673 100644 --- a/config/snort-dev/snort_interfaces.php +++ b/config/snort-dev/snort_interfaces.php @@ -31,6 +31,7 @@ require("guiconfig.inc"); require("/usr/local/pkg/snort/snort_gui.inc"); +include_once("/usr/local/pkg/snort/snort.inc"); $id = $_GET['id']; if (isset($_POST['id'])) @@ -153,12 +154,15 @@ if ($_GET['act'] == "toggle" && $_GET['id'] != "") { $snort_pid2 = exec("/bin/ps -auwx | grep -v grep | grep \"$if_real2 -c\" | awk '{print $2;}'"); if ($snort_pid2 != "") { exec("/bin/sh /usr/local/etc/rc.d/snort_{$id}{$if_real2}.sh stop"); + header("Location: snort_interfaces.php"); }else{ + sync_package_snort(); exec("/bin/sh /usr/local/etc/rc.d/snort_{$id}{$if_real2}.sh start"); + header("Location: snort_interfaces.php"); } } -$pgtitle = "Services: Snort 2.8.4.1_5 pkg v. 1.8 alpha"; +$pgtitle = "Services: Snort 2.8.4.1_5 pkg v. 1.8 beta"; include("head.inc"); ?> |