aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-10-06 20:06:52 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-10-06 20:06:52 +0000
commitaceca4b66c02959b57ea777360dcb790c5b2ec74 (patch)
tree0089aa1955dc5baae0e2405849c4e28251bcd5ce /packages
parentb78fb23d3b24f69e3a8e8b557ff76b7c0deb141e (diff)
downloadpfsense-packages-aceca4b66c02959b57ea777360dcb790c5b2ec74.tar.gz
pfsense-packages-aceca4b66c02959b57ea777360dcb790c5b2ec74.tar.bz2
pfsense-packages-aceca4b66c02959b57ea777360dcb790c5b2ec74.zip
* Default to the restore page when a username is defined
Diffstat (limited to 'packages')
-rw-r--r--packages/autoconfigbackup/autoconfigbackup.php8
-rw-r--r--packages/autoconfigbackup/autoconfigbackup.xml2
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&amp;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&amp;id=0</url>
+ <url>/autoconfigbackup.php</url>
</menu>
<additional_files_needed>
<prefix>/usr/local/pkg/pf/</prefix>