diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-10-11 22:27:54 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-10-11 22:27:54 +0000 |
commit | e3f9f7774b0dd8889f2d5fb3bae0778ba3ac115f (patch) | |
tree | 4b3b5a2dbeca95b4cde95c006aa1fe58a063be07 /packages/autoconfigbackup/autoconfigbackup.php | |
parent | 1fa48d5b4cf02a83d22aca35ba74c136e69278b3 (diff) | |
download | pfsense-packages-e3f9f7774b0dd8889f2d5fb3bae0778ba3ac115f.tar.gz pfsense-packages-e3f9f7774b0dd8889f2d5fb3bae0778ba3ac115f.tar.bz2 pfsense-packages-e3f9f7774b0dd8889f2d5fb3bae0778ba3ac115f.zip |
Add "Backup now" button
Diffstat (limited to 'packages/autoconfigbackup/autoconfigbackup.php')
-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> |