aboutsummaryrefslogtreecommitdiffstats
path: root/packages/autoconfigbackup/autoconfigbackup_backup.php
diff options
context:
space:
mode:
Diffstat (limited to 'packages/autoconfigbackup/autoconfigbackup_backup.php')
-rw-r--r--packages/autoconfigbackup/autoconfigbackup_backup.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/autoconfigbackup/autoconfigbackup_backup.php b/packages/autoconfigbackup/autoconfigbackup_backup.php
index 4c51ec05..7617f688 100644
--- a/packages/autoconfigbackup/autoconfigbackup_backup.php
+++ b/packages/autoconfigbackup/autoconfigbackup_backup.php
@@ -27,7 +27,9 @@
POSSIBILITY OF SUCH DAMAGE.
*/
+require("globals.inc");
require("guiconfig.inc");
+require("/usr/local/pkg/autoconfigbackup.inc");
$pfSversion = str_replace("\n", "", file_get_contents("/etc/version"));
if(strstr($pfSversion, "1.2"))
@@ -60,11 +62,9 @@ if(!$username) {
}
if($_POST) {
- touch("/tmp/acb_nooverwrite");
- if($_REQUEST['reason'])
- write_config($_REQUEST['reason']);
- else
- write_config("Backup invoked via Auto Config Backup.");
+ if($_REQUEST['nooverwrite'])
+ touch("/tmp/acb_nooverwrite");
+ upload_config();
$savemsg = "Backup completed successfully.";
exec("echo > /cf/conf/lastpfSbackup.txt");
filter_configure_sync();