Changeset 19803 for branches/version-2_5-dev/data/class/SC_Initial.php
- Timestamp:
- 2010/12/31 14:43:16 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/SC_Initial.php
r19802 r19803 190 190 $errorMessage = "<div style='color: #F00; font-weight: bold; " 191 191 . "background-color: #FEB; text-align: center'>" 192 . CACHE_ PATH192 . CACHE_FILE_PATH 193 193 . " にユーザ書込み権限(777等)を付与して下さい。</div>"; 194 194 195 195 // 定数を設定 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"); 198 198 199 199 // キャッシュが無ければ, 初期データからコピー 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"); 205 205 if (!$handle) { 206 206 die($errorMessage); … … 211 211 fclose($handle); 212 212 213 require_once(CACHE_ PATH . "mtb_constants.php");213 require_once(CACHE_FILE_PATH . "mtb_constants.php"); 214 214 } else { 215 215 die($errorMessage); 216 216 } 217 217 } else { 218 die(CACHE_ PATH . "../mtb_constants_init.php が存在しません");218 die(CACHE_FILE_PATH . "../mtb_constants_init.php が存在しません"); 219 219 } 220 220 } … … 235 235 } 236 236 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); 251 247 } 252 248 }
Note: See TracChangeset
for help on using the changeset viewer.