X-Git-Url: https://git-public.kairo.at/?p=php-utility-classes.git;a=blobdiff_plain;f=include%2Fclasses%2Fuseragent.php-class;h=18415b89d20824ad2b61b88e23f30ac9b3f1671b;hp=076e7515a471d35d64769e9b21f4b534c608eb2c;hb=253ead9f08505693b3a6d0cd1d83724e20be9586;hpb=6e783db60bf865337d747650fd2e196008e64e37 diff --git a/include/classes/useragent.php-class b/include/classes/useragent.php-class index 076e751..18415b8 100755 --- a/include/classes/useragent.php-class +++ b/include/classes/useragent.php-class @@ -176,6 +176,10 @@ class userAgent { $this->brand = 'Firefox'; $this->version = $regs[1]; } + elseif (preg_match('|SeaMonkey/([0-9a-zA-Z\.+]+)|', $this->uastring, $regs)) { + $this->brand = 'SeaMonkey'; + $this->version = $regs[1]; + } elseif (preg_match('|Galeon/([0-9a-zA-Z\.+]+)|', $this->uastring, $regs)) { $this->brand = 'Galeon'; $this->version = $regs[1]; @@ -263,9 +267,9 @@ class userAgent { $this->version = $regs[1]; $this->bot = true; } - elseif (preg_match('|Slurp/([0-9a-zA-Z\.+]+)|', $this->uastring, $regs)) { + elseif (preg_match('|Slurp|', $this->uastring, $regs)) { $this->brand = 'Slurp'; - $this->version = $regs[1]; + $this->version = null; $this->bot = true; } elseif (preg_match('|Gulper Web Bot ([0-9a-zA-Z\.+]+)|', $this->uastring, $regs)) { @@ -355,7 +359,8 @@ class userAgent { 'dloader(NaverRobot)','NetResearchServer','HeinrichderMiragoRobot','LinkWalker', 'Openbot','W3C_Validator','ZyBorg','Ask Jeeves','dumbBot','BaiDuSpider','ia_archiver', 'PingALink Monitoring Services','IlTrovatore-Setaccio','Nutch','Mercator','OWR_Crawler', - 'search.ch','WebFilter Robot','appie','larbin','NutchCVS','ObjectsSearch','','','','',''); + 'search.ch','WebFilter Robot','appie','larbin','NutchCVS','ObjectsSearch','Webchat', + 'msnbot','','','','','',''); if (in_array($this->brand, $botArray)) { $this->bot = true; @@ -574,6 +579,9 @@ class userAgent { elseif (preg_match('/iCab.*(Mac[^\);]+).*?\)/i', $this->uastring, $regs)) { $this->uadata['os'] = trim($regs[1]); } + elseif (preg_match('/SymbianOS\/([^ ]+)/i', $this->uastring, $regs)) { + $this->uadata['os'] = 'SymbianOS '.$regs[1]; + } } if ($this->uadata['os'] == 'Win 9x 4.90') { $this->uadata['os'] = 'Windows ME'; } elseif ($this->uadata['os'] == 'WinNT4.0') { $this->uadata['os'] = 'Windows ME'; } @@ -605,6 +613,7 @@ class userAgent { elseif (strpos($this->uadata['os'], 'AmigaOS') !== false) { $this->uadata['platform'] = 'Amiga'; } elseif (strpos($this->uadata['os'], 'OpenVMS') !== false) { $this->uadata['platform'] = 'OpenVMS'; } elseif (strpos($this->uadata['os'], 'Warp') !== false) { $this->uadata['platform'] = 'OS/2'; } + elseif (strpos($this->uadata['os'], 'SymbianOS') !== false) { $this->uadata['platform'] = 'SymbianOS'; } elseif (strpos($this->uadata['os'], 'CYGWIN') !== false) { $this->uadata['platform'] = 'Windows'; } else { $this->uadata['platform'] = $this->uadata['os']; }