diff options
author | prashantsinalkar | 2017-05-08 12:54:00 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-05-08 12:54:00 +0530 |
commit | f612a7dd5b0063fc5c409ae782372eabbde3670a (patch) | |
tree | 7dc7b2f9d87b1a331a414d7bbabe3fa51477d27b | |
parent | 38a93ab715ef4c1b0737d19a1e5315a9f6954224 (diff) | |
parent | ce2cb0bdbaba823927b363f414538d3ddca4d634 (diff) | |
download | scilab_textbook_companion-f612a7dd5b0063fc5c409ae782372eabbde3670a.tar.gz scilab_textbook_companion-f612a7dd5b0063fc5c409ae782372eabbde3670a.tar.bz2 scilab_textbook_companion-f612a7dd5b0063fc5c409ae782372eabbde3670a.zip |
Merge branch 'master' of https://github.com/FOSSEE/scilab_textbook_companion
-rwxr-xr-x | full_download.inc | 11 | ||||
-rwxr-xr-x | pdf/generate_pdf.inc | 4 |
2 files changed, 8 insertions, 7 deletions
diff --git a/full_download.inc b/full_download.inc index 0895bd2..41d8eae 100755 --- a/full_download.inc +++ b/full_download.inc @@ -200,6 +200,7 @@ function textbook_companion_download_full_book() } //$example_row = $example_q->fetchObject() } //$chapter_row = $chapter_q->fetchObject() $zip_file_count = $zip->numFiles; + //var_dump($zip->numFiles);die; $zip->close(); if ($zip_file_count > 0) { @@ -207,12 +208,12 @@ function textbook_companion_download_full_book() header('Content-Type: application/zip'); header('Content-disposition: attachment; filename="' . $book_data->book . '.zip"'); header('Content-Length: ' . filesize($zip_filename)); - //header("Content-Transfer-Encoding: binary"); - //header('Expires: 0'); - //header('Pragma: no-cache'); - //ob_end_flush(); + header('Content-Transfer-Encoding: binary'); + header('Expires: 0'); + header('Pragma: no-cache'); + ob_end_flush(); ob_end_clean(); - //flush(); + flush(); readfile($zip_filename); unlink($zip_filename); } //$zip_file_count > 0 diff --git a/pdf/generate_pdf.inc b/pdf/generate_pdf.inc index 8ba025a..a834899 100755 --- a/pdf/generate_pdf.inc +++ b/pdf/generate_pdf.inc @@ -156,8 +156,8 @@ function generate_pdf() $pdf->SetX(200); $pdf->SetTextColor(0, 0, 0); $pdf->SetFont('', ''); - $sign = $path . "/pdf/images/sign.png"; - $pdf->Image($sign, $pdf->GetX(), $pdf->GetY() - 20, 50, 0); + //$sign = $path . "/pdf/images/sign.png"; + //$pdf->Image($sign, $pdf->GetX(), $pdf->GetY() - 20, 50, 0); $pdf->Cell(0, 8, 'Prof. Madhu Belur', 0, 1, 'L'); $pdf->SetX(194); $pdf->Cell(0, 7, 'Principal Investigator - FOSSEE', 0, 1, 'L'); |