Changeset 18293 for branches/comu-ver2/html/require.php
- Timestamp:
- 2009/09/17 19:45:44 (17 years ago)
- File:
-
- 1 edited
-
branches/comu-ver2/html/require.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/comu-ver2/html/require.php
r18234 r18293 25 25 define("HTML_PATH", rtrim(realpath(rtrim(realpath(dirname(__FILE__)), '/\\') . '/'), '/\\') . '/'); 26 26 27 require_once(HTML_PATH . "define.php"); 28 require_once(HTML_PATH . HTML2DATA_DIR . "require_base.php"); 27 require_once HTML_PATH . 'define.php'; 28 define('FRONT_FUNCTION_PC_SITE', true); 29 require_once HTML_PATH . HTML2DATA_DIR . 'require_base.php'; 29 30 30 // 携帯端末の場合は mobile 以下へリダイレクトする。 31 if (SC_MobileUserAgent::isMobile()) { 32 $url = ""; 33 if (SC_Utils_Ex::sfIsHTTPS()) { 34 $url = MOBILE_SSL_URL; 35 } else { 36 $url = MOBILE_SITE_URL; 37 } 38 39 if (preg_match('|^' . URL_DIR . '(.*)$|', $_SERVER['REQUEST_URI'], $matches)) { 40 $path = $matches[1]; 41 } else { 42 $path = ''; 43 } 44 45 header("Location: ". SC_Utils_Ex::sfRmDupSlash($url . $path)); 46 exit; 47 } 31 // 携帯端末の場合、モバイルサイトへリダイレクトする 32 SC_MobileUserAgent::sfAutoRedirectMobileSite(); 48 33 49 34 ?>
Note: See TracChangeset
for help on using the changeset viewer.
