\n");
print(" \n");
print(" \n");
print(" ".'User Agent Test'."\n");
print("\n\n");
if (strlen($_REQUEST["ua"])) {
$ua = new userAgent($_REQUEST["ua"]);
}
else {
$ua = new userAgent;
}
print("
User Agent Test
\n");
print("I read the following user agent string from ".(strlen($httpvars["ua"])?"your input":"your browser").":\n ");
print("".$ua->getUAString()."\n");
print("
The browser brand is reported as "".$ua->getBrand().""\n");
print(" The browser version is reported as "".$ua->getVersion().""\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->hasEngine('gecko')) {
print(" The Gecko date is reported as "".$ua->getGeckoDate().""\n");
print(" The full Gecko date/time is reported as "".date('r',$ua->getGeckoTime()).""\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("