summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorprashantsinalkar2020-06-15 13:28:49 +0530
committerprashantsinalkar2020-06-15 13:28:49 +0530
commitc68698b24bcbad670725a69d7863e4ad477fef17 (patch)
treeaaa831b64f04e5a8b436c96ac3abbd871931c89c
parent4b00d79ced3253e9b79000954500645fd2e14d35 (diff)
downloadEsim-Pspice-to-kicad-convertor-c68698b24bcbad670725a69d7863e4ad477fef17.tar.gz
Esim-Pspice-to-kicad-convertor-c68698b24bcbad670725a69d7863e4ad477fef17.tar.bz2
Esim-Pspice-to-kicad-convertor-c68698b24bcbad670725a69d7863e4ad477fef17.zip
fixed issues
-rwxr-xr-xpspice_to_kicad.module8
1 files changed, 7 insertions, 1 deletions
diff --git a/pspice_to_kicad.module b/pspice_to_kicad.module
index bab44c4..3dae369 100755
--- a/pspice_to_kicad.module
+++ b/pspice_to_kicad.module
@@ -625,7 +625,7 @@ function pspice_to_kicad_convert_file()
$filePath = $upload_root_path . "" . $row->upload_filepath;
$uploadfolder = $row->uid;
- exec("/var/www/html/esim_in/sites/all/modules/pspice_to_kicad/convert.sh " . $convert_root_path . " " . $filePath . " " . $uploadfolder, $outputFiles);
+ exec("./convert.sh" . " " . $convert_root_path . " " . $filePath . " " . $uploadfolder, $outputFiles);
$file = $row->upload_filename;
$filearray = explode('.', $file);
@@ -646,6 +646,12 @@ function pspice_to_kicad_convert_file()
header('Content-Type: ' . file_get_mimetype($converted_file));
header('Content-disposition: attachment; filename="' . $filenamewothoutext . ".zip" . '"');
header('Content-Length: ' . filesize($converted_file));
+ header("Content-Transfer-Encoding: binary");
+ header('Expires: 0');
+ header('Pragma: no-cache');
+ ob_end_flush();
+ ob_clean();
+ flush();
readfile($converted_file);
}