Changeset 18609 for tmp/version-2_5-test/html/require.php
- Timestamp:
- 2010/03/11 10:35:11 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tmp/version-2_5-test/html/require.php
r18562 r18609 22 22 */ 23 23 24 $require_php_dir = realpath(dirname( __FILE__)); 25 require_once($require_php_dir . "/define.php"); 26 require_once($require_php_dir . HTML2DATA_DIR . "require_base.php"); 24 // rtrim は PHP バージョン依存対策 25 define("HTML_PATH", rtrim(realpath(rtrim(realpath(dirname(__FILE__)), '/\\') . '/'), '/\\') . '/'); 27 26 28 // 携帯端末の場合は mobile 以下へリダイレクトする。 29 if (SC_MobileUserAgent::isMobile()) { 30 $url = ""; 31 if (SC_Utils_Ex::sfIsHTTPS()) { 32 $url = MOBILE_SSL_URL; 33 } else { 34 $url = MOBILE_SITE_URL; 35 } 27 require_once HTML_PATH . 'handle_error.php'; 28 require_once HTML_PATH . 'define.php'; 29 define('FRONT_FUNCTION_PC_SITE', true); 30 require_once HTML_PATH . HTML2DATA_DIR . 'require_base.php'; 36 31 37 if (preg_match('|^' . URL_DIR . '(.*)$|', $_SERVER['REQUEST_URI'], $matches)) { 38 $path = $matches[1]; 39 } else { 40 $path = ''; 41 } 32 // 携帯端末の場合、モバイルサイトへリダイレクトする 33 SC_MobileUserAgent::sfAutoRedirectMobileSite(); 42 34 43 header("Location: ". SC_Utils_Ex::sfRmDupSlash($url . $path)); 44 exit; 45 } 46 35 // 絵文字変換 (除去) フィルターを組み込む。 36 ob_start(array('SC_MobileEmoji', 'handler')); 47 37 ?>
Note: See TracChangeset
for help on using the changeset viewer.