summaryrefslogtreecommitdiff
path: root/pspice_to_kicad.module
diff options
context:
space:
mode:
Diffstat (limited to 'pspice_to_kicad.module')
-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);
}