Changeset 20947
- Timestamp:
- 2011/05/20 13:12:25 (13 years ago)
- Location:
- branches/version-2_11-dev
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_11-dev/data/class/SC_Initial.php
r20901 r20947 57 57 $this->defineErrorType(); 58 58 $this->defineConstants(); 59 $this->complementConstants(); 59 60 $this->phpconfigInit(); 60 61 $this->createCacheDir(); … … 218 219 die(CACHE_REALDIR . "../mtb_constants_init.php が存在しません"); 219 220 } 221 } 222 223 /** 224 * パラメータの補完 225 * 226 * ソースのみ差し替えたバージョンアップを考慮したもの。 227 * 228 * @access protected 229 * @return void 230 */ 231 function complementConstants() { 232 // 2.11.1 → 2.11.2 233 /** 郵便番号CSVのZIPアーカイブファイルの取得元 */ 234 $this->defineIfNotDefined('ZIP_DOWNLOAD_URL', "http://www.post.japanpost.jp/zipcode/dl/kogaki/zip/ken_all.zip"); 220 235 } 221 236 … … 357 372 $_REQUEST = array_merge($_GET, $_POST); 358 373 } 374 375 /** 376 * 指定された名前の定数が存在しない場合、指定された値で定義 377 * 378 * @param string $name 定数の名前。 379 * @param mixed $value 定数の値。 380 * @return boolean 成功した場合に TRUE を、失敗した場合に FALSE を返します。 381 */ 382 function defineIfNotDefined($name, $value = null) { 383 if (!defined($name)) { 384 define($name, $value); 385 } 386 } 359 387 } 360 388 ?> -
branches/version-2_11-dev/data/mtb_constants_init.php
r20532 r20947 599 599 /** プラグイン有効/無効:無効 */ 600 600 define('PLUGIN_ENABLE_FALSE', "2"); 601 /** 郵便番号CSVのZIPアーカイブファイルの取得元 */ 602 define('ZIP_DOWNLOAD_URL', "http://www.post.japanpost.jp/zipcode/dl/kogaki/zip/ken_all.zip"); 601 603 ?> -
branches/version-2_11-dev/html/install/sql/insert_data.sql
r20886 r20947 1267 1267 INSERT INTO mtb_constants (id, name, rank, remarks) VALUES ('PLUGIN_ENABLE_TRUE', '"1"', 1222, 'プラグイン有効/無効:有効'); 1268 1268 INSERT INTO mtb_constants (id, name, rank, remarks) VALUES ('PLUGIN_ENABLE_FALSE', '"2"', 1223, 'プラグイン有効/無効:無効'); 1269 INSERT INTO mtb_constants (id, name, rank, remarks) VALUES ('ZIP_DOWNLOAD_URL', '"http://www.post.japanpost.jp/zipcode/dl/kogaki/zip/ken_all.zip"', 1224, '郵便番号CSVのZIPアーカイブファイルの取得元'); 1269 1270 1270 1271 INSERT INTO dtb_index_list (table_name, column_name, recommend_flg, recommend_comment) VALUES ('dtb_customer', 'email_mobile', 0, '会員数増加時のログイン処理速度を向上させたいときに試してみてください');
Note: See TracChangeset
for help on using the changeset viewer.