From 55eddd7accf2c5f9b0f52b22a010c4c4b7c130d1 Mon Sep 17 00:00:00 2001 From: Bill Marquette Date: Fri, 6 Feb 2009 19:18:00 -0600 Subject: mv packages to config dir to match web layout --- config/snort/snort_download_rules.php | 240 ++++++++++++++++++++++++++++++++++ 1 file changed, 240 insertions(+) create mode 100644 config/snort/snort_download_rules.php (limited to 'config/snort/snort_download_rules.php') diff --git a/config/snort/snort_download_rules.php b/config/snort/snort_download_rules.php new file mode 100644 index 00000000..6326a5fe --- /dev/null +++ b/config/snort/snort_download_rules.php @@ -0,0 +1,240 @@ + + + + + + +

+ +
+
+ + + + + +\n"; + echo "\n"; + } else { + /* get time stamps for comparison operations */ + $date1ts = strtotime($last_update_date); + $date2ts = strtotime($last_ruleset_download); + /* is there a newer ruleset available? */ + if($date1ts > $date2ts or !$last_ruleset_download) + echo "\n"; + else + echo "\n"; + } + echo "\n"; + echo " \n"; + echo "
+ +
\n"; + echo "
\n"; + echo "\n"; + echo "\n"; + echo "\n"; + if($last_ruleset_download) + echo "\n"; + else + echo "\n"; + echo "
\n"; + $last_ruleset_download = $config['installedpackages']['snort']['last_ruleset_download']; + echo "
\n"; + echo " Getting release information from snort.org...\n"; + echo "
\n"; + ob_flush(); + sleep(1); + ini_set('user_agent','Mozilla/4.0 (compatible; MSIE 6.0)'); + $text = file_get_contents("http://www.snort.org/pub-bin/downloads.cgi"); + echo "\n"; + if (preg_match_all("/.*RELEASED\: (.*)\\n"; + if($last_update_date) + echo "
Last snort.org rule update:{$last_update_date}
You last updated the ruleset:{$last_ruleset_download}
You last updated the ruleset:NEVER
"; + if(!$oinkid) { + echo "
You must obtain an oinkid from snort.org and set its value in the Snort settings tab in order to start the download process.
Press here to start download.
Your snort rulesets are up to date.
\n"; + echo " \n"; + echo "\n"; + echo "\n"; + echo "\n"; + include("fend.inc"); + exit; + } +?> + + +
+ + + + +
+ + + + + +
+ /images/misc/progress_bar.gif' width='280' height='23' name='progressbar' id='progressbar' alt='' /> +
+
+ + + + +
+
+ + + +
+ + + + + + + + + \ No newline at end of file -- cgit v1.2.3