From 165f7370b89857b4db89eb2d873fa120791bd8cf Mon Sep 17 00:00:00 2001 From: Ermal Date: Tue, 2 Aug 2011 15:59:36 +0000 Subject: Polishing of the snort pacakge, part 2: * Get rid of snort_head.inc * No more apply settings button since it does not make sense * Other cleanups in many parts of the code Tested only on 2.0 --- config/snort/snort_download_updates.php | 112 +++++++------------------------- 1 file changed, 24 insertions(+), 88 deletions(-) (limited to 'config/snort/snort_download_updates.php') diff --git a/config/snort/snort_download_updates.php b/config/snort/snort_download_updates.php index 5fc915c0..982a2f72 100644 --- a/config/snort/snort_download_updates.php +++ b/config/snort/snort_download_updates.php @@ -105,23 +105,11 @@ header( "Pragma: no-cache" ); $pgtitle = "Services: Snort: Updates"; -include_once("/usr/local/pkg/snort/snort_head.inc"); +include_once("head.inc"); ?> - - - + -
-
- ' . $pgtitle . '

';}?> - - - - - - - - - + +
- - - -
- - - -
+ +
UPDATE YOUR RULES

- Update Rules    
+

- WARNING:  No rule types have been selected for download. "Global Settings Tab"
- '; + WARNING:  No rule types have been selected for download. "Global Settings Tab"
'; if ($mfolder_chk == 'empty') { echo ' - WARNING:  The main rules directory is empty. /usr/local/etc/snort/rules - ' . "\n"; + WARNING:  The main rules directory is empty. /usr/local/etc/snort/rules' ."\n"; } echo '

' . "\n"; @@ -271,17 +228,14 @@ enable JavaScript to view this content echo ' - - - ' . "\n"; +
' . "\n"; if ($mfolder_chk == 'empty') { echo '

WARNING:  The main rules directory is empty. /usr/local/etc/snort/rules -

- '; +

'; } } @@ -378,25 +332,7 @@ enable JavaScript to view this content
- - - - - - - - - - - + -- cgit v1.2.3