From e742e50704b7b09c6693b8d8284bf8a558b411a9 Mon Sep 17 00:00:00 2001 From: robert Date: Sun, 13 Nov 2005 20:44:08 +0000 Subject: [PATCH] update testbed --- testbed/ua_test.php | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/testbed/ua_test.php b/testbed/ua_test.php index 4fe45a7..e398bdb 100644 --- a/testbed/ua_test.php +++ b/testbed/ua_test.php @@ -16,23 +16,27 @@ else { print("

KaiRo's Browser-Test

\n"); print("I read the following user agent string from ".(strlen($httpvars["ua"])?"your input":"your browser").":\n
"); -print("".$ua->uastring."\n"); +print("".$ua->getUAString()."\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("
This is ".($ua->isbot()?"an":"no")." automated robot.\n"); -print("
The browser brand is reported as "".$ua->getBrand().""\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("
The browser engine is reported as "".$ua->getEngine().""\n"); +print("
The engine version is reported as "".$ua->getEngineVersion().""\n"); +print("
The operating system is reported as "".$ua->getOS().""\n"); +print("
The system platform is reported as "".$ua->getPlatform().""\n"); +print("
The browser language is reported as "".$ua->getLanguage().""\n"); +if ($ua->geckobased()) { print("
The Gecko date is reported as "".$ua->getGeckoDate().""\n"); } print("

I conclude this must be ".$ua->getBrand()." ".$ua->getVersion()."\n"); +print("
This is ".($ua->isBot()?"an":"no")." automated robot.\n"); + +$acclang = $ua->getAcceptLanguages(); +print("

Accepted Languages: "); +foreach ($acclang as $lang=>$q) { print($lang."(".$q.") "); } +print("\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("uastring)."\" size=\"80\" maxlength=\"150\">\n"); print("

\n"); - $wrapper->pgbottom(); ?> -- 2.43.0