diff options
author | Sashi20 | 2018-06-29 15:08:24 +0530 |
---|---|---|
committer | Sashi20 | 2018-06-29 15:08:24 +0530 |
commit | ecd6111dcc899433278b2a6411e9146de58fac7d (patch) | |
tree | c56cb8e6fbf9b310f9a5e23bc2892adbaea0f4e6 | |
parent | f36670e81c0caeab5147b06025c7510a5105d99a (diff) | |
download | cfd_case_study-ecd6111dcc899433278b2a6411e9146de58fac7d.tar.gz cfd_case_study-ecd6111dcc899433278b2a6411e9146de58fac7d.tar.bz2 cfd_case_study-ecd6111dcc899433278b2a6411e9146de58fac7d.zip |
Modified document path when deleting proposal
-rwxr-xr-x | cfd_case_study.module | 2 | ||||
-rwxr-xr-x | download.inc | 29 |
2 files changed, 1 insertions, 30 deletions
diff --git a/cfd_case_study.module b/cfd_case_study.module index 76d7fbc..f0923c0 100755 --- a/cfd_case_study.module +++ b/cfd_case_study.module @@ -521,7 +521,7 @@ function _df_dir_name($project, $proposar_name) } function cfd_case_study_document_path() { - return $_SERVER['DOCUMENT_ROOT'] . base_path() . 'uploads/case_study_uploads/'; + return $_SERVER['DOCUMENT_ROOT'] . base_path() . 'cfd_uploads/case_study_uploads/'; } function DF_RenameDir($proposal_id, $dir_name) { diff --git a/download.inc b/download.inc index bcbf9ed..e4c806a 100755 --- a/download.inc +++ b/download.inc @@ -1,33 +1,4 @@ <?php -// $Id$ -/*function cfd_case_study_download_upload_file() -{ - $proposal_id = arg(3); - $root_path = cfd_case_study_path(); - $query = db_select('case_study_proposal'); - $query->fields('case_study_proposal'); - $query->condition('id', $proposal_id); - $query->range(0, 1); - $result = $query->execute(); - $circuit_simulation_upload_file = $result->fetchObject(); - $samplecodename = substr($circuit_simulation_upload_file->samplefilepath, strrpos($circuit_simulation_upload_file->samplefilepath, '/') + 1); - ob_clean(); - header("Pragma: public"); - header("Expires: 0"); - header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); - header("Cache-Control: public"); - header("Content-Description: File Transfer"); - header('Content-Type: application/pdf'); - header('Content-disposition: attachment; filename="' . $samplecodename . '"'); - header('Content-Length: ' . filesize($root_path . $circuit_simulation_upload_file->samplefilepath)); - header("Content-Transfer-Encoding: binary"); - header('Expires: 0'); - header('Pragma: no-cache'); - readfile($root_path . $circuit_simulation_upload_file->samplefilepath); - ob_end_flush(); - ob_clean(); - flush(); -}*/ function cfd_case_study_project_files() { $proposal_id = arg(3); $root_path = cfd_case_study_path(); |