projects
/
php-utility-classes.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
32412c2
)
don't use variables directly, use new getBrand and getVersion functions
author
robert
<robert>
Thu, 31 Jul 2003 23:52:07 +0000
(23:52 +0000)
committer
robert
<robert>
Thu, 31 Jul 2003 23:52:07 +0000
(23:52 +0000)
testbed/ua_test.php
patch
|
blob
|
blame
|
history
diff --git
a/testbed/ua_test.php
b/testbed/ua_test.php
index ae2c22a7926b5b302fb837ca45c905aeaacd6eb7..37f2f21f3c1e63e190748b4026fa735151545655 100644
(file)
--- a/
testbed/ua_test.php
+++ b/
testbed/ua_test.php
@@
-23,10
+23,10
@@
print("<br>This is <b>".($ua->isns4()?"a":"no")."</b> Netscape Communicator 4 br
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>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"); }
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");
print("<br><br>Test the following UA string (leave empty to read it from your browser):\n");
print("<form method=\"POST\" action=\"\"><p>\n");