From b8db1df4f951c3aa5e0210572f71513d935f2ada Mon Sep 17 00:00:00 2001 From: robert Date: Thu, 13 Feb 2003 21:26:51 +0000 Subject: [PATCH] adding wahl-mandatsberechnung, ua test --- testbed/ua_test.php | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 testbed/ua_test.php diff --git a/testbed/ua_test.php b/testbed/ua_test.php new file mode 100644 index 0000000..ae7387e --- /dev/null +++ b/testbed/ua_test.php @@ -0,0 +1,43 @@ + + + + + + KaiRo's Browser-Test + + +getHTTPvars(); +if (strlen($httpvars["ua"])) { + $ua = new userAgent($httpvars["ua"]); +} +else { + $ua = new userAgent; +} + +print("

KaiRo's Browser-Test

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

This is ".($ua->isns()?"a":"no")." Netscape browser.\n"); +print("
This is ".($ua->isns4()?"a":"no")." Netscape Communicator 4 browser.\n"); +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"); +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("

\n"); +print("uastring."\" size=\"80\" maxlength=\"150\">\n"); +print("

\n"); +?> + + \ No newline at end of file -- 2.43.0