From bfdefef7e3d0ad8a0a6dbfa5b49a7de6a06da115 Mon Sep 17 00:00:00 2001 From: bmeeks8 Date: Sat, 19 Oct 2013 11:19:50 -0400 Subject: Add variables so file download progress bar resets --- config/snort/snort_check_for_rule_updates.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'config/snort/snort_check_for_rule_updates.php') diff --git a/config/snort/snort_check_for_rule_updates.php b/config/snort/snort_check_for_rule_updates.php index 21eb7bd2..e7263330 100755 --- a/config/snort/snort_check_for_rule_updates.php +++ b/config/snort/snort_check_for_rule_updates.php @@ -130,7 +130,13 @@ function snort_download_file_url($url, $file_out) { /* It provides logging of returned CURL errors. */ /************************************************/ - global $g, $config, $pkg_interface, $last_curl_error, $fout, $ch, $file_size, $downloaded; + global $g, $config, $pkg_interface, $last_curl_error, $fout, $ch, $file_size, $downloaded, $first_progress_update; + + // Initialize required variables for pfSense "read_body()" function + $file_size = 1; + $downloaded = 1; + $first_progress_update = TRUE; + /* Array of message strings for HTTP Response Codes */ $http_resp_msg = array( 200 => "OK", 202 => "Accepted", 204 => "No Content", 205 => "Reset Content", -- cgit v1.2.3