Ignore:
Timestamp:
2007/02/28 16:17:07 (17 years ago)
Author:
inoue
Message:

モバイル版EC-CUBE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev/html/require.php

    r17 r11460  
    3131require_once($include_dir . "/../data/class/SC_Page.php"); 
    3232require_once($include_dir . "/../data/class/SC_Pdf.php"); 
     33require_once($include_dir . "/../data/class/GC_MobileUserAgent.php"); 
     34require_once($include_dir . "/../data/class/GC_MobileEmoji.php"); 
    3335require_once($include_dir . "/../data/include/page_layout.inc"); 
    3436 
     
    3638sfLoadUpdateModule(); 
    3739 
     40// ·ÈÂÓüËö¤Î¾ì¹ç¤Ï mobile °Ê²¼¤Ø¥ê¥À¥¤¥ì¥¯¥È¤¹¤ë¡£ 
     41if (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// ³¨Ê¸»úÊÑ´¹ (½üµî) ¥Õ¥£¥ë¥¿¡¼¤òÁȤ߹þ¤à¡£ 
     52ob_start(array('GC_MobileEmoji', 'handler')); 
    3853?> 
Note: See TracChangeset for help on using the changeset viewer.