From 08c8db8a0320e400f751a026be98b774c613228c Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 19 Oct 2008 04:46:59 +0000 Subject: Add some lovely ajax --- packages/autoconfigbackup/autoconfigbackup.php | 27 +++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/packages/autoconfigbackup/autoconfigbackup.php b/packages/autoconfigbackup/autoconfigbackup.php index 488a144e..9086b2a1 100644 --- a/packages/autoconfigbackup/autoconfigbackup.php +++ b/packages/autoconfigbackup/autoconfigbackup.php @@ -68,8 +68,13 @@ if($_POST['backup']) { $savemsg = "Backup completed successfully."; exec("echo > /cf/conf/lastpfSbackup.txt"); filter_configure_sync(); + print_info_box($savemsg); + $donotshowheader=true; } +if($_REQUEST['savemsg']) + $savemsg = htmlentities($_REQUEST['savemsg']); + if($_REQUEST['newver'] != "") { // Phone home and obtain backups $curl_session = curl_init(); @@ -151,12 +156,14 @@ foreach($data_split as $ds) { } $pgtitle = "Diagnostics: Auto Configuration Backup"; + include("head.inc"); ?> - -
+
{$pgtitle}

"; - if($savemsg) - print_info_box($savemsg); + if($savemsg) { + echo "
"; + print_info_box($savemsg); + echo "
"; + } if ($input_errors) print_input_errors($input_errors); + ?> +
+
-
- +
-- cgit v1.2.3
Date Configuration Change