Ignore:
Timestamp:
2010/03/11 10:35:11 (14 years ago)
Author:
kajiwara
Message:

正式版にナイトリービルド版をマージしてみるテスト

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tmp/version-2_5-test/data/class/SC_MobileUserAgent.php

    r18562 r18609  
    147147        } 
    148148    } 
     149 
     150    /** 
     151     * 携帯端末の場合、モバイルサイトへリダイレクトする 
     152     * 
     153     * @return void 
     154     */ 
     155    function sfAutoRedirectMobileSite() { 
     156        // 携帯端末ではない場合、処理しない 
     157        if (SC_MobileUserAgent::isNonMobile()) return; 
     158 
     159        $url = SC_Utils_Ex::sfIsHTTPS() 
     160            ? MOBILE_SSL_URL 
     161            : MOBILE_SITE_URL 
     162        ; 
     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    } 
    149172} 
    150173?> 
Note: See TracChangeset for help on using the changeset viewer.