-print("I read the following user agent string from your browser:\n<br>");
-print("<b>".$ua->uastring."</b>\n");
+print("I read the following user agent string from ".(strlen($httpvars["ua"])?"your input":"your browser").":\n<br>");
+print("<b>".$ua->getUAString()."</b>\n");
+
+print("<br><br>The browser brand is reported as "<b>".$ua->getBrand()."</b>"\n");
+print("<br>The browser version is reported as "<b>".$ua->getVersion()."</b>"\n");
+print("<br>The browser engine is reported as "<b>".$ua->getEngine()."</b>"\n");
+print("<br>The engine version is reported as "<b>".$ua->getEngineVersion()."</b>"\n");
+print("<br>The operating system is reported as "<b>".$ua->getOS()."</b>"\n");
+print("<br>The system platform is reported as "<b>".$ua->getPlatform()."</b>"\n");
+print("<br>The browser language is reported as "<b>".$ua->getLanguage()."</b>"\n");
+if ($ua->hasEngine('gecko')) {
+ print("<br>The Gecko date is reported as "<b>".$ua->getGeckoDate()."</b>"\n");
+ print("<br>The full Gecko date/time is reported as "<b>".date('r',$ua->getGeckoTime())."</b>"\n");
+}
+print("<br><br>I conclude this must be <b>".$ua->getBrand()." ".$ua->getVersion()."</b>\n");
+print("<br>This is <b>".($ua->isBot()?"an":"no")."</b> automated robot.\n");