X-Git-Url: https://git-public.kairo.at/?p=php-utility-classes.git;a=blobdiff_plain;f=tests%2Fua_test.php;h=bf72e447ced1a9496c2d4621a75ba3b5e88886f9;hp=97309b3b84102bbcfa2b93d37603a335544bf793;hb=9fdff807c738934b8f2a1428a597a81b7615df7e;hpb=7b9ebce7d25e4eaa557e8a64f8b1ed15aad1a9bb diff --git a/tests/ua_test.php b/tests/ua_test.php index 97309b3..bf72e44 100644 --- a/tests/ua_test.php +++ b/tests/ua_test.php @@ -1,22 +1,28 @@ pgtop("KaiRo's Browser-Test"); +include('../classes/useragent.php-class'); // 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"]); +print("\n"); +print("\n\n"); +print(" \n"); +print(" \n"); +print(" ".'User Agent Test'."\n"); +print("\n\n"); + +if (strlen($_REQUEST["ua"])) { + $ua = new userAgent($_REQUEST["ua"]); } else { $ua = new userAgent; } -print("

KaiRo's Browser-Test

\n"); +print("

User Agent Test

\n"); print("I read the following user agent string from ".(strlen($httpvars["ua"])?"your input":"your browser").":\n
"); print("".$ua->getUAString()."\n"); @@ -44,5 +50,9 @@ print("

Test the following UA string (leave empty to read it from your br print("

\n"); print("getUAString())."\" size=\"80\" maxlength=\"150\">\n"); print("

\n"); -$wrapper->pgbottom(); + +print("
\n"); +print("Page code under Mozilla Public License, code available at GitHub.\n"); +print("
\n"); +print("\n"); ?>