From 09bd6c8c2aa31e79c5fdac185c3f4a0eac4e6b0c Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 19 Oct 2008 20:42:04 +0000 Subject: Use full hostname + domain. --- packages/autoconfigbackup/autoconfigbackup.inc | 4 ++-- packages/autoconfigbackup/autoconfigbackup.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'packages') diff --git a/packages/autoconfigbackup/autoconfigbackup.inc b/packages/autoconfigbackup/autoconfigbackup.inc index 0e014117..7f9b565f 100644 --- a/packages/autoconfigbackup/autoconfigbackup.inc +++ b/packages/autoconfigbackup/autoconfigbackup.inc @@ -66,7 +66,7 @@ function test_connection($post) { $password = $post['password']; // Set hostname - $hostname = $config['system']['hostname']; + $hostname = $config['system']['hostname'] . "." . $config['system']['domain']; // URL to restore.php $get_url = "https://{$username}:{$password}@portal.pfsense.org/pfSconfigbackups/restore.php"; @@ -110,7 +110,7 @@ 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']; + $hostname = $config['system']['hostname'] . "." . $config['system']['domain']; $reason = $config['revision']['description']; $username = $config['installedpackages']['autoconfigbackup']['config'][0]['username']; $password = $config['installedpackages']['autoconfigbackup']['config'][0]['password']; diff --git a/packages/autoconfigbackup/autoconfigbackup.php b/packages/autoconfigbackup/autoconfigbackup.php index 9086b2a1..e1ab6d71 100644 --- a/packages/autoconfigbackup/autoconfigbackup.php +++ b/packages/autoconfigbackup/autoconfigbackup.php @@ -53,7 +53,7 @@ $password = $config['installedpackages']['autoconfigbackup']['config'][0]['pas $get_url = "https://{$username}:{$password}@portal.pfsense.org/pfSconfigbackups/restore.php"; // Set hostname -$hostname = $config['system']['hostname']; +$hostname = $config['system']['hostname'] . "." . $config['system']['domain']; if(!$username) { Header("Location: /pkg_edit.php?xml=autoconfigbackup.xml&id=0"); -- cgit v1.2.3