X-Git-Url: https://git-public.kairo.at/?p=php-utility-classes.git;a=blobdiff_plain;f=testbed%2Fua_test.php;h=4bcbd052528be05276d1a0b3f1202608f591161d;hp=e398bdb93d863367f29aefd252e8544881cefa14;hb=a3e499ad3709e3d59996f3f0bb22f7983f64fcc2;hpb=e742e50704b7b09c6693b8d8284bf8a558b411a9 diff --git a/testbed/ua_test.php b/testbed/ua_test.php index e398bdb..4bcbd05 100644 --- a/testbed/ua_test.php +++ b/testbed/ua_test.php @@ -25,7 +25,10 @@ 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("
The full Gecko date/time is reported as "".date('r',$ua->getGeckoTime()).""\n"); +} print("

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