Changeset 21514 for branches/version-2_12-dev/data/class/SC_Initial.php
- Timestamp:
- 2012/02/15 19:56:17 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/SC_Initial.php
r21481 r21514 88 88 /** サイト用DB */ 89 89 define ('DEFAULT_DSN', 90 DB_TYPE . "://" . DB_USER . ":". DB_PASSWORD . "@"91 . DB_SERVER . ":" .DB_PORT . "/". DB_NAME);90 DB_TYPE . '://' . DB_USER . ':' . DB_PASSWORD . "@" 91 . DB_SERVER . ':' .DB_PORT . '/' . DB_NAME); 92 92 } 93 93 } … … 184 184 185 185 // 定数を設定 186 if (is_file(CACHE_REALDIR . "mtb_constants.php")) {186 if (is_file(CACHE_REALDIR . 'mtb_constants.php')) { 187 187 require_once CACHE_REALDIR . 'mtb_constants.php'; 188 188 189 189 // キャッシュが無ければ, 初期データからコピー 190 } elseif (is_file(CACHE_REALDIR . "../mtb_constants_init.php")) {191 192 $mtb_constants = file_get_contents(CACHE_REALDIR . "../mtb_constants_init.php");190 } elseif (is_file(CACHE_REALDIR . '../mtb_constants_init.php')) { 191 192 $mtb_constants = file_get_contents(CACHE_REALDIR . '../mtb_constants_init.php'); 193 193 if (is_writable(CACHE_REALDIR)) { 194 $handle = fopen(CACHE_REALDIR . "mtb_constants.php", 'w');194 $handle = fopen(CACHE_REALDIR . 'mtb_constants.php', 'w'); 195 195 if (!$handle) { 196 196 die($errorMessage); … … 206 206 } 207 207 } else { 208 die(CACHE_REALDIR . "../mtb_constants_init.php が存在しません");208 die(CACHE_REALDIR . '../mtb_constants_init.php が存在しません'); 209 209 } 210 210 }
Note: See TracChangeset
for help on using the changeset viewer.