Changeset 9272
- Timestamp:
- Nov 20, 2008, 11:17:02 AM (14 years ago)
- Location:
- OpenPNE/branches/stable-2.10.x/webapp/modules
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
OpenPNE/branches/stable-2.10.x/webapp/modules/admin/do/csv_member.php
r9251 r9272 43 43 $member_csv_data = $this->create_csv_data($member_key_string, $c_member_list); 44 44 //IE以外の場合、キャッシュをさせないヘッダを出力 45 if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') == false) {45 if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') === false) { 46 46 send_nocache_headers(true); 47 47 } -
OpenPNE/branches/stable-2.10.x/webapp/modules/pc/do/c_file_download.php
r9251 r9272 50 50 // IE の場合のみ、ファイル名を SJIS に変換し、キャッシュをさせないヘッダを出力しない 51 51 $original_filename = mb_convert_encoding($original_filename, 'SJIS', 'UTF-8'); 52 } else { 53 send_nocache_headers(true); 54 } 52 55 $original_filename = str_replace(array("\r", "\n"), '', $original_filename); 53 56 … … 55 58 header('Content-Length: '. strlen($file['bin'])); 56 59 header('Content-Type: application/octet-stream'); 57 58 } else {59 $original_filename = str_replace(array("\r", "\n"), '', $original_filename);60 61 send_nocache_headers(true);62 header('Content-Disposition: attachment; filename="' . $original_filename . '"');63 header('Content-Length: '. strlen($file['bin']));64 header('Content-Type: application/octet-stream');65 }66 60 echo $file['bin']; 67 61 exit;
Note: See TracChangeset
for help on using the changeset viewer.