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/html/require.php

    r18562 r18609  
    2222 */ 
    2323 
    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 バージョン依存対策 
     25define("HTML_PATH", rtrim(realpath(rtrim(realpath(dirname(__FILE__)), '/\\') . '/'), '/\\') . '/'); 
    2726 
    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     } 
     27require_once HTML_PATH . 'handle_error.php'; 
     28require_once HTML_PATH . 'define.php'; 
     29define('FRONT_FUNCTION_PC_SITE', true); 
     30require_once HTML_PATH . HTML2DATA_DIR . 'require_base.php'; 
    3631 
    37     if (preg_match('|^' . URL_DIR . '(.*)$|', $_SERVER['REQUEST_URI'], $matches)) { 
    38         $path = $matches[1]; 
    39     } else { 
    40         $path = ''; 
    41     } 
     32// 携帯端末の場合、モバイルサイトへリダイレクトする 
     33SC_MobileUserAgent::sfAutoRedirectMobileSite(); 
    4234 
    43     header("Location: ". SC_Utils_Ex::sfRmDupSlash($url . $path)); 
    44     exit; 
    45 } 
    46  
     35// 絵文字変換 (除去) フィルターを組み込む。 
     36ob_start(array('SC_MobileEmoji', 'handler')); 
    4737?> 
Note: See TracChangeset for help on using the changeset viewer.