diff options
Diffstat (limited to 'full_download.inc')
-rwxr-xr-x | full_download.inc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/full_download.inc b/full_download.inc index 491da4b..1c889b3 100755 --- a/full_download.inc +++ b/full_download.inc @@ -41,9 +41,9 @@ function dwsim_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_end_flush(); ob_clean(); - flush(); + //flush(); readfile($zip_filename); unlink($zip_filename); } //$user->uid @@ -54,9 +54,9 @@ function dwsim_flowsheet_download_full_project() header("Content-Transfer-Encoding: binary"); header('Expires: 0'); header('Pragma: no-cache'); - ob_end_flush(); + //ob_end_flush(); ob_clean(); - flush(); + //flush(); readfile($zip_filename); unlink($zip_filename); } @@ -107,9 +107,9 @@ function dwsim_flowsheet_download_completed_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_end_flush(); ob_clean(); - flush(); + //flush(); readfile($zip_filename); unlink($zip_filename); } //$user->uid @@ -120,9 +120,9 @@ function dwsim_flowsheet_download_completed_project() header("Content-Transfer-Encoding: binary"); header('Expires: 0'); header('Pragma: no-cache'); - ob_end_flush(); + //ob_end_flush(); ob_clean(); - flush(); + // /flush(); readfile($zip_filename); unlink($zip_filename); } |