diff options
Diffstat (limited to 'packages/autoconfigbackup')
-rw-r--r-- | packages/autoconfigbackup/autoconfigbackup.php | 8 | ||||
-rw-r--r-- | packages/autoconfigbackup/autoconfigbackup.xml | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/packages/autoconfigbackup/autoconfigbackup.php b/packages/autoconfigbackup/autoconfigbackup.php index 2574941a..1162bdb0 100644 --- a/packages/autoconfigbackup/autoconfigbackup.php +++ b/packages/autoconfigbackup/autoconfigbackup.php @@ -42,6 +42,14 @@ $get_url = "https://portal.pfsense.org/pfSconfigbackups/restore.php"; // Encryption password $decrypt_password = $config['installedpackages']['autoconfigbackup']['config']['decrypt_password']; +$username = $config['installedpackages']['autoconfigbackup']['config']['username']; +$password = $config['installedpackages']['autoconfigbackup']['config']['password']; + +if(!$username) { + Header("Location: /pkg_edit.php?xml=autoconfigbackup.xml&id=0"); + exit; +} + if($_GET['newver'] != "") { // Phone home and obtain backups $curl_Session = curl_init($get_url); diff --git a/packages/autoconfigbackup/autoconfigbackup.xml b/packages/autoconfigbackup/autoconfigbackup.xml index 7f1d2028..dd2371a1 100644 --- a/packages/autoconfigbackup/autoconfigbackup.xml +++ b/packages/autoconfigbackup/autoconfigbackup.xml @@ -46,7 +46,7 @@ <name>AutoConfigBackup</name> <tooltiptext>Set autoconfigbackup settings such as password and port.</tooltiptext> <section>Diagnostics</section> - <url>/pkg_edit.php?xml=autoconfigbackup.xml&id=0</url> + <url>/autoconfigbackup.php</url> </menu> <additional_files_needed> <prefix>/usr/local/pkg/pf/</prefix> |