From f834c579096563f476ee179e1a6225df59bcc6e1 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 6 Oct 2008 23:41:37 +0000 Subject: Set filter loading status during backup operations --- packages/autoconfigbackup/upload_config_filter.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/autoconfigbackup/upload_config_filter.php b/packages/autoconfigbackup/upload_config_filter.php index 3433dd85..83c3040b 100644 --- a/packages/autoconfigbackup/upload_config_filter.php +++ b/packages/autoconfigbackup/upload_config_filter.php @@ -32,6 +32,7 @@ if($last_backup_date <> $last_config_change) { config_lock(); log_error("Beginning portal.pfsense.org configuration backup."); + update_filter_reload_status("Beginning portal.pfsense.org configuration backup."); // Encrypt config.xml $data = file_get_contents("/cf/conf/config.xml"); @@ -75,8 +76,10 @@ if($last_backup_date <> $last_config_change) { if(!strstr($data, "500")) { log_error("An error occured while uploading your pfSense configuration to portal.pfsense.org ($data)"); file_notice("autoconfigurationbackup", "An error occured while uploading your pfSense configuration to portal.pfsense.org", $data, ""); + update_filter_reload_status("An error occured while uploading your pfSense configuration to portal.pfsense.org - $data"); } else { log_error("End of portal.pfsense.org configuration backup (success)."); + update_filter_reload_status("End of portal.pfsense.org configuration backup (success)."); } // Unlock config -- cgit v1.2.3