From: robert Date: Thu, 31 Jul 2003 23:52:07 +0000 (+0000) Subject: don't use variables directly, use new getBrand and getVersion functions X-Git-Url: https://git-public.kairo.at/?a=commitdiff_plain;h=726d345a68057c25400c8725fa43ef4ead1923e1;p=php-utility-classes.git don't use variables directly, use new getBrand and getVersion functions --- diff --git a/testbed/ua_test.php b/testbed/ua_test.php index ae2c22a..37f2f21 100644 --- a/testbed/ua_test.php +++ b/testbed/ua_test.php @@ -23,10 +23,10 @@ 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("
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");