X-Git-Url: https://git-public.kairo.at/?p=php-utility-classes.git;a=blobdiff_plain;f=include%2Fclasses%2Fuseragent.php-class;h=be512f46c98dce52b7cf04f754d001747919a63a;hp=dbcad2737e6d74de9a860a577208cc155c722f07;hb=1759d73b42c56c60843123d35df54184fbacd7af;hpb=61c10f75a5fb97edb93f930b414ce63a6275eadf diff --git a/include/classes/useragent.php-class b/include/classes/useragent.php-class index dbcad27..be512f4 100755 --- a/include/classes/useragent.php-class +++ b/include/classes/useragent.php-class @@ -242,6 +242,11 @@ class userAgent { $this->version = $regs[1]; $this->bot = false; } + elseif (preg_match('|Tablet browser ([0-9a-zA-Z\.+]+)|', $this->uastring, $regs)) { + $this->brand = 'microB'; + $this->version = $regs[1]; + $this->bot = false; + } elseif (preg_match('|Opera\/([^\(]+) \(.*; Opera Mini; |', $this->uastring, $regs)) { $this->brand = 'Opera Mini'; $this->version = $regs[1]; @@ -272,6 +277,11 @@ class userAgent { $this->version = $regs[1]; $this->bot = false; } + elseif (preg_match('|Chrome/([0-9a-zA-Z\.+]+)|', $this->uastring, $regs)) { + $this->brand = 'Chrome'; + $this->version = $regs[1]; + $this->bot = false; + } elseif (preg_match('|Safari/([0-9a-zA-Z\.+]+)|', $this->uastring, $regs)) { $this->brand = 'Safari'; if (preg_match('|Version/([0-9a-zA-Z\.+]+)|', $this->uastring, $vregs)) { @@ -762,7 +772,7 @@ class userAgent { } } elseif ((strpos($this->brand, 'Konqueror') !== false) || (strpos($this->brand, 'Safari') !== false) || - (strpos($this->brand, 'Shiira') !== false) || + (strpos($this->brand, 'Shiira') !== false) || (strpos($this->brand, 'Chrome') !== false) || (strpos($this->brand, 'AppleWebKit') !== false) || (strpos($this->brand, 'OmniWeb') !== false)) { $this->uadata['engine'] = 'khtml'; }