Example #1
0
 function convertPictogram($temptale, $src = SYSTEM_CARRIER_DOCOMO)
 {
     $to = get_agent_carrier();
     //       if($to != $src){
     // PC
     if ($to == SYSTEM_CARRIER_PC) {
         $temptale = $this->convertPictogramImage($temptale, $src);
         // WillCom
     } else {
         if ($to == SYSTEM_CARRIER_WILLCOM) {
             $temptale = $this->convertPictogramImage($temptale, $src);
             // 携帯
         } else {
             $temptale = $this->convertPictogramEmoji($temptale, $to, $src);
         }
     }
     //       }
     return $temptale;
 }
Example #2
0
function get_mobile_agent($agent = NULL)
{
    $carrier = get_agent_carrier($agent);
    if ($carrier != SYSTEM_CARRIER_PC) {
        return $carrier;
    }
    return "";
}