|
From: Jon O. <jon...@us...> - 2006-08-25 14:18:56
|
Update of /cvsroot/mxbb/mx_pafiledb/pafiledb/includes In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv10269/modules/mx_pafiledb/pafiledb/includes Modified Files: functions.php Log Message: force attachement type downloads Index: functions.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/includes/functions.php,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -d -r1.31 -r1.32 *** functions.php 24 Aug 2006 21:13:31 -0000 1.31 --- functions.php 25 Aug 2006 14:18:48 -0000 1.32 *************** *** 1875,1886 **** header('Pragma: public'); // Send out the Headers ! if ( isset($_GET['save_as']) ) { // // Force the "save file as" dialog // ! //$mimetype = 'application/x-download'; // Fix for avoiding browser doing an 'inline' for known mimetype anyway header('Content-Type: ' . $mimetype . '; name="' . $real_filename . '"'); header('Content-Disposition: attachment; filename="' . $real_filename . '"'); --- 1875,1887 ---- header('Pragma: public'); + header('Cache-control: private, must-revalidate'); // Send out the Headers ! if ( isset($_GET['save_as']) || true) { // // Force the "save file as" dialog // ! $mimetype = 'application/x-download'; // Fix for avoiding browser doing an 'inline' for known mimetype anyway header('Content-Type: ' . $mimetype . '; name="' . $real_filename . '"'); header('Content-Disposition: attachment; filename="' . $real_filename . '"'); |