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=4bcbd052528be05276d1a0b3f1202608f591161d;hp=30b485a3d57fe98fcb5a164fb2e237fab9bf4816;hb=a3e499ad3709e3d59996f3f0bb22f7983f64fcc2;hpb=24883b0f434dbaeba84985ad55e6e368e665f236 diff --git a/testbed/ua_test.php b/testbed/ua_test.php index 30b485a..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->hasEngine('gecko')) { 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");