aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort/snort_download_rules.php
diff options
context:
space:
mode:
authorrobiscool <robrob2626@yahoo.com>2009-06-08 17:29:01 -0700
committerrobiscool <robrob2626@yahoo.com>2009-06-08 17:29:45 -0700
commit8cf631a6315b426ebb6622fefe7367bdc6172398 (patch)
tree51cf283de4172487c20e283e23b50a2134e160df /config/snort/snort_download_rules.php
parent673116693e33f1c3310b9049ede392cacdeb6ad9 (diff)
downloadpfsense-packages-8cf631a6315b426ebb6622fefe7367bdc6172398.tar.gz
pfsense-packages-8cf631a6315b426ebb6622fefe7367bdc6172398.tar.bz2
pfsense-packages-8cf631a6315b426ebb6622fefe7367bdc6172398.zip
upadted and refined snort.conf, snort.xml upadte pkg version, snort_download_rules.php tmp remove md5 checksum, pkg_config7.xml updated snort pkg version
Diffstat (limited to 'config/snort/snort_download_rules.php')
-rw-r--r--config/snort/snort_download_rules.php50
1 files changed, 25 insertions, 25 deletions
diff --git a/config/snort/snort_download_rules.php b/config/snort/snort_download_rules.php
index 4bfaa87d..dbbc727e 100644
--- a/config/snort/snort_download_rules.php
+++ b/config/snort/snort_download_rules.php
@@ -244,31 +244,31 @@ if (file_exists("{$tmpfname}/{$snort_filename}")) {
/* Compair md5 sig to file sig */
-$premium_url_chk = $config['installedpackages']['snort']['config'][0]['subscriber'];
-if ($premium_url_chk == on) {
-$md5 = file_get_contents("{$tmpfname}/{$snort_filename_md5}");
-$file_md5_ondisk = `/sbin/md5 {$tmpfname}/{$snort_filename} | /usr/bin/awk '{ print $4 }'`;
- if ($md5 == $file_md5_ondisk) {
- update_status(gettext("Valid md5 checksum pass..."));
-} else {
- update_status(gettext("The downloaded file does not match the md5 file...P is ON"));
- update_output_window(gettext("Error md5 Mismatch..."));
- exit(0);
- }
-}
-
-$premium_url_chk = $config['installedpackages']['snort']['config'][0]['subscriber'];
-if ($premium_url_chk != on) {
-$md55 = `/bin/cat {$tmpfname}/{$snort_filename_md5} | /usr/bin/awk '{ print $4 }'`;
-$file_md5_ondisk2 = `/sbin/md5 {$tmpfname}/{$snort_filename} | /usr/bin/awk '{ print $4 }'`;
- if ($md55 == $file_md5_ondisk2) {
- update_status(gettext("Valid md5 checksum pass..."));
-} else {
- update_status(gettext("The downloaded file does not match the md5 file...Not P"));
- update_output_window(gettext("Error md5 Mismatch..."));
- exit(0);
- }
-}
+//$premium_url_chk = $config['installedpackages']['snort']['config'][0]['subscriber'];
+//if ($premium_url_chk == on) {
+//$md5 = file_get_contents("{$tmpfname}/{$snort_filename_md5}");
+//$file_md5_ondisk = `/sbin/md5 {$tmpfname}/{$snort_filename} | /usr/bin/awk '{ print $4 }'`;
+// if ($md5 == $file_md5_ondisk) {
+// update_status(gettext("Valid md5 checksum pass..."));
+//} else {
+// update_status(gettext("The downloaded file does not match the md5 file...P is ON"));
+// update_output_window(gettext("Error md5 Mismatch..."));
+// exit(0);
+// }
+//}
+
+//$premium_url_chk = $config['installedpackages']['snort']['config'][0]['subscriber'];
+//if ($premium_url_chk != on) {
+//$md55 = `/bin/cat {$tmpfname}/{$snort_filename_md5} | /usr/bin/awk '{ print $4 }'`;
+//$file_md5_ondisk2 = `/sbin/md5 {$tmpfname}/{$snort_filename} | /usr/bin/awk '{ print $4 }'`;
+// if ($md55 == $file_md5_ondisk2) {
+// update_status(gettext("Valid md5 checksum pass..."));
+//} else {
+// update_status(gettext("The downloaded file does not match the md5 file...Not P"));
+// update_output_window(gettext("Error md5 Mismatch..."));
+// exit(0);
+// }
+//}
/* Untar snort rules file individually to help people with low system specs */
if (file_exists("{$tmpfname}/$snort_filename")) {