diff options
-rwxr-xr-x | full_download.inc | 12 | ||||
-rwxr-xr-x | proposal.inc | 3 |
2 files changed, 8 insertions, 7 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 { diff --git a/proposal.inc b/proposal.inc index df956f2..40af71f 100755 --- a/proposal.inc +++ b/proposal.inc @@ -546,9 +546,10 @@ function om_flowsheet_proposal_form_submit($form, &$form_state) if($form_state['values']['dwsim_flowsheet_check'] == 1) { $project_title = $v['dwsim_flowsheet_name_dropdown']; + $dwsim_flowsheet_check = 1; } else{ - + $dwsim_flowsheet_check = 0; $project_title = $v['project_title']; } |