diff options
Diffstat (limited to 'packages/autoconfigbackup')
-rw-r--r-- | packages/autoconfigbackup/autoconfigbackup.php | 12 |
1 files changed, 11 insertions, 1 deletions
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. </p> </td></tr> + <tr><td> + <form method="post" action="autoconfigbackup.php"> + <input type="post" name="Backup now" value="backup"> + </form> + </td></tr> </tr> </table> </form> |