From c3f019f6b78f42144edfb7cf9b3bcf61ae471e9d Mon Sep 17 00:00:00 2001 From: jim-p Date: Tue, 11 Feb 2014 13:38:03 -0500 Subject: Cleanup some unused variables. --- .../autoconfigbackup/autoconfigbackup_backup.php | 23 +--------------------- 1 file changed, 1 insertion(+), 22 deletions(-) (limited to 'config/autoconfigbackup') 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; } -- cgit v1.2.3