X-Git-Url: https://git-public.kairo.at/?p=php-utility-classes.git;a=blobdiff_plain;f=testbed%2Fua_list.php;fp=testbed%2Fua_list.php;h=0000000000000000000000000000000000000000;hp=3b417afd30053ccb5a604cd721e05b179fddb10e;hb=7b9ebce7d25e4eaa557e8a64f8b1ed15aad1a9bb;hpb=6638efd5690cd46471a3e01c164e572956a34aa3 diff --git a/testbed/ua_list.php b/testbed/ua_list.php deleted file mode 100644 index 3b417af..0000000 --- a/testbed/ua_list.php +++ /dev/null @@ -1,65 +0,0 @@ -pgtop('User Agents', $mycss); - -print('

User Agents

'."\n"); - -$ualist = is_readable($uafile)?file($uafile):array(); - -if (count($ualist)) { - print(''."\n"); - print(' '."\n"); - print(' '."\n"); - print(' '."\n"); - print(' '."\n"); - print(' '."\n"); - print(' '."\n"); - print(' '."\n"); - print(' '."\n"); - print(' '."\n"); - print(' '."\n"); - print(' '."\n"); - print(' '."\n"); - - foreach ($ualist as $uastring) { - $uastring = trim($uastring); - if (substr($uastring, 0, 1) == '#') { - // comment - print(' '."\n"); - print(' '."\n"); - print(' '."\n"); - } - else { - $ua = new userAgent($uastring); - print(' '."\n"); - print(' '."\n"); - print(' '."\n"); - print(' '."\n"); - print(' '."\n"); - print(' '."\n"); - print(' '."\n"); - print(' '."\n"); - print(' '."\n"); - print(' '."\n"); - print(' '."\n"); - print(' '."\n"); - } - } - print('
User Agent stringBrandVersionBotMobEngineeVerOSPlatformLang
'.substr($uastring, 1).'
'.$ua->getUAString().''.$ua->getBrand().''.$ua->getVersion().''.($ua->isBot()?'x':'-').''.($ua->isMobile()?'x':'-').''.$ua->getEngine().''.$ua->getEngineVersion().''.$ua->getOS().''.$ua->getPlatform().''.$ua->getLanguage().'
'."\n"); -} -else { - print('No User Agent strings found in file "'.$uafile.'".'."\n"); -} - -$wrapper->pgbottom(); -?>