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");
+print("<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");
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>I conclude this must be <b>".$ua->getBrand()." ".$ua->getVersion()."</b>\n");
print("<br><br>Test the following UA string (leave empty to read it from your browser):\n");
print("<form method=\"POST\" action=\"\"><p>\n");