diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-09-27 16:18:45 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-09-27 16:18:45 +0000 |
commit | 522764c2df64b4a482a708cc77cd6df13aba40f2 (patch) | |
tree | e61caf832311a163e9cc7642c55ae1a7db2057be /packages/snort | |
parent | 923c85cad9bf096f5d6bcc07a4a18f8e5032dcf5 (diff) | |
download | pfsense-packages-522764c2df64b4a482a708cc77cd6df13aba40f2.tar.gz pfsense-packages-522764c2df64b4a482a708cc77cd6df13aba40f2.tar.bz2 pfsense-packages-522764c2df64b4a482a708cc77cd6df13aba40f2.zip |
* Gracefully handle initial installation better by redirecting to the rules update page if no rules have been downloaded.
* Include squid.inc for common functions
Diffstat (limited to 'packages/snort')
-rw-r--r-- | packages/snort/snort_download_rules.php | 4 | ||||
-rw-r--r-- | packages/snort/snort_rulesets.php | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/packages/snort/snort_download_rules.php b/packages/snort/snort_download_rules.php index 774434c9..c1126400 100644 --- a/packages/snort/snort_download_rules.php +++ b/packages/snort/snort_download_rules.php @@ -34,6 +34,7 @@ if(!$start_me_up) { require_once("functions.inc"); require_once("guiconfig.inc"); require_once("service-utils.inc"); + require("/usr/local/pkg/snort.inc"); } $pgtitle = "Services: Snort: Update Rules"; @@ -47,6 +48,9 @@ if($_GET['start'] or $_POST['start']) else $start_me_up = false; +if(!is_dir("/usr/local/etc/snort/rules")) + $start_me_up = true; + include("head.inc"); ?> diff --git a/packages/snort/snort_rulesets.php b/packages/snort/snort_rulesets.php index 5ca19c7d..acb2da00 100644 --- a/packages/snort/snort_rulesets.php +++ b/packages/snort/snort_rulesets.php @@ -27,6 +27,9 @@ POSSIBILITY OF SUCH DAMAGE. */ +if(!is_dir("/usr/local/etc/snort/rules")) + Header("Location: snort_download_rules.php"); + require("guiconfig.inc"); require_once("service-utils.inc"); require("/usr/local/pkg/snort.inc"); |