Changeset 16133
- Timestamp:
- 2007/09/28 09:56:57 (17 years ago)
- Location:
- branches/feature-module-update
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-module-update/data/class/pages/LC_Page.php
r15910 r16133 65 65 * @return void 66 66 */ 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 } 68 85 69 86 /** -
branches/feature-module-update/html/require.php
r16122 r16133 18 18 require_once(CLASS_PATH . "db_extends/SC_DB_MasterData_Ex.php"); 19 19 require_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");22 20 require_once(CLASS_PATH . "SC_View.php"); 23 21 require_once(CLASS_PATH . "SC_DbConn.php"); … … 47 45 require_once(CLASS_PATH . "helper_extends/SC_Helper_Session_Ex.php"); 48 46 require_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')); 47 include_once($include_dir . "/require_plugin.php"); 71 48 ?>
Note: See TracChangeset
for help on using the changeset viewer.