aboutsummaryrefslogtreecommitdiffstats
path: root/packages/autoconfigbackup/autoconfigbackup.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-12-08 03:16:43 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-12-08 03:16:43 +0000
commit731bc6d44b9ddaa13ee248e5d49f69fb30c02668 (patch)
tree669867448339458054b82a80ea1a366204622076 /packages/autoconfigbackup/autoconfigbackup.inc
parentfa1c284cd6fb9e61ae6a4516606bf00512d20c6a (diff)
downloadpfsense-packages-731bc6d44b9ddaa13ee248e5d49f69fb30c02668.tar.gz
pfsense-packages-731bc6d44b9ddaa13ee248e5d49f69fb30c02668.tar.bz2
pfsense-packages-731bc6d44b9ddaa13ee248e5d49f69fb30c02668.zip
Force reason correctly
Diffstat (limited to 'packages/autoconfigbackup/autoconfigbackup.inc')
-rw-r--r--packages/autoconfigbackup/autoconfigbackup.inc7
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/autoconfigbackup/autoconfigbackup.inc b/packages/autoconfigbackup/autoconfigbackup.inc
index 45d0efbe..fd0d3169 100644
--- a/packages/autoconfigbackup/autoconfigbackup.inc
+++ b/packages/autoconfigbackup/autoconfigbackup.inc
@@ -88,7 +88,7 @@ function test_connection($post) {
return;
}
-function upload_config() {
+function upload_config($reasonm = "") {
global $config, $g, $input_errors;
/*
@@ -118,7 +118,10 @@ function upload_config() {
$last_backup_date = str_replace("\n", "", file_get_contents("/cf/conf/lastpfSbackup.txt"));
$last_config_change = $config['revision']['time'];
$hostname = $config['system']['hostname'] . "." . $config['system']['domain'];
- $reason = $config['revision']['description'];
+ if($reasonm)
+ $reason = $reasonm;
+ else
+ $reason = $config['revision']['description'];
$username = $config['installedpackages']['autoconfigbackup']['config'][0]['username'];
$password = $config['installedpackages']['autoconfigbackup']['config'][0]['password'];
$encryptpw = $config['installedpackages']['autoconfigbackup']['config'][0]['crypto_password'];