-print("<br><br>This is <b>".($ua->isns()?"a":"no")."</b> Netscape browser.\n");
-print("<br>This is <b>".($ua->isns4()?"a":"no")."</b> Netscape Communicator 4 browser.\n");
-print("<br>This is <b>".($ua->isie()?"an":"no")."</b> Internet Explorer browser.\n");
-print("<br>This is <b>".($ua->geckobased()?"a":"no")."</b> Gecko-based browser.\n");
-print("<br>This is <b>".($ua->khtmlbased()?"a":"no")."</b> KHTML-based browser.\n");
-print("<br>The browser brand is reported as "<b>".$ua->brand."</b>"\n");
-print("<br>The browser version is reported as "<b>".$ua->version."</b>"\n");
-if ($ua->geckobased()) { print("<br>The Gecko date is reported as "<b>".$ua->geckodate()."</b>"\n"); }
-print("<br><br>I conclude this must be <b>".$ua->brand." ".$ua->version."</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->geckobased()) { print("<br>The Gecko date is reported as "<b>".$ua->getGeckoDate()."</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");
+
+$acclang = $ua->getAcceptLanguages();
+print("<br><br>Accepted Languages: ");
+foreach ($acclang as $lang=>$q) { print($lang."(".$q.") "); }
+print("\n");