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 (parent:
b8db1df
)
use wrapper as an object
author
robert
<robert>
Fri, 18 Jul 2003 01:11:46 +0000
(
01:11
+0000)
committer
robert
<robert>
Fri, 18 Jul 2003 01:11:46 +0000
(
01:11
+0000)
testbed/ua_test.php
patch
|
blob
|
blame
|
history
diff --git
a/testbed/ua_test.php
b/testbed/ua_test.php
index ae7387e76420625924f9eca50c20a525266436af..7b6d0d89e38da5bdda8e88fa21ceb8d8119dd87c 100644
(file)
--- a/
testbed/ua_test.php
+++ b/
testbed/ua_test.php
@@
-1,16
+1,10
@@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<html>
-<head>
- <link rel="stylesheet" type="text/css" href="testbed.css">
- <link rel="stylesheet" type="text/css" href="../web/kairo.at/kairo.at.css">
- <title>KaiRo's Browser-Test</title>
-</head>
-<body>
<?php
$inc_class_util = true;
$inc_class_ua = true;
include("testhandler.inc");
<?php
$inc_class_util = true;
$inc_class_ua = true;
include("testhandler.inc");
+$wrapper->pgtop("KaiRo's Browser-Test");
+
$httpvars = $util->getHTTPvars();
if (strlen($httpvars["ua"])) {
$ua = new userAgent($httpvars["ua"]);
$httpvars = $util->getHTTPvars();
if (strlen($httpvars["ua"])) {
$ua = new userAgent($httpvars["ua"]);
@@
-21,7
+15,7
@@
else {
print("<h1>KaiRo's Browser-Test</h1>\n");
print("<h1>KaiRo's Browser-Test</h1>\n");
-print("I read the following user agent string from
your browser
:\n<br>");
+print("I read the following user agent string from
".(strlen($httpvars["ua"])?"your input":"your browser")."
:\n<br>");
print("<b>".$ua->uastring."</b>\n");
print("<br><br>This is <b>".($ua->isns()?"a":"no")."</b> Netscape browser.\n");
print("<b>".$ua->uastring."</b>\n");
print("<br><br>This is <b>".($ua->isns()?"a":"no")."</b> Netscape browser.\n");
@@
-34,10
+28,10
@@
print("<br>The browser version is reported as "<b>".$ua->version."</b>"
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");
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>Test the following UA string:\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("<input type=\"text\" name=\"ua\" value=\"".$ua->uastring."\" size=\"80\" maxlength=\"150\">\n");
print("<br><input type=\"submit\" value=\"Test\"></p></form>\n");
print("<form method=\"POST\" action=\"\"><p>\n");
print("<input type=\"text\" name=\"ua\" value=\"".$ua->uastring."\" size=\"80\" maxlength=\"150\">\n");
print("<br><input type=\"submit\" value=\"Test\"></p></form>\n");
+
+$wrapper->pgbottom();
?>
?>
-</body>
-</html>
\ No newline at end of file