diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-10-06 20:23:04 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-10-06 20:23:04 +0000 |
commit | c88f531e8e93c45c6491cf0576f795964e998abd (patch) | |
tree | 935bd4f1ec1e2305733316913e0a4ae11f9844a8 /packages/autoconfigbackup/autoconfigbackup.php | |
parent | c1903b13c0c9c46b6e19eca43dd27f9e9c569fc0 (diff) | |
download | pfsense-packages-c88f531e8e93c45c6491cf0576f795964e998abd.tar.gz pfsense-packages-c88f531e8e93c45c6491cf0576f795964e998abd.tar.bz2 pfsense-packages-c88f531e8e93c45c6491cf0576f795964e998abd.zip |
Correct path to config.xml data
Diffstat (limited to 'packages/autoconfigbackup/autoconfigbackup.php')
-rw-r--r-- | packages/autoconfigbackup/autoconfigbackup.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/autoconfigbackup/autoconfigbackup.php b/packages/autoconfigbackup/autoconfigbackup.php index 734691a0..acd5568d 100644 --- a/packages/autoconfigbackup/autoconfigbackup.php +++ b/packages/autoconfigbackup/autoconfigbackup.php @@ -42,13 +42,13 @@ $oper_sep = "\|\|"; $get_url = "https://portal.pfsense.org/pfSconfigbackups/restore.php"; // Encryption password -$decrypt_password = $config['installedpackages']['autoconfigbackup']['config']['decrypt_password']; +$decrypt_password = $config['installedpackages']['autoconfigbackup']['config'][0]['decrypt_password']; // Defined username -$username = $config['installedpackages']['autoconfigbackup']['config']['username']; +$username = $config['installedpackages']['autoconfigbackup']['config'][0]['username']; // Defined password -$password = $config['installedpackages']['autoconfigbackup']['config']['password']; +$password = $config['installedpackages']['autoconfigbackup']['config'][0]['password']; if(!$username) { Header("Location: /pkg_edit.php?xml=autoconfigbackup.xml&id=0"); @@ -77,8 +77,8 @@ if($_GET['newver'] != "") { } } else { // Grab username and password from config.xml - $username = $config['installedpackages']['autoconfigbackup']['config']['username']; - $password = $config['installedpackages']['autoconfigbackup']['config']['password']; + $username = $config['installedpackages']['autoconfigbackup']['config'][0]['username']; + $password = $config['installedpackages']['autoconfigbackup']['config'][0]['password']; // Phone home and obtain backups $curl_Session = curl_init($get_url); curl_setopt($curl_Session, CURLOPT_POST, 1); |