From e3f9f7774b0dd8889f2d5fb3bae0778ba3ac115f Mon Sep 17 00:00:00 2001
From: Scott Ullrich
Date: Sat, 11 Oct 2008 22:27:54 +0000
Subject: Add "Backup now" button
---
packages/autoconfigbackup/autoconfigbackup.php | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
(limited to 'packages/autoconfigbackup/autoconfigbackup.php')
diff --git a/packages/autoconfigbackup/autoconfigbackup.php b/packages/autoconfigbackup/autoconfigbackup.php
index 64d60d5b..0a47186a 100644
--- a/packages/autoconfigbackup/autoconfigbackup.php
+++ b/packages/autoconfigbackup/autoconfigbackup.php
@@ -59,7 +59,12 @@ if(!$username) {
Header("Location: /pkg_edit.php?xml=autoconfigbackup.xml&id=0");
exit;
}
-
+
+if($_POST['Backup now']) {
+ write_config("Backup Now invoked via Auto Config Backup.");
+ $savemsg = "A configuration backup has been queued.";
+}
+
if($_REQUEST['newver'] != "") {
// Phone home and obtain backups
$curl_session = curl_init();
@@ -192,6 +197,11 @@ include("head.inc");
Click the + sign next to the revision you would like to restore.
+
+
+ |
--
cgit v1.2.3