From 8fc41dd25e64708a7315622129e031bba39d134e Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 7 Dec 2008 00:03:36 +0000 Subject: * Split into two fields * Add sha256 summary --- packages/autoconfigbackup/autoconfigbackup.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'packages/autoconfigbackup') 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 "
{$data}
"; + } else { + $ds = split("\+\+\+\+", $data); + echo "

SHA256 summary

"; + echo ""; + echo "

Encrypted config.xml

"; + echo ""; + } exit; } -- cgit v1.2.3