Ignore:
Timestamp:
2011/07/04 13:35:35 (13 years ago)
Author:
Seasoft
Message:

#1373 (require_safe.php で設定している HTML_REALDIR が誤っている)

  • require.php に依存させる事で解決。

#1392 (モバイルサイトの判別に SC_Display_Ex#detectDevice を使う)
#1393 (require_safe.php で絵文字変換 (除去) フィルターの組み込み条件が誤っている)

  • require.php に依存させる事で解決。
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_11-dev/data/require_safe.php

    r20764 r21010  
    2828 */ 
    2929 
    30 // rtrim は PHP バージョン依存対策 
    31 define("HTML_REALDIR", rtrim(realpath(rtrim(realpath(dirname(__FILE__)), '/\\') . '/'), '/\\') . '/'); 
    32  
    33 if (!defined("DATA_REALDIR")) { 
    34     define("DATA_REALDIR", HTML_REALDIR . HTML2DATA_DIR); 
     30if (!defined('DATA_REALDIR')) { 
     31    define('DATA_REALDIR', HTML_REALDIR . HTML2DATA_DIR); 
    3532} 
    3633 
     
    4037// 各種クラス読み込み 
    4138require_once DATA_REALDIR . 'require_classes.php'; 
    42  
    43 if (SC_Display::detectDevice() == DEVICE_TYPE_MOBILE) { 
    44     ob_start(array('SC_MobileEmoji', 'handler')); 
    45 } 
    4639?> 
Note: See TracChangeset for help on using the changeset viewer.