- Timestamp:
- 2010/12/29 16:50:44 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/SC_MobileUserAgent.php
r18701 r19787 148 148 } 149 149 150 /**151 * 携帯端末の場合、モバイルサイトへリダイレクトする152 *153 * @return void154 */155 function sfAutoRedirectMobileSite() {156 // 携帯端末ではない場合、処理しない157 if (SC_MobileUserAgent::isNonMobile()) return;158 159 $url = SC_Utils_Ex::sfIsHTTPS()160 ? MOBILE_SSL_URL161 : MOBILE_SITE_URL162 ;163 164 $url .= (preg_match('|^' . URL_DIR . '(.*)$|', $_SERVER['REQUEST_URI'], $matches))165 ? $matches[1]166 : ''167 ;168 169 header("Location: ". SC_Utils_Ex::sfRmDupSlash($url));170 exit;171 }172 150 } 173 151 ?>
Note: See TracChangeset
for help on using the changeset viewer.
