+ elseif (preg_match('|NokiaBrowser/([0-9a-zA-Z\.+]+)|', $this->uastring, $regs)) {
+ $this->brand = 'NokiaBrowser';
+ $this->version = $regs[1];
+ $this->bot = false;
+ }
+ elseif (preg_match('|wOSBrowser/([0-9a-zA-Z\.+]+)|', $this->uastring, $regs)) {
+ $this->brand = 'webOS Browser';
+ $this->version = $regs[1];
+ $this->bot = false;
+ }
+ elseif (preg_match('|Silk/([0-9a-zA-Z\.+]+)|', $this->uastring, $regs)) {
+ $this->brand = 'Silk';
+ $this->version = $regs[1];
+ $this->bot = false;
+ }
+ elseif (preg_match('|Kindle/([0-9a-zA-Z\.+]+)|', $this->uastring, $regs)) {
+ $this->brand = 'Kindle';
+ $this->version = $regs[1];
+ $this->bot = false;
+ }
+ elseif (preg_match('|Pre/([0-9a-zA-Z\.+]+)|', $this->uastring, $regs)) {
+ $this->brand = 'Pre';
+ $this->version = $regs[1];
+ $this->bot = false;
+ }
+ elseif (preg_match('|BOLT/([0-9a-zA-Z\.+]+)|', $this->uastring, $regs)) {
+ $this->brand = 'BOLT';
+ $this->version = $regs[1];
+ $this->bot = false;
+ }
+ elseif (preg_match('|Googlebot-Mobile/([0-9a-zA-Z\.+]+)|', $this->uastring, $regs)) { /* looks like Webkit! */
+ $this->brand = 'Googlebot-Mobile';
+ $this->version = $regs[1];
+ $this->bot = true;
+ $this->mobile = true;
+ }