aboutsummaryrefslogtreecommitdiffstats
path: root/packages/autoconfigbackup/autoconfigbackup.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-12-07 04:20:03 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-12-07 04:20:03 +0000
commit8d66475e0a9fc0c37a47d7a2d5a7522e56ed692f (patch)
tree2e7a138ae162f340fe507f6dc40a973f313e349f /packages/autoconfigbackup/autoconfigbackup.php
parent5b8ac7b1e4401d9819c36b0f9bde19eb434ffca9 (diff)
downloadpfsense-packages-8d66475e0a9fc0c37a47d7a2d5a7522e56ed692f.tar.gz
pfsense-packages-8d66475e0a9fc0c37a47d7a2d5a7522e56ed692f.tar.bz2
pfsense-packages-8d66475e0a9fc0c37a47d7a2d5a7522e56ed692f.zip
* Move backup functions to its own tab backup now
* Add nooverwrite support for hostname
Diffstat (limited to 'packages/autoconfigbackup/autoconfigbackup.php')
-rw-r--r--packages/autoconfigbackup/autoconfigbackup.php32
1 files changed, 1 insertions, 31 deletions
diff --git a/packages/autoconfigbackup/autoconfigbackup.php b/packages/autoconfigbackup/autoconfigbackup.php
index 12d1406e..54cd246c 100644
--- a/packages/autoconfigbackup/autoconfigbackup.php
+++ b/packages/autoconfigbackup/autoconfigbackup.php
@@ -194,27 +194,6 @@ include("head.inc");
?>
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
-<script type="text/javascript">
- function backupnow() {
- scroll(0,0);
- var reason = prompt ("Enter the reason for the backup","");
- var url = "/autoconfigbackup.php";
- var pars = 'backup=yes&reason=' + reason;
- var myAjax = new Ajax.Request(
- url,
- {
- method: 'post',
- parameters: pars,
- onComplete: backupcomplete
- });
- if($('savemsg'))
- $('savemsg').innerHTML = '';
- $('feedbackdiv').innerHTML = "<img src='themes/metallic/images/misc/loader.gif'> One moment please, saving backup to portal.pfsense.org...<p/>";
- }
- function backupcomplete(transport) {
- document.location.href = 'autoconfigbackup.php?savemsg=Backup+completed+successfully';
- }
-</script>
<div id='maincontent'>
<script src="/javascript/scriptaculous/prototype.js" type="text/javascript"></script>
<?php
@@ -243,6 +222,7 @@ include("head.inc");
$tab_array[1] = array("Restore", $active, "/autoconfigbackup.php");
if($_REQUEST['download'])
$tab_array[] = array("Revision", true, "/autoconfigbackup.php?download={$_REQUEST['download']}");
+ $tab_array[] = array("Backup now", true, "/autoconfigbackup_backup.php");
display_top_tabs($tab_array);
?>
</td></tr>
@@ -279,9 +259,6 @@ include("head.inc");
exit;
}
?>
- <form method="post" action="autoconfigbackup.php">
- <input type="button" onClick='backupnow()' name="backup" value="Backup Now">
- </form>
</td>
</tr>
<tr>
@@ -329,13 +306,6 @@ include("head.inc");
</p>
</td>
</tr>
- <tr>
- <td>
- <form method="post" action="autoconfigbackup.php">
- <input type="button" onClick='backupnow()' name="backup" value="Backup Now">
- </form>
- </td>
- </tr>
</tr>
</table>
</form>