From e55f5da69d61ad99a413f3c0b548a2026642fdff Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Thu, 24 Mar 2005 17:45:15 +0000 Subject: readfile only takes one argument --- usr/local/www/diag_backup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr/local') diff --git a/usr/local/www/diag_backup.php b/usr/local/www/diag_backup.php index 2e1b265..57e5eb7 100755 --- a/usr/local/www/diag_backup.php +++ b/usr/local/www/diag_backup.php @@ -97,7 +97,7 @@ if ($_POST) { $fn = $_POST['backuparea'] . "-" . $fn; header("Content-Disposition: attachment; filename=$fn"); header("Content-Length: $fs"); - readfile($g['tmp_path'] . "/backup_section.txt","w"); + readfile($g['tmp_path'] . "/backup_section.txt"); unlink($g['tmp_path'] . "/backup_section.txt"); } else { $fs = filesize($g['conf_path'] . "/config.xml"); -- cgit v1.1