summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_backup.php
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2005-03-27 22:50:17 +0000
committerBill Marquette <billm@pfsense.org>2005-03-27 22:50:17 +0000
commitf66683e660112a42a36f4f8b59cedbe1886ac0f9 (patch)
tree27e15f694eefb79fd845a3033d540f1c4a616431 /usr/local/www/diag_backup.php
parent307cd5259dd20c0ee442f2404d373878ba4361e3 (diff)
downloadpfsense-f66683e660112a42a36f4f8b59cedbe1886ac0f9.zip
pfsense-f66683e660112a42a36f4f8b59cedbe1886ac0f9.tar.gz
remove hardcoded path
Diffstat (limited to 'usr/local/www/diag_backup.php')
-rwxr-xr-xusr/local/www/diag_backup.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/diag_backup.php b/usr/local/www/diag_backup.php
index 19555af..6a64652 100755
--- a/usr/local/www/diag_backup.php
+++ b/usr/local/www/diag_backup.php
@@ -80,11 +80,11 @@ if ($_POST) {
$config['system']['domain'] . "-" . date("YmdHis") . ".xml";
if($options == "nopackages") {
exec("sed '/<installedpackages>/,/<\/installedpackages>/d' /conf/config.xml > /tmp/config.xml.nopkg");
- $fs = filesize("/tmp/config.xml.nopkg");
+ $fs = filesize("{$g['tmp_path']}/config.xml.nopkg");
header("Content-Type: application/octet-stream");
header("Content-Disposition: attachment; filename=$fn");
header("Content-Length: $fs");
- readfile("/tmp/config.xml.nopkg");
+ readfile("{$g['tmp_path']}/config.xml.nopkg");
} else {
if($_POST['backuparea'] <> "") {
/* user wishes to backup specific area of configuration */
OpenPOWER on IntegriCloud