Changeset 21011 for branches/version-2_11-dev/html/require.php
- Timestamp:
- 2011/07/04 13:40:13 (15 years ago)
- File:
-
- 1 edited
-
branches/version-2_11-dev/html/require.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_11-dev/html/require.php
r20764 r21011 23 23 24 24 // rtrim は PHP バージョン依存対策 25 define("HTML_REALDIR", rtrim(realpath(rtrim(realpath(dirname(__FILE__)), '/\\') . '/'), '/\\') . '/'); 25 define('HTML_REALDIR', rtrim(realpath(rtrim(realpath(dirname(__FILE__)), '/\\') . '/'), '/\\') . '/'); 26 27 if (ADMIN_FUNCTION !== true) { 28 define('FRONT_FUNCTION', true); 29 } 26 30 27 31 require_once HTML_REALDIR . 'define.php'; 28 require_once HTML_REALDIR . 'handle_error.php';29 require_once HTML_REALDIR . HTML2DATA_DIR . 'require_base.php';30 32 31 if (SC_Display_Ex::detectDevice() == DEVICE_TYPE_MOBILE){ 32 define('MOBILE_SITE', true); 33 if (SAFE === true) { 34 require_once HTML_REALDIR . HTML2DATA_DIR . 'require_safe.php'; 35 } else { 36 require_once HTML_REALDIR . 'handle_error.php'; 37 require_once HTML_REALDIR . HTML2DATA_DIR . 'require_base.php'; 38 } 39 40 if (SC_Display_Ex::detectDevice() == DEVICE_TYPE_MOBILE) { 33 41 $objMobile = new SC_Helper_Mobile_Ex(); 34 42 $objMobile->sfMobileInit(); 35 43 ob_start(); 36 37 44 } else { 38 define('FRONT_FUNCTION_PC_SITE', true);39 40 45 // 絵文字変換 (除去) フィルターを組み込む。 41 46 ob_start(array('SC_MobileEmoji', 'handler')); 42 47 } 43 ?>
Note: See TracChangeset
for help on using the changeset viewer.
