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/data/lib/slib.php

    r340 r11460  
    17411741        $sqlval['order_tel02'] = $objCustomer->getValue('tel02'); 
    17421742        $sqlval['order_tel03'] = $objCustomer->getValue('tel03'); 
    1743         $sqlval['order_email'] = $objCustomer->getValue('email'); 
     1743        if (defined('MOBILE_SITE')) { 
     1744            $sqlval['order_email'] = $objCustomer->getValue('email_mobile'); 
     1745        } else { 
     1746            $sqlval['order_email'] = $objCustomer->getValue('email'); 
     1747        } 
    17441748        $sqlval['order_job'] = $objCustomer->getValue('job'); 
    17451749        $sqlval['order_birth'] = $objCustomer->getValue('birth'); 
     
    20472051        if(strlen($str) > ($len + 2)) { 
    20482052            $ret =substr($str, 0, $len); 
     2053            $cut = substr($str, $len); 
    20492054        } else { 
    20502055            $ret = $str; 
     
    20542059        if(mb_strlen($str) > ($len + 1)) { 
    20552060            $ret = mb_substr($str, 0, $len); 
     2061            $cut = mb_substr($str, $len); 
    20562062        } else { 
    20572063            $ret = $str; 
     
    20592065        } 
    20602066    } 
     2067 
     2068    // ³¨Ê¸»ú¥¿¥°¤ÎÅÓÃæ¤ÇʬÃǤµ¤ì¤Ê¤¤¤è¤¦¤Ë¤¹¤ë¡£ 
     2069    if (isset($cut)) { 
     2070        // ʬ³ä°ÌÃÖ¤è¤êÁ°¤ÎºÇ¸å¤Î [ °Ê¹ß¤ò¼èÆÀ¤¹¤ë¡£ 
     2071        $head = strrchr($ret, '['); 
     2072 
     2073        // ʬ³ä°ÌÃÖ¤è¤ê¸å¤ÎºÇ½é¤Î ] °ÊÁ°¤ò¼èÆÀ¤¹¤ë¡£ 
     2074        $tail_pos = strpos($cut, ']'); 
     2075        if ($tail_pos !== false) { 
     2076            $tail = substr($cut, 0, $tail_pos + 1); 
     2077        } 
     2078 
     2079        // ʬ³ä°ÌÃÖ¤è¤êÁ°¤Ë [¡¢¸å¤Ë ] ¤¬¸«¤Ä¤«¤Ã¤¿¾ì¹ç¤Ï¡¢[ ¤«¤é ] ¤Þ¤Ç¤ò 
     2080        // Àܳ¤·¤Æ³¨Ê¸»ú¥¿¥°1¸Äʬ¤Ë¤Ê¤ë¤«¤É¤¦¤«¤ò¥Á¥§¥Ã¥¯¤¹¤ë¡£ 
     2081        if ($head !== false && $tail_pos !== false) { 
     2082            $subject = $head . $tail; 
     2083            if (preg_match('/^\[emoji:e?\d+\]$/', $subject)) { 
     2084                // ³¨Ê¸»ú¥¿¥°¤¬¸«¤Ä¤«¤Ã¤¿¤Î¤Çºï½ü¤¹¤ë¡£ 
     2085                $ret = substr($ret, 0, -strlen($head)); 
     2086            } 
     2087        } 
     2088    } 
     2089 
    20612090    if($commadisp){ 
    20622091        $ret = $ret . "..."; 
Note: See TracChangeset for help on using the changeset viewer.