Changeset 17110 for branches/comu-ver2/html/require.php
- Timestamp:
- 2008/03/07 10:44:54 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/comu-ver2/html/require.php
r16994 r17110 86 86 // 携帯端末の場合は mobile 以下へリダイレクトする。 87 87 if (SC_MobileUserAgent::isMobile()) { 88 $url = ""; 89 if (SC_Utils_Ex::sfIsHTTPS()) { 90 $url = MOBILE_SSL_URL; 91 } else { 92 $url = MOBILE_SITE_URL; 93 } 94 88 95 if (preg_match('|^' . URL_DIR . '(.*)$|', $_SERVER['REQUEST_URI'], $matches)) { 89 96 $path = $matches[1]; … … 91 98 $path = ''; 92 99 } 93 94 $url = ""; 95 if (SC_Utils_Ex::sfIsHTTPS()) { 96 $url = SSL_URL; 97 } else { 98 $url = SITE_URL; 99 } 100 header("Location: " 101 . SC_Utils_Ex::sfRmDupSlash($url . URL_DIR . "mobile/" . $path)); 100 101 header("Location: ". SC_Utils_Ex::sfRmDupSlash($url . $path)); 102 102 exit; 103 103 }
Note: See TracChangeset
for help on using the changeset viewer.