X-Git-Url: https://git-public.kairo.at/?p=php-utility-classes.git;a=blobdiff_plain;f=testbed%2Fua_test.php;h=4fe45a72b5558036d46a1b114284813a14f0f9f0;hp=ae2c22a7926b5b302fb837ca45c905aeaacd6eb7;hb=1efa5ce77c7bb47081432e2fe043214e4d7fde9c;hpb=32412c2abef7b5d585d9c777d096b3f2086a1334
diff --git a/testbed/ua_test.php b/testbed/ua_test.php
index ae2c22a..4fe45a7 100644
--- a/testbed/ua_test.php
+++ b/testbed/ua_test.php
@@ -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("