Changeset 16134


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

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

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

Legend:

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

    r16133 r16134  
    6565     * @return void 
    6666     */ 
    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     } 
     67    function init() {} 
    8568 
    8669    /** 
  • branches/feature-module-update/data/class/pages/LC_Page_Index.php

    r15908 r16134  
    3838     */ 
    3939    function mobileInit() { 
     40        parent::mobileInit(); 
    4041        $this->tpl_mainpage = 'top.tpl'; 
    4142    } 
  • 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.