summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSashi202019-09-23 11:54:59 +0530
committerSashi202019-09-23 11:54:59 +0530
commit81df2ba9aed69ef184ebe6fb4f1f2f1cf560ca83 (patch)
tree9ff40dad7095a313819bd7b8024b754831631f9e
parent9f21cf74562ec66b0b5699014fc720ac518e34b6 (diff)
downloadDWSIM_lab_migration-81df2ba9aed69ef184ebe6fb4f1f2f1cf560ca83.tar.gz
DWSIM_lab_migration-81df2ba9aed69ef184ebe6fb4f1f2f1cf560ca83.tar.bz2
DWSIM_lab_migration-81df2ba9aed69ef184ebe6fb4f1f2f1cf560ca83.zip
Add ob_clean and ob_flush functions to download zip file
-rwxr-xr-xfull_download.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/full_download.inc b/full_download.inc
index a8e7173..d6a9af4 100755
--- a/full_download.inc
+++ b/full_download.inc
@@ -106,6 +106,8 @@ function lab_migration_download_full_experiment()
header('Content-Length: ' . filesize($zip_filename));
readfile($zip_filename);
unlink($zip_filename);
+ ob_clean();
+ ob_flush();
}
else
{
@@ -116,7 +118,7 @@ function lab_migration_download_full_experiment()
function lab_migration_download_full_lab()
{
$lab_id = arg(3);
- var_dump($lab_id);
+ //var_dump($lab_id);
//die;
$root_path = lab_migration_path();
$APPROVE_PATH = 'APPROVED/';
@@ -151,6 +153,7 @@ function lab_migration_download_full_lab()
$solution_q = $query->execute();
while ($solution_row = $solution_q->fetchObject())
{
+ //var_dump($solution_row);
$CODE_PATH = 'CODE' . $solution_row->code_number . '/';
//$solution_files_q = db_query("SELECT * FROM {lab_migration_solution_files} WHERE solution_id = %d", $solution_row->id);
/*$query = db_select('lab_migration_solution_files');
@@ -165,6 +168,7 @@ function lab_migration_download_full_lab()
$solution_dependency_files_q = $query->execute();
while ($solution_files_row = $solution_files_q->fetchObject())
{
+ //var_dump($solution_files_row);die;
$zip->addFile($root_path . $solution_files_row->directory_name. '/' . $solution_files_row->filepath, $APPROVE_PATH . $EXP_PATH . $CODE_PATH . $solution_files_row->filename);
}
/* dependency files */