X-Git-Url: https://git-public.kairo.at/?p=php-utility-classes.git;a=blobdiff_plain;f=include%2Fclasses%2Fuseragent.php-class;h=12293d5f1139519fc7baacefd843e55d8a1b7c18;hp=b1e815a257e91c688e510dc5bd92dffc18e1f11c;hb=1d38ad3ee1a46eccab547c04f66072d99f323f60;hpb=55020829b736f820e3d1f0109104f5ba629b85e4 diff --git a/include/classes/useragent.php-class b/include/classes/useragent.php-class index b1e815a..12293d5 100755 --- a/include/classes/useragent.php-class +++ b/include/classes/useragent.php-class @@ -68,7 +68,7 @@ class userAgent { // // function getEngine() // returns a string telling the detected rendering engine, null if we can't detect - // one of gecko|khtml|trident|tasman|nscp|presto|gzilla|gtkhtml|links|unkown + // one of gecko|khtml|trident|tasman|nscp|presto|gzilla|gtkhtml|links|unknown // // function hasEngine($rnd_engine) // returns true if the given rendering engine was detected @@ -83,7 +83,7 @@ class userAgent { // // function getPlatform() // returns a string telling the detected OS platform, null if we can't detect - // one of windows|linux|mac|solaris|unkown + // one of windows|linux|mac|solaris|unknown // // function getLanguage() { // returns a string telling the detected browser UI language, null if we can't detect @@ -454,7 +454,7 @@ class userAgent { foreach ($accLcomp as $lcomp) { if (strlen($lcomp)) { $ldef = explode(';', $lcomp); - $accLang[$ldef[0]] = (float)((strpos($ldef[1],'q=')===0)?substr($ldef[1],2):1); + $accLang[$ldef[0]] = (float)((strpos(@$ldef[1],'q=')===0)?substr($ldef[1],2):1); } } $this->uadata['accept-languages'] = $accLang; @@ -465,9 +465,9 @@ class userAgent { function getUAString() { return $this->uastring; } function getEngine() { - // return gecko|khtml|trident|tasman|nscp|presto|gzilla|gtkhtml|links|unkown + // return gecko|khtml|trident|tasman|nscp|presto|gzilla|gtkhtml|links|unknown if (!isset($this->uadata['engine'])) { - $this->uadata['engine'] = 'unkown'; + $this->uadata['engine'] = 'unknown'; $this->uadata['geckodate'] = null; if (preg_match('|Gecko/([0-9]+)|', $this->uastring, $regs)) { $this->uadata['engine'] = 'gecko';