public function order_source () { $useragent = strtolower ($_ server["Http_user_agent"]); // $is _weixin = strripos ($useragent, ' Micromessenger '); if ($is _weixin) { //echo '; exit; echo ' <script language= ' javascript type= "Text/javascript" > window.location.href= "https://www.xxx.com"; </script> '; exit; } // iphone $is _iphone = strripos ($useragent, ' iphone '); if ($is _iphone) { $this->display (" Codes/ios "); echo ' <script language= "JavaScript" type= "Text/javascript" > window.location.href= "https://www.xxx.com"; </script> '; exit; } // android $is _android = strripos ($useragent, ' Android '); if ($is _android) { $this->display ("codes/android"); echo ' <script language= ' JavaScript " type=" text/ JavaScript "> window.location.href=" https://www.xxx.com "; </script> '; exit; } // ipad $is _ipad = strripos ($useragent, ' ipad '); if ($is _ipad) { echo ' ipad '; exit; } // ipod $is _ipod = strripos ($useragent, ' ipod '); if ($is _ipod) { echo ' ipod '; exit; } &NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;//&NBSP;PC Computer $is _pc = strripos ($useragent, ' windows nt '); if ($is _pc) { echo ' PC '; exit; } echo ' other '; }
PHP Scan Code identification information