aboutsummaryrefslogtreecommitdiffstats
path: root/config/autoconfigbackup/autoconfigbackup_backup.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2014-02-11 13:38:03 -0500
committerjim-p <jimp@pfsense.org>2014-02-11 13:38:03 -0500
commitc3f019f6b78f42144edfb7cf9b3bcf61ae471e9d (patch)
tree461b225c445644fce97c1688292b79c5120ad8b9 /config/autoconfigbackup/autoconfigbackup_backup.php
parent33f2928e7e194394faf7eb3337e7ac2ef3a9949e (diff)
downloadpfsense-packages-c3f019f6b78f42144edfb7cf9b3bcf61ae471e9d.tar.gz
pfsense-packages-c3f019f6b78f42144edfb7cf9b3bcf61ae471e9d.tar.bz2
pfsense-packages-c3f019f6b78f42144edfb7cf9b3bcf61ae471e9d.zip
Cleanup some unused variables.
Diffstat (limited to 'config/autoconfigbackup/autoconfigbackup_backup.php')
-rw-r--r--config/autoconfigbackup/autoconfigbackup_backup.php23
1 files changed, 1 insertions, 22 deletions
diff --git a/config/autoconfigbackup/autoconfigbackup_backup.php b/config/autoconfigbackup/autoconfigbackup_backup.php
index 47336c27..2676aabe 100644
--- a/config/autoconfigbackup/autoconfigbackup_backup.php
+++ b/config/autoconfigbackup/autoconfigbackup_backup.php
@@ -35,28 +35,7 @@ $pfSversion = str_replace("\n", "", file_get_contents("/etc/version"));
if(strstr($pfSversion, "1.2"))
require("crypt_acb.php");
-// Seperator used during client / server communications
-$oper_sep = "\|\|";
-
-// Encryption password
-$decrypt_password = $config['installedpackages']['autoconfigbackup']['config'][0]['crypto_password'];
-
-// Defined username
-$username = $config['installedpackages']['autoconfigbackup']['config'][0]['username'];
-
-// Defined password
-$password = $config['installedpackages']['autoconfigbackup']['config'][0]['password'];
-
-// URL to restore.php
-$get_url = "https://{$username}:{$password}@portal.pfsense.org/pfSconfigbackups/restore.php";
-
-// URL to delete.php
-$del_url = "https://{$username}:{$password}@portal.pfsense.org/pfSconfigbackups/delete.php";
-
-// Set hostname
-$hostname = $config['system']['hostname'] . "." . $config['system']['domain'];
-
-if(!$username) {
+if(!$config['installedpackages']['autoconfigbackup']['config'][0]['username']) {
Header("Location: /pkg_edit.php?xml=autoconfigbackup.xml&id=0&savemsg=Please+setup+Auto+Config+Backup");
exit;
}