aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-12-07 00:03:36 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-12-07 00:03:36 +0000
commit8fc41dd25e64708a7315622129e031bba39d134e (patch)
tree9d70cf1f9f86cc0bc213927290609dba923d1dae /packages
parentb3bcd4c3a8cb24d8bea41add44268639f49f88ae (diff)
downloadpfsense-packages-8fc41dd25e64708a7315622129e031bba39d134e.tar.gz
pfsense-packages-8fc41dd25e64708a7315622129e031bba39d134e.tar.bz2
pfsense-packages-8fc41dd25e64708a7315622129e031bba39d134e.zip
* Split into two fields
* Add sha256 summary
Diffstat (limited to 'packages')
-rw-r--r--packages/autoconfigbackup/autoconfigbackup.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/packages/autoconfigbackup/autoconfigbackup.php b/packages/autoconfigbackup/autoconfigbackup.php
index 49a61bbd..d9e300a1 100644
--- a/packages/autoconfigbackup/autoconfigbackup.php
+++ b/packages/autoconfigbackup/autoconfigbackup.php
@@ -88,10 +88,15 @@ if($_REQUEST['download']) {
$data = curl_exec($curl_session);
if (!tagfile_deformat($data, $data1, "config.xml"))
$input_errors[] = "The downloaded file does not appear to contain an encrypted pfSense configuration.";
- if ($input_errors)
+ if ($input_errors) {
print_input_errors($input_errors);
- else
- echo "<pre>{$data}</pre>";
+ } else {
+ $ds = split("\+\+\+\+", $data);
+ echo "<h1>SHA256 summary</h1>";
+ echo "<textarea rows='1' cols='70'>{$ds[0]}</textarea>";
+ echo "<h1>Encrypted config.xml</h1>";
+ echo "<textarea rows='40' cols='70'>{$ds[1]}</textarea>";
+ }
exit;
}