From ebd40299b546a2d66dba03994dc6ccd3a7c2e7f1 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 26 Oct 2008 21:08:10 +0000 Subject: Do not show the not configured notice on every bootup, just show it once and never show it again. Some folks might not want to use this feature on pfDNS and it is nagging. --- packages/autoconfigbackup/autoconfigbackup.inc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'packages') diff --git a/packages/autoconfigbackup/autoconfigbackup.inc b/packages/autoconfigbackup/autoconfigbackup.inc index 7f9b565f..0ea2f18e 100644 --- a/packages/autoconfigbackup/autoconfigbackup.inc +++ b/packages/autoconfigbackup/autoconfigbackup.inc @@ -120,12 +120,13 @@ function upload_config() { $upload_url = "https://{$username}:{$password}@portal.pfsense.org/pfSconfigbackups/backup.php"; if(!$username or !$password or !$encryptpw) { - - $notice_text = "Either the username, password or encryption password is not set for Automatic Configuration Backup. "; - $notice_text .= "Please correct this in Diagnostics -> AutoConfigBackup -> Settings."; - log_error($notice_text); - file_notice("AutoConfigBackup", $notice_text, $notice_text, ""); - + if(!file_exists("/cf/conf/autoconfigback.notice")) { + $notice_text = "Either the username, password or encryption password is not set for Automatic Configuration Backup. "; + $notice_text .= "Please correct this in Diagnostics -> AutoConfigBackup -> Settings."; + log_error($notice_text); + file_notice("AutoConfigBackup", $notice_text, $notice_text, ""); + touch("/cf/conf/autoconfigback.notice"); + } } else { /* If configuration has changed, upload to pfS */ if($last_backup_date <> $last_config_change) { -- cgit v1.2.3