From: robert Date: Fri, 18 Jul 2003 01:11:46 +0000 (+0000) Subject: use wrapper as an object X-Git-Url: https://git-public.kairo.at/?p=php-utility-classes.git;a=commitdiff_plain;h=1c66619580bb5d94d7e700b011d9ada5cdcb599c;hp=b8db1df4f951c3aa5e0210572f71513d935f2ada use wrapper as an object --- diff --git a/testbed/ua_test.php b/testbed/ua_test.php index ae7387e..7b6d0d8 100644 --- a/testbed/ua_test.php +++ b/testbed/ua_test.php @@ -1,16 +1,10 @@ - - - - - - KaiRo's Browser-Test - - pgtop("KaiRo's Browser-Test"); + $httpvars = $util->getHTTPvars(); if (strlen($httpvars["ua"])) { $ua = new userAgent($httpvars["ua"]); @@ -21,7 +15,7 @@ else { print("

KaiRo's Browser-Test

\n"); -print("I read the following user agent string from your browser:\n
"); +print("I read the following user agent string from ".(strlen($httpvars["ua"])?"your input":"your browser").":\n
"); print("".$ua->uastring."\n"); print("

This is ".($ua->isns()?"a":"no")." Netscape browser.\n"); @@ -34,10 +28,10 @@ print("
The browser version is reported as "".$ua->version."" 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("

Test the following UA string:\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("

\n"); + +$wrapper->pgbottom(); ?> - - \ No newline at end of file