X-Git-Url: https://git-public.kairo.at/?a=blobdiff_plain;ds=sidebyside;f=tests%2Fua_list.php;fp=tests%2Fua_list.php;h=3b417afd30053ccb5a604cd721e05b179fddb10e;hb=7b9ebce7d25e4eaa557e8a64f8b1ed15aad1a9bb;hp=0000000000000000000000000000000000000000;hpb=6638efd5690cd46471a3e01c164e572956a34aa3;p=php-utility-classes.git diff --git a/tests/ua_list.php b/tests/ua_list.php new file mode 100644 index 0000000..3b417af --- /dev/null +++ b/tests/ua_list.php @@ -0,0 +1,65 @@ +pgtop('User Agents', $mycss); + +print('
User Agent string | '."\n"); + print('Brand | '."\n"); + print('Version | '."\n"); + print('Bot | '."\n"); + print('Mob | '."\n"); + print('Engine | '."\n"); + print('eVer | '."\n"); + print('OS | '."\n"); + print('Platform | '."\n"); + print('Lang | '."\n"); + print('
---|---|---|---|---|---|---|---|---|---|
'.substr($uastring, 1).' | '."\n"); + print('|||||||||
'.$ua->getUAString().' | '."\n"); + print(''.$ua->getBrand().' | '."\n"); + print(''.$ua->getVersion().' | '."\n"); + print(''.($ua->isBot()?'x':'-').' | '."\n"); + print(''.($ua->isMobile()?'x':'-').' | '."\n"); + print(''.$ua->getEngine().' | '."\n"); + print(''.$ua->getEngineVersion().' | '."\n"); + print(''.$ua->getOS().' | '."\n"); + print(''.$ua->getPlatform().' | '."\n"); + print(''.$ua->getLanguage().' | '."\n"); + print('