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

    r18562 r18609  
    11<?php 
    2 /** 
    3  * 
     2/* 
    43 * This file is part of EC-CUBE 
    54 * 
     
    2120 * along with this program; if not, write to the Free Software 
    2221 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. 
     22 */ 
    2323 
    24  */ 
    25 $mobile_require_php_dir = realpath(dirname( __FILE__)); 
    26 require_once($mobile_require_php_dir . "/../define.php"); 
     24// rtrim は PHP バージョン依存対策 
     25define("HTML_PATH", rtrim(realpath(rtrim(realpath(dirname(__FILE__)), '/\\') . '/../'), '/\\') . '/'); 
    2726 
     27require_once HTML_PATH . 'handle_error.php'; 
     28require_once HTML_PATH . 'define.php'; 
    2829define('MOBILE_SITE', true); 
     30require_once HTML_PATH . HTML2DATA_DIR . 'require_base.php'; 
    2931 
    30 require_once($mobile_require_php_dir . "/../" . HTML2DATA_DIR . "require_base.php"); 
     32// モバイルサイトを利用しない設定の場合、落とす。 
     33if (USE_MOBILE === false) { 
     34    // XXX PCサイトにリダイレクトする方がスマートか? 若しくはHTTPエラーとすべきか? 
     35    exit; 
     36} 
    3137 
    3238// モバイルサイト用の初期処理を実行する。 
     
    3844// Moba8対応(Moba8パラメータ引き継ぎ) 
    3945if (function_exists("sfGetMoba8Param") == TRUE) { 
    40     sfGetMoba8Param($_GET['a8']); 
     46    sfGetMoba8Param($_GET['a8']); 
    4147} 
     48 
     49ob_start(); 
    4250?> 
Note: See TracChangeset for help on using the changeset viewer.