Changeset 22567 for branches/version-2_12-dev/data/class/SC_Initial.php
- Timestamp:
- 2013/02/18 19:09:54 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/SC_Initial.php
r22206 r22567 28 28 * @version $Id$ 29 29 */ 30 class SC_Initial { 30 class SC_Initial 31 { 31 32 32 33 // {{{ cunstructor … … 35 36 * コンストラクタ. 36 37 */ 37 function __construct() { 38 function __construct() 39 { 38 40 39 41 /** EC-CUBEのバージョン */ … … 50 52 * @return void 51 53 */ 52 function init() { 54 function init() 55 { 53 56 $this->requireInitialConfig(); 54 57 $this->defineDSN(); // requireInitialConfig メソッドより後で実行 … … 70 73 * @return void 71 74 */ 72 function requireInitialConfig() { 75 function requireInitialConfig() 76 { 73 77 74 78 define('CONFIG_REALFILE', realpath(dirname(__FILE__)) . '/../config/config.php'); … … 85 89 * @deprecated 下位互換用 86 90 */ 87 function defineDSN() { 91 function defineDSN() 92 { 88 93 if (defined('DB_TYPE') && defined('DB_USER') && defined('DB_PASSWORD') 89 94 && defined('DB_SERVER') && defined('DB_PORT') && defined('DB_NAME') … … 99 104 * @deprecated 100 105 */ 101 function setErrorReporting() { 106 function setErrorReporting() 107 { 102 108 error_reporting(E_ALL & ~E_NOTICE); 103 109 // PHP 5.3.0対応 … … 115 121 * @return void 116 122 */ 117 function phpconfigInit() { 123 function phpconfigInit() 124 { 118 125 ini_set('html_errors', '1'); 119 126 ini_set('mbstring.http_input', CHAR_CODE); … … 150 157 * @return void 151 158 */ 152 function defineDirectoryIndex() { 159 function defineDirectoryIndex() 160 { 153 161 154 162 // DirectoryIndex の実ファイル名 … … 181 189 * @return void 182 190 */ 183 function defineParameter() { 191 function defineParameter() 192 { 184 193 185 194 $errorMessage … … 224 233 * @return void 225 234 */ 226 function complementParameter() { 235 function complementParameter() 236 { 227 237 } 228 238 … … 235 245 * @return void 236 246 */ 237 function createCacheDir() { 247 function createCacheDir() 248 { 238 249 if (defined('HTML_REALDIR')) { 239 250 umask(0); … … 262 273 * @return void 263 274 */ 264 function defineConstants() { 275 function defineConstants() 276 { 265 277 // LC_Page_Error用 266 278 /** 指定商品ページがない */ … … 429 441 * @return void 430 442 */ 431 function stripslashesDeepGpc() { 443 function stripslashesDeepGpc() 444 { 432 445 // Strip magic quotes from request data. 433 446 if (get_magic_quotes_gpc() … … 459 472 * @return void 460 473 */ 461 function resetSuperglobalsRequest() { 474 function resetSuperglobalsRequest() 475 { 462 476 $_REQUEST = array_merge($_GET, $_POST); 463 477 } … … 470 484 * @return void 471 485 */ 472 function defineIfNotDefined($name, $value = null) { 486 function defineIfNotDefined($name, $value = null) 487 { 473 488 if (!defined($name)) { 474 489 define($name, $value); … … 481 496 * @return void 482 497 */ 483 function setTimezone() { 498 function setTimezone() 499 { 484 500 date_default_timezone_set('Asia/Tokyo'); 485 501 }
Note: See TracChangeset
for help on using the changeset viewer.
