Ignore:
Timestamp:
2007/09/28 10:25:08 (15 years ago)
Author:
nanasess
Message:

リファクタリングやりなおし

Location:
branches/feature-module-update/html
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/html/mobile/require.php

    r16123 r16134  
    2020require_once(CLASS_PATH . "db_extends/SC_DB_MasterData_Ex.php"); 
    2121require_once(CLASS_PATH . "db_extends/SC_DB_DBFactory_Ex.php"); 
    22 //require_once($include_dir . "/.." . HTML2DATA_DIR . "include/mobile.inc"); 
    23 //require_once($include_dir . "/.." . HTML2DATA_DIR . "lib/glib.php"); 
    24 //require_once($include_dir . "/.." . HTML2DATA_DIR . "lib/slib.php"); 
    2522require_once(CLASS_PATH . "SC_View.php"); 
    2623require_once(CLASS_PATH . "SC_DbConn.php"); 
     
    5047require_once(CLASS_PATH . "helper_extends/SC_Helper_Session_Ex.php"); 
    5148include_once($include_dir . "/require_plugin.php"); 
     49 
    5250// セッションハンドラ開始 
    5351$objSession = new SC_Helper_Session_Ex(); 
    54  
    55 //require_once($include_dir . "/.." . HTML2DATA_DIR . "include/page_layout.inc"); 
    5652 
    5753// アップデートで取得したPHPを読み出す 
  • branches/feature-module-update/html/require.php

    r16133 r16134  
    4646require_once(CLASS_PATH . "helper_extends/SC_Helper_Mail_Ex.php"); 
    4747include_once($include_dir . "/require_plugin.php"); 
     48 
     49// 携帯端末の場合は mobile 以下へリダイレクトする。 
     50if (GC_MobileUserAgent::isMobile()) { 
     51    if (preg_match('|^' . URL_DIR . '(.*)$|', $_SERVER['REQUEST_URI'], $matches)) { 
     52        $path = $matches[1]; 
     53    } else { 
     54        $path = ''; 
     55    } 
     56 
     57    header("Location: " 
     58           .  SC_Utils_Ex::sfRmDupSlash(SITE_URL . URL_DIR . "mobile/" . $path)); 
     59    exit; 
     60} 
     61 
     62// 絵文字変換 (除去) フィルターを組み込む。 
     63ob_start(array('GC_MobileEmoji', 'handler')); 
     64 
     65// アップデートで取得したPHPを読み出す 
     66SC_Utils_Ex::sfLoadUpdateModule(); 
    4867?> 
Note: See TracChangeset for help on using the changeset viewer.