aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-12-07 05:18:14 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-12-07 05:18:14 +0000
commiteef41390343ca32d73a444088b59467198fe2550 (patch)
tree1e401c935c708223603f55e3a1185e4815163a0b
parent047065a1d2c151cc5eb374dca362be7b6360b493 (diff)
downloadpfsense-packages-eef41390343ca32d73a444088b59467198fe2550.tar.gz
pfsense-packages-eef41390343ca32d73a444088b59467198fe2550.tar.bz2
pfsense-packages-eef41390343ca32d73a444088b59467198fe2550.zip
Add install this revision button to view backup information page
-rw-r--r--packages/autoconfigbackup/autoconfigbackup.php1
-rw-r--r--packages/autoconfigbackup/autoconfigbackup_backup.php2
2 files changed, 2 insertions, 1 deletions
diff --git a/packages/autoconfigbackup/autoconfigbackup.php b/packages/autoconfigbackup/autoconfigbackup.php
index 3534d0c8..a117516e 100644
--- a/packages/autoconfigbackup/autoconfigbackup.php
+++ b/packages/autoconfigbackup/autoconfigbackup.php
@@ -268,6 +268,7 @@ include("head.inc");
echo "<h2>Decrypted config.xml</h2>";
echo "<textarea name='dec_config_xml' rows='40' cols='70'>{$data}</textarea>";
}
+ echo "<p/><input type=\"button\" value=\"Install this revision\" onClick=\"document.location='autoconfigbackup.php?newver=" . urlencode($_REQUEST['download']) . "';\">";
echo "</td></tr></table></div></td></td></tr></tr></table></form>";
require("fend.inc");
exit;
diff --git a/packages/autoconfigbackup/autoconfigbackup_backup.php b/packages/autoconfigbackup/autoconfigbackup_backup.php
index a1e9aec3..11542034 100644
--- a/packages/autoconfigbackup/autoconfigbackup_backup.php
+++ b/packages/autoconfigbackup/autoconfigbackup_backup.php
@@ -59,7 +59,7 @@ if(!$username) {
exit;
}
-if($_POST) {
+if($_POST) {
touch("/tmp/acb_nooverwrite");
if($_REQUEST['reason'])
write_config($_REQUEST['reason']);