Lines Matching refs:_agent

136 		private $_agent = '';  variable in Browser
221 $this->_agent = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : "";
313 public function getUserAgent() { return $this->_agent; }
320 $this->_agent = $agent_string;
329 return( strpos($this->_agent,"chromeframe") !== false );
412 if( stripos($this->_agent,'blackberry') !== false ) {
413 $aresult = explode("/",stristr($this->_agent,"BlackBerry"));
431 if( stripos($this->_agent,'aol') !== false ) {
432 $aversion = explode(' ',stristr($this->_agent, 'AOL'));
445 if( stripos($this->_agent,'googlebot') !== false ) {
446 $aresult = explode('/',stristr($this->_agent,'googlebot'));
461 if( stripos($this->_agent,"msnbot") !== false ) {
462 $aresult = explode("/",stristr($this->_agent,"msnbot"));
477 if( stripos($this->_agent,'W3C-checklink') !== false ) {
478 $aresult = explode('/',stristr($this->_agent,'W3C-checklink'));
484 else if( stripos($this->_agent,'W3C_Validator') !== false ) {
486 $ua = str_replace("W3C_Validator ", "W3C_Validator/", $this->_agent);
501 if( stripos($this->_agent,'slurp') !== false ) {
502 $aresult = explode('/',stristr($this->_agent,'Slurp'));
520 if( stripos($this->_agent,'microsoft internet explorer') !== false ) {
523 $aresult = stristr($this->_agent, '/');
530 … else if( stripos($this->_agent,'msie') !== false && stripos($this->_agent,'opera') === false ) {
532 if( stripos($this->_agent,'msnb') !== false ) {
533 $aresult = explode(' ',stristr(str_replace(';','; ',$this->_agent),'MSN'));
538 $aresult = explode(' ',stristr(str_replace(';','; ',$this->_agent),'msie'));
544 … else if( stripos($this->_agent,'mspie') !== false || stripos($this->_agent,'pocket') !== false ) {
545 $aresult = explode(' ',stristr($this->_agent,'mspie'));
550 if( stripos($this->_agent,'mspie') !== false ) {
554 $aversion = explode('/',$this->_agent);
567 if( stripos($this->_agent,'opera mini') !== false ) {
568 $resultant = stristr($this->_agent, 'opera mini');
582 else if( stripos($this->_agent,'opera') !== false ) {
583 $resultant = stristr($this->_agent, 'opera');
607 if( stripos($this->_agent,'Chrome') !== false ) {
608 $aresult = explode('/',stristr($this->_agent,'Chrome'));
623 if( stripos($this->_agent,'webtv') !== false ) {
624 $aresult = explode('/',stristr($this->_agent,'webtv'));
638 if( stripos($this->_agent,'NetPositive') !== false ) {
639 $aresult = explode('/',stristr($this->_agent,'NetPositive'));
653 if( stripos($this->_agent,'galeon') !== false ) {
654 $aresult = explode(' ',stristr($this->_agent,'galeon'));
668 if( stripos($this->_agent,'Konqueror') !== false ) {
669 $aresult = explode(' ',stristr($this->_agent,'Konqueror'));
683 if( stripos($this->_agent,'icab') !== false ) {
684 $aversion = explode(' ',stristr(str_replace('/',' ',$this->_agent),'icab'));
697 if( stripos($this->_agent,'omniweb') !== false ) {
698 $aresult = explode('/',stristr($this->_agent,'omniweb'));
712 if( stripos($this->_agent,'Phoenix') !== false ) {
713 $aversion = explode('/',stristr($this->_agent,'Phoenix'));
726 if( stripos($this->_agent,'Firebird') !== false ) {
727 $aversion = explode('/',stristr($this->_agent,'Firebird'));
741 …if( stripos($this->_agent,'Firefox') !== false && preg_match('/Navigator\/([^ ]*)/i',$this->_agent
746 …else if( stripos($this->_agent,'Firefox') === false && preg_match('/Netscape6?\/([^ ]*)/i',$this->
759 …if( stripos($this->_agent,'Mozilla') !== false && preg_match('/Shiretoko\/([^ ]*)/i',$this->_agent
772 …if( stripos($this->_agent,'Mozilla') !== false && preg_match('/IceCat\/([^ ]*)/i',$this->_agent,$m…
785 if( preg_match("/Nokia([^\/]+)\/([^ SP]+)/i",$this->_agent,$matches) ) {
787 if( stripos($this->_agent,'Series60') !== false || strpos($this->_agent,'S60') !== false ) {
804 if( stripos($this->_agent,'safari') === false ) {
805 if( preg_match("/Firefox[\/ \(]([^ ;\)]+)/i",$this->_agent,$matches) ) {
810 else if( preg_match("/Firefox$/i",$this->_agent,$matches) ) {
824 if( stripos($this->_agent,'Iceweasel') !== false ) {
825 $aresult = explode('/',stristr($this->_agent,'Iceweasel'));
838 …if( stripos($this->_agent,'mozilla') !== false && preg_match('/rv:[0-9].[0-9][a-b]?/i',$this->_ag…
839 $aversion = explode(' ',stristr($this->_agent,'rv:'));
840 preg_match('/rv:[0-9].[0-9][a-b]?/i',$this->_agent,$aversion);
845 …else if( stripos($this->_agent,'mozilla') !== false && preg_match('/rv:[0-9]\.[0-9]/i',$this->_age…
846 $aversion = explode('',stristr($this->_agent,'rv:'));
851 … if( stripos($this->_agent,'mozilla') !== false && preg_match('/mozilla\/([^ ]*)/i',$this->_agent
864 if( stripos($this->_agent,'lynx') !== false ) {
865 $aresult = explode('/',stristr($this->_agent,'Lynx'));
879 if( stripos($this->_agent,'amaya') !== false ) {
880 $aresult = explode('/',stristr($this->_agent,'Amaya'));
894 …if( stripos($this->_agent,'Safari') !== false && stripos($this->_agent,'iPhone') === false && stri…
895 $aresult = explode('/',stristr($this->_agent,'Version'));
914 if( stripos($this->_agent,'iPhone') !== false ) {
915 $aresult = explode('/',stristr($this->_agent,'Version'));
935 if( stripos($this->_agent,'iPad') !== false ) {
936 $aresult = explode('/',stristr($this->_agent,'Version'));
956 if( stripos($this->_agent,'iPod') !== false ) {
957 $aresult = explode('/',stristr($this->_agent,'Version'));
977 if( stripos($this->_agent,'Android') !== false ) {
978 $aresult = explode(' ',stristr($this->_agent,'Android'));
997 if( stripos($this->_agent, 'windows') !== false ) {
1000 else if( stripos($this->_agent, 'iPad') !== false ) {
1003 else if( stripos($this->_agent, 'iPod') !== false ) {
1006 else if( stripos($this->_agent, 'iPhone') !== false ) {
1009 elseif( stripos($this->_agent, 'mac') !== false ) {
1012 elseif( stripos($this->_agent, 'android') !== false ) {
1015 elseif( stripos($this->_agent, 'linux') !== false ) {
1018 else if( stripos($this->_agent, 'Nokia') !== false ) {
1021 else if( stripos($this->_agent, 'BlackBerry') !== false ) {
1024 elseif( stripos($this->_agent,'FreeBSD') !== false ) {
1027 elseif( stripos($this->_agent,'OpenBSD') !== false ) {
1030 elseif( stripos($this->_agent,'NetBSD') !== false ) {
1033 elseif( stripos($this->_agent, 'OpenSolaris') !== false ) {
1036 elseif( stripos($this->_agent, 'SunOS') !== false ) {
1039 elseif( stripos($this->_agent, 'OS\/2') !== false ) {
1042 elseif( stripos($this->_agent, 'BeOS') !== false ) {
1045 elseif( stripos($this->_agent, 'win') !== false ) {