Commit 83fb4be9fea126ec979d8337a00a8756d03e9915
1 parent
4e5a0f41
KTC-98
"Remove 'Note to QA' from the UI" Added commented previous code as example. Committed By: Kevin Reviewed By: Conrad git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@6673 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
9 additions
and
3 deletions
plugins/ktstandard/PDFGeneratorAction.php
| @@ -88,9 +88,10 @@ class PDFGeneratorAction extends KTDocumentAction { | @@ -88,9 +88,10 @@ class PDFGeneratorAction extends KTDocumentAction { | ||
| 88 | array('ktcore.widgets.selection', array( | 88 | array('ktcore.widgets.selection', array( |
| 89 | 'label' => _kt("Type of conversion"), | 89 | 'label' => _kt("Type of conversion"), |
| 90 | 'description' => _kt('The following are the types of conversions you can perform on this document.'), | 90 | 'description' => _kt('The following are the types of conversions you can perform on this document.'), |
| 91 | - 'important_description' => _kt('QA NOTE: Permissions checks are required here...'), | 91 | + //'important_description' => _kt('QA NOTE: Permissions checks are required here...'), |
| 92 | 'name' => 'convert_type', | 92 | 'name' => 'convert_type', |
| 93 | - 'vocab' => array('Download as PDF', 'Duplicate as PDF', 'Replace as PDF'), | 93 | + //'vocab' => array('Download as PDF', 'Duplicate as PDF', 'Replace as PDF'), |
| 94 | + 'vocab' => array('Download as PDF'), | ||
| 94 | 'simple_select' => true, | 95 | 'simple_select' => true, |
| 95 | 'required' => true, | 96 | 'required' => true, |
| 96 | )), | 97 | )), |
| @@ -217,8 +218,13 @@ class PDFGeneratorAction extends KTDocumentAction { | @@ -217,8 +218,13 @@ class PDFGeneratorAction extends KTDocumentAction { | ||
| 217 | header("Content-Disposition: attachment; filename=\"" . $sUrlEncodedFileName . ".pdf\""); | 218 | header("Content-Disposition: attachment; filename=\"" . $sUrlEncodedFileName . ".pdf\""); |
| 218 | header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); | 219 | header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); |
| 219 | header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); | 220 | header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); |
| 220 | - header("Cache-Control: must-revalidate"); | 221 | + // HTTP/1.1 |
| 222 | + header("Cache-Control: no-store, no-cache, must-revalidate"); | ||
| 223 | + header("Cache-Control: post-check=0, pre-check=0", false); | ||
| 221 | 224 | ||
| 225 | + // HTTP/1.0 | ||
| 226 | + header("Pragma: no-cache"); | ||
| 227 | + | ||
| 222 | // Get a filelike object and send it to the browser | 228 | // Get a filelike object and send it to the browser |
| 223 | $oFile = new KTFSFileLike($sTempFilename); | 229 | $oFile = new KTFSFileLike($sTempFilename); |
| 224 | KTFileLikeUtil::send_contents($oFile); | 230 | KTFileLikeUtil::send_contents($oFile); |