summaryrefslogtreecommitdiff
path: root/full_download.inc
diff options
context:
space:
mode:
authorSashi202020-02-11 15:06:56 +0530
committerGitHub2020-02-11 15:06:56 +0530
commitbdbd8beaa25ddb6649bb801a8bf73bdc188b4b0d (patch)
tree46f578cf69cb531e266a0920743b30c218f65343 /full_download.inc
parent5884ad7ce0931b8c68ba6bb59041d70652cb2561 (diff)
parent2c9dd81a51984958591f5eb6a2d86fc3803794f2 (diff)
downloaddwsim_flowsheet-bdbd8beaa25ddb6649bb801a8bf73bdc188b4b0d.tar.gz
dwsim_flowsheet-bdbd8beaa25ddb6649bb801a8bf73bdc188b4b0d.tar.bz2
dwsim_flowsheet-bdbd8beaa25ddb6649bb801a8bf73bdc188b4b0d.zip
Merge pull request #38 from Sashi20/drupal_7.x
Add link to download abstract
Diffstat (limited to 'full_download.inc')
-rwxr-xr-xfull_download.inc16
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);
}