projects
/
php-utility-classes.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add some Gecko 2-0 UA strings for testing
[php-utility-classes.git]
/
testbed
/
ua_test.php
diff --git
a/testbed/ua_test.php
b/testbed/ua_test.php
index 30b485a3d57fe98fcb5a164fb2e237fab9bf4816..97309b3b84102bbcfa2b93d37603a335544bf793 100644
(file)
--- a/
testbed/ua_test.php
+++ b/
testbed/ua_test.php
@@
-5,6
+5,9
@@
include("inchandler.inc");
$wrapper->pgtop("KaiRo's Browser-Test");
$wrapper->pgtop("KaiRo's Browser-Test");
+// set default time zone - right now, always the one the server is in!
+date_default_timezone_set('Europe/Vienna');
+
$httpvars = $util->getHTTPvars();
if (strlen($httpvars["ua"])) {
$ua = new userAgent($httpvars["ua"]);
$httpvars = $util->getHTTPvars();
if (strlen($httpvars["ua"])) {
$ua = new userAgent($httpvars["ua"]);
@@
-25,7
+28,10
@@
print("<br>The engine version is reported as "<b>".$ua->getEngineVersion().
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");
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"); }
+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");
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");