/cf/conf/lastpfSbackup.txt"); filter_configure_sync(); print_info_box($savemsg); $donotshowheader=true; } if($_REQUEST['savemsg']) $savemsg = htmlentities($_REQUEST['savemsg']); if($_REQUEST['download']) { // Phone home and obtain backups $curl_session = curl_init(); curl_setopt($curl_session, CURLOPT_URL, $get_url); curl_setopt($curl_session, CURLOPT_POST, 3); curl_setopt($curl_session, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($curl_session, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl_session, CURLOPT_POSTFIELDS, "action=restore" . "&hostname=" . urlencode($hostname) . "&revision=" . urlencode($_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) { print_input_errors($input_errors); } else { $ds = split("\+\+\+\+", $data); echo "