|
From: Jon O. <jon...@us...> - 2006-08-24 21:13:35
|
Update of /cvsroot/mxbb/mx_pafiledb/pafiledb/modules In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv24435/modules/mx_pafiledb/pafiledb/modules Modified Files: pa_download.php Log Message: mimetypes... Index: pa_download.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_download.php,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** pa_download.php 13 Aug 2006 19:44:45 -0000 1.19 --- pa_download.php 24 Aug 2006 21:13:32 -0000 1.20 *************** *** 214,230 **** else { ! // ========================================================================= ! // now send the file to the user so he can enjoy it :D ! // ========================================================================= ! if($pafiledb_functions->get_extension($physical_filename) == 'pdf') ! { ! $mimetype = 'application/pdf'; ! } ! else ! { ! $mimetype = 'application/force-download'; ! } ! ! if(!send_file_to_browser($real_filename, $mimetype, $physical_filename, $module_root_path . $upload_dir)) { mx_message_die(GENERAL_ERROR, $lang['Error_no_download'] . '<br /><br /><b>404 File Not Found:</b> The File <i>' . $real_filename . '</i> does not exist.'); --- 214,218 ---- else { ! if(!send_file_to_browser($real_filename, $physical_filename, $module_root_path . $upload_dir)) { mx_message_die(GENERAL_ERROR, $lang['Error_no_download'] . '<br /><br /><b>404 File Not Found:</b> The File <i>' . $real_filename . '</i> does not exist.'); |