Changeset 11460 for branches/dev/html/require.php
- Timestamp:
- 2007/02/28 16:17:07 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/dev/html/require.php
r17 r11460 31 31 require_once($include_dir . "/../data/class/SC_Page.php"); 32 32 require_once($include_dir . "/../data/class/SC_Pdf.php"); 33 require_once($include_dir . "/../data/class/GC_MobileUserAgent.php"); 34 require_once($include_dir . "/../data/class/GC_MobileEmoji.php"); 33 35 require_once($include_dir . "/../data/include/page_layout.inc"); 34 36 … … 36 38 sfLoadUpdateModule(); 37 39 40 // ·ÈÂÓüËö¤Î¾ì¹ç¤Ï mobile °Ê²¼¤Ø¥ê¥À¥¤¥ì¥¯¥È¤¹¤ë¡£ 41 if (GC_MobileUserAgent::isMobile()) { 42 if (preg_match('|^' . URL_DIR . '(.*)$|', $_SERVER['REQUEST_URI'], $matches)) { 43 $path = $matches[1]; 44 } else { 45 $path = ''; 46 } 47 header("Location: " . URL_DIR . "mobile/$path"); 48 exit; 49 } 50 51 // ³¨Ê¸»úÊÑ´¹ (½üµî) ¥Õ¥£¥ë¥¿¡¼¤òÁȤ߹þ¤à¡£ 52 ob_start(array('GC_MobileEmoji', 'handler')); 38 53 ?>
Note: See TracChangeset
for help on using the changeset viewer.