diff options
author | Bill Marquette <billm@pfsense.org> | 2005-03-27 22:50:17 +0000 |
---|---|---|
committer | Bill Marquette <billm@pfsense.org> | 2005-03-27 22:50:17 +0000 |
commit | f66683e660112a42a36f4f8b59cedbe1886ac0f9 (patch) | |
tree | 27e15f694eefb79fd845a3033d540f1c4a616431 /usr | |
parent | 307cd5259dd20c0ee442f2404d373878ba4361e3 (diff) | |
download | pfsense-f66683e660112a42a36f4f8b59cedbe1886ac0f9.zip pfsense-f66683e660112a42a36f4f8b59cedbe1886ac0f9.tar.gz |
remove hardcoded path
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/diag_backup.php | 4 |
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 */ |