ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 9283


Ignore:
Timestamp:
Nov 20, 2008, 4:47:41 PM (12 years ago)
Author:
akamine
Message:

#3113 各ファイルのコード修正

Location:
OpenPNE/branches/stable-2.12.x/webapp/modules
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/stable-2.12.x/webapp/modules/admin/do/download_xml.php

    r9269 r9283  
    7676            header("Content-Type: application/octet-stream");
    7777            header("Content-Disposition: attachment; filename=download.rdf");
    78             }
    7978            echo $xml;
    8079            //echo "<pre>".htmlspecialchars($xml)."</pre>";
  • OpenPNE/branches/stable-2.12.x/webapp/modules/pc/do/c_file_download.php

    r9269 r9283  
    6464            send_nocache_headers(true);
    6565        }
    66             $original_filename = str_replace(array("\r", "\n"), '', $original_filename);
     66        $original_filename = str_replace(array("\r", "\n"), '', $original_filename);
    6767
    68             header('Content-Disposition: attachment; filename="' . $original_filename . '"');
    69             header('Content-Length: '. strlen($file['bin']));
    70             header('Content-Type: application/octet-stream');
     68        header('Content-Disposition: attachment; filename="' . $original_filename . '"');
     69        header('Content-Length: '. strlen($file['bin']));
     70        header('Content-Type: application/octet-stream');
    7171        echo $file['bin'];
    7272        exit;
  • OpenPNE/branches/stable-2.12.x/webapp/modules/pc/do/h_message_file_download.php

    r9270 r9283  
    4141        $original_filename = $file['original_filename'];
    4242        if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false) {
    43             // IE の場合のみ、ファイル名を SJIS に変換、キャッシュをさせないヘッダを出力しない
     43            // IE の場合のみ、ファイル名を SJIS に変換、キャッシュをさせないヘッダを出力しない
    4444            $original_filename = mb_convert_encoding($original_filename, 'SJIS', 'UTF-8');
    4545        } else {
    4646            send_nocache_headers(true);
    4747        }
    48             $original_filename = str_replace(array("\r", "\n"), '', $original_filename);
     48        $original_filename = str_replace(array("\r", "\n"), '', $original_filename);
    4949
    50             header('Content-Disposition: attachment; filename="' . $original_filename . '"');
    51             header('Content-Length: '. strlen($file['bin']));
    52             header('Content-Type: application/octet-stream');
     50        header('Content-Disposition: attachment; filename="' . $original_filename . '"');
     51        header('Content-Length: '. strlen($file['bin']));
     52        header('Content-Type: application/octet-stream');
    5353        echo $file['bin'];
    5454        exit;
Note: See TracChangeset for help on using the changeset viewer.