X-Git-Url: https://git-public.kairo.at/?p=php-utility-classes.git;a=blobdiff_plain;f=testbed%2Fua_test.php;h=4fe45a72b5558036d46a1b114284813a14f0f9f0;hp=7b6d0d89e38da5bdda8e88fa21ceb8d8119dd87c;hb=81e72a3e94e70be95cc42d323091643987f8f758;hpb=1c66619580bb5d94d7e700b011d9ada5cdcb599c diff --git a/testbed/ua_test.php b/testbed/ua_test.php index 7b6d0d8..4fe45a7 100644 --- a/testbed/ua_test.php +++ b/testbed/ua_test.php @@ -1,7 +1,7 @@ pgtop("KaiRo's Browser-Test"); @@ -23,10 +23,11 @@ print("
This is ".($ua->isns4()?"a":"no")." Netscape Communicator 4 br print("
This is ".($ua->isie()?"an":"no")." Internet Explorer browser.\n"); print("
This is ".($ua->geckobased()?"a":"no")." Gecko-based browser.\n"); print("
This is ".($ua->khtmlbased()?"a":"no")." KHTML-based browser.\n"); -print("
The browser brand is reported as "".$ua->brand.""\n"); -print("
The browser version is reported as "".$ua->version.""\n"); +print("
This is ".($ua->isbot()?"an":"no")." automated robot.\n"); +print("
The browser brand is reported as "".$ua->getBrand().""\n"); +print("
The browser version is reported as "".$ua->getVersion().""\n"); if ($ua->geckobased()) { print("
The Gecko date is reported as "".$ua->geckodate().""\n"); } -print("

I conclude this must be ".$ua->brand." ".$ua->version."\n"); +print("

I conclude this must be ".$ua->getBrand()." ".$ua->getVersion()."\n"); print("

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

\n");