aboutsummaryrefslogtreecommitdiffstats
path: root/packages/autoconfigbackup/autoconfigbackup.php
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/autoconfigbackup/autoconfigbackup.php
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/autoconfigbackup/autoconfigbackup.php')
-rw-r--r--packages/autoconfigbackup/autoconfigbackup.php8
1 files changed, 8 insertions, 0 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);