X-Git-Url: https://git-public.kairo.at/?p=php-utility-classes.git;a=blobdiff_plain;f=testbed%2Fua_test.php;fp=testbed%2Fua_test.php;h=30b485a3d57fe98fcb5a164fb2e237fab9bf4816;hp=e398bdb93d863367f29aefd252e8544881cefa14;hb=4a778b7ef1e4bf6e2aaa31a83280cd3efface400;hpb=b50f91ef4b8d4d0fffe51f02bfd09e429fd917a9 diff --git a/testbed/ua_test.php b/testbed/ua_test.php index e398bdb..30b485a 100644 --- a/testbed/ua_test.php +++ b/testbed/ua_test.php @@ -25,7 +25,7 @@ print("
The engine version is reported as "".$ua->getEngineVersion(). print("
The operating system is reported as "".$ua->getOS().""\n"); print("
The system platform is reported as "".$ua->getPlatform().""\n"); print("
The browser language is reported as "".$ua->getLanguage().""\n"); -if ($ua->geckobased()) { print("
The Gecko date is reported as "".$ua->getGeckoDate().""\n"); } +if ($ua->hasEngine('gecko')) { print("
The Gecko date is reported as "".$ua->getGeckoDate().""\n"); } print("

I conclude this must be ".$ua->getBrand()." ".$ua->getVersion()."\n"); print("
This is ".($ua->isBot()?"an":"no")." automated robot.\n"); @@ -36,7 +36,7 @@ print("\n"); print("

Test the following UA string (leave empty to read it from your browser):\n"); print("

\n"); -print("uastring)."\" size=\"80\" maxlength=\"150\">\n"); +print("getUAString())."\" size=\"80\" maxlength=\"150\">\n"); print("

\n"); $wrapper->pgbottom(); ?>