Ignore:
Timestamp:
2010/12/31 14:43:16 (13 years ago)
Author:
Seasoft
Message:

#834(パラメータの定数名に「URL」を含むにもかかわらず、パスのみのものがある)

  • 一斉置換前の現状記録のためのコミット

#628(未使用処理・定義などの削除)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/SC_Initial.php

    r19802 r19803  
    190190        $errorMessage = "<div style='color: #F00; font-weight: bold; " 
    191191            . "background-color: #FEB; text-align: center'>" 
    192             . CACHE_PATH 
     192            . CACHE_FILE_PATH 
    193193            . " にユーザ書込み権限(777等)を付与して下さい。</div>"; 
    194194 
    195195        // 定数を設定 
    196         if (is_file(CACHE_PATH . "mtb_constants.php")) { 
    197             require_once(CACHE_PATH . "mtb_constants.php"); 
     196        if (is_file(CACHE_FILE_PATH . "mtb_constants.php")) { 
     197            require_once(CACHE_FILE_PATH . "mtb_constants.php"); 
    198198 
    199199            // キャッシュが無ければ, 初期データからコピー 
    200         } elseif (is_file(CACHE_PATH . "../mtb_constants_init.php")) { 
    201  
    202             $mtb_constants = file_get_contents(CACHE_PATH . "../mtb_constants_init.php"); 
    203             if (is_writable(CACHE_PATH)) { 
    204                 $handle = fopen(CACHE_PATH . "mtb_constants.php", "w"); 
     200        } elseif (is_file(CACHE_FILE_PATH . "../mtb_constants_init.php")) { 
     201 
     202            $mtb_constants = file_get_contents(CACHE_FILE_PATH . "../mtb_constants_init.php"); 
     203            if (is_writable(CACHE_FILE_PATH)) { 
     204                $handle = fopen(CACHE_FILE_PATH . "mtb_constants.php", "w"); 
    205205                if (!$handle) { 
    206206                    die($errorMessage); 
     
    211211                fclose($handle); 
    212212 
    213                 require_once(CACHE_PATH . "mtb_constants.php"); 
     213                require_once(CACHE_FILE_PATH . "mtb_constants.php"); 
    214214            } else { 
    215215                die($errorMessage); 
    216216            } 
    217217        } else { 
    218             die(CACHE_PATH . "../mtb_constants_init.php が存在しません"); 
     218            die(CACHE_FILE_PATH . "../mtb_constants_init.php が存在しません"); 
    219219        } 
    220220    } 
     
    235235            } 
    236236 
    237             if (!file_exists(MOBILE_COMPILE_DIR)) { 
    238                 mkdir(MOBILE_COMPILE_DIR); 
    239             } 
    240  
    241             if (!file_exists(SMARTPHONE_COMPILE_DIR)) { 
    242                 mkdir(SMARTPHONE_COMPILE_DIR); 
    243             } 
    244  
    245             if (!file_exists(COMPILE_ADMIN_DIR)) { 
    246                 mkdir(COMPILE_ADMIN_DIR); 
    247             } 
    248  
    249             if (!file_exists(COMPILE_FTP_DIR)) { 
    250                 mkdir(COMPILE_FTP_DIR); 
     237            if (!file_exists(MOBILE_COMPILE_FILE_PATH)) { 
     238                mkdir(MOBILE_COMPILE_FILE_PATH); 
     239            } 
     240 
     241            if (!file_exists(SMARTPHONE_COMPILE_FILE_PATH)) { 
     242                mkdir(SMARTPHONE_COMPILE_FILE_PATH); 
     243            } 
     244 
     245            if (!file_exists(COMPILE_ADMIN_FILE_PATH)) { 
     246                mkdir(COMPILE_ADMIN_FILE_PATH); 
    251247            } 
    252248        } 
Note: See TracChangeset for help on using the changeset viewer.