diff options
Diffstat (limited to 'full_download.inc')
-rwxr-xr-x | full_download.inc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/full_download.inc b/full_download.inc index dc8edac..54cfdb8 100755 --- a/full_download.inc +++ b/full_download.inc @@ -35,11 +35,11 @@ function om_flowsheet_download_full_project() header('Content-Type: application/zip'); header('Content-disposition: attachment; filename="' . str_replace(' ', '_', $flowsheet_data->project_title) . '.zip"'); header('Content-Length: ' . filesize($zip_filename)); - ob_end_flush(); - ob_clean(); - flush(); readfile($zip_filename); unlink($zip_filename); + ob_clean(); + ob_end_flush(); + flush(); } //$user->uid else { header('Content-Type: application/zip'); @@ -48,11 +48,11 @@ function om_flowsheet_download_full_project() header("Content-Transfer-Encoding: binary"); header('Expires: 0'); header('Pragma: no-cache'); - ob_end_flush(); - ob_clean(); - flush(); readfile($zip_filename); unlink($zip_filename); + ob_clean(); + ob_end_flush(); + flush(); } } //$zip_file_count > 0 else { |