Ignore:
Timestamp:
2013/05/02 18:11:36 (11 years ago)
Author:
h_yoshimoto
Message:

#2236 2.12.3リリース以降の2.12-devへのコミット差し戻し

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/SC_Image.php

    r22567 r22796  
    2323 
    2424//---- アップロードファイル加工クラス(thumb.phpとセットで使用する) 
    25 class SC_Image  
    26 { 
     25class SC_Image { 
    2726 
    2827    var $tmp_dir; 
    2928 
    30     function __construct($tmp_dir) 
    31     { 
     29    function __construct($tmp_dir) { 
    3230        // ヘッダファイル読込 
    3331        $this->tmp_dir = rtrim($tmp_dir, '/') . '/'; 
     
    3533 
    3634    //--- 一時ファイル生成(サムネイル画像生成用) 
    37     function makeTempImage($keyname, $max_width, $max_height) 
    38     { 
     35    function makeTempImage($keyname, $max_width, $max_height) { 
    3936        // 一意なIDを取得する。 
    4037        $mainname = uniqid('').'.'; 
     
    4744 
    4845    //--- ファイルを指定保存DIRへ移動 
    49     function moveTempImage($filename, $save_dir) 
    50     { 
     46    function moveTempImage($filename, $save_dir) { 
    5147        // コピー元ファイル、コピー先ディレクトリが存在する場合にのみ実行する 
    5248        $from_path = $this->tmp_dir.$filename; 
     
    6258 
    6359    //---- 指定ファイルを削除 
    64     function deleteImage($filename, $dir) 
    65     { 
     60    function deleteImage($filename, $dir) { 
    6661        if (file_exists($dir.'/'.$filename)) { 
    6762            unlink($dir.'/'.$filename); 
     
    7974     * @param array 新ファイル名を格納した配列 
    8075     */ 
    81     function MakeThumb($FromImgPath , $ToImgPath , $tmpMW , $tmpMH, $newFileName = '') 
    82     { 
     76    function MakeThumb($FromImgPath , $ToImgPath , $tmpMW , $tmpMH, $newFileName = '') { 
    8377        // 画像の最大横幅(単位:ピクセル) 
    8478        $ThmMaxWidth = LARGE_IMAGE_WIDTH; 
Note: See TracChangeset for help on using the changeset viewer.