Changeset 16133


Ignore:
Timestamp:
2007/09/28 09:56:57 (16 years ago)
Author:
nanasess
Message:

リファクタリング

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

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/data/class/pages/LC_Page.php

    r15910 r16133  
    6565     * @return void 
    6666     */ 
    67     function init() {} 
     67    function init() { 
     68 
     69        // 携帯端末の場合は mobile 以下へリダイレクトする。 
     70        if (GC_MobileUserAgent::isMobile()) { 
     71            if (preg_match('|^' . URL_DIR . '(.*)$|', $_SERVER['REQUEST_URI'], $matches)) { 
     72                $path = $matches[1]; 
     73            } else { 
     74                $path = ''; 
     75            } 
     76            $this->sendRedirect($this->getLocation(URL_DIR . "mobile/" . $path)); 
     77            exit; 
     78        } 
     79        // 絵文字変換 (除去) フィルターを組み込む。 
     80        ob_start(array('GC_MobileEmoji', 'handler')); 
     81 
     82        // アップデートで取得したPHPを読み出す 
     83        SC_Utils_Ex::sfLoadUpdateModule(); 
     84    } 
    6885 
    6986    /** 
  • branches/feature-module-update/html/require.php

    r16122 r16133  
    1818require_once(CLASS_PATH . "db_extends/SC_DB_MasterData_Ex.php"); 
    1919require_once(CLASS_PATH . "db_extends/SC_DB_DBFactory_Ex.php"); 
    20 //require_once($include_dir . HTML2DATA_DIR . "lib/glib.php"); 
    21 //require_once($include_dir . HTML2DATA_DIR . "lib/slib.php"); 
    2220require_once(CLASS_PATH . "SC_View.php"); 
    2321require_once(CLASS_PATH . "SC_DbConn.php"); 
     
    4745require_once(CLASS_PATH . "helper_extends/SC_Helper_Session_Ex.php"); 
    4846require_once(CLASS_PATH . "helper_extends/SC_Helper_Mail_Ex.php"); 
    49 include_once($inclde_dir . "/require_plugin.php"); 
    50  
    51 // セッションハンドラ開始 
    52 //$objSession = new SC_Helper_Session_Ex(); 
    53  
    54 // アップデートで取得したPHPを読み出す 
    55 SC_Utils_Ex::sfLoadUpdateModule(); 
    56  
    57 // 携帯端末の場合は mobile 以下へリダイレクトする。 
    58 // TODO LC_Page::init() に移動可能か? 
    59 if (GC_MobileUserAgent::isMobile()) { 
    60     if (preg_match('|^' . URL_DIR . '(.*)$|', $_SERVER['REQUEST_URI'], $matches)) { 
    61         $path = $matches[1]; 
    62     } else { 
    63         $path = ''; 
    64     } 
    65     header("Location: " . URL_DIR . "mobile/$path"); 
    66     exit; 
    67 } 
    68  
    69 // 絵文字変換 (除去) フィルターを組み込む。 
    70 ob_start(array('GC_MobileEmoji', 'handler')); 
     47include_once($include_dir . "/require_plugin.php"); 
    7148?> 
Note: See TracChangeset for help on using the changeset viewer.