add mobile phone detecting in user agent library and expose it in browser check
[php-utility-classes.git] / testbed / ua_list.php
index 9781fbf042b4fd55e1990007dafa510c61fb9583..7f8302de61a80e82d679561ba24131b6cf352913 100644 (file)
@@ -23,6 +23,7 @@ if (count($ualist)) {
   print('  <th>Brand</th>'."\n");
   print('  <th>Version</th>'."\n");
   print('  <th>Bot</th>'."\n");
+  print('  <th>Mob</th>'."\n");
   print('  <th>Engine</th>'."\n");
   print('  <th>eVer</th>'."\n");
   print('  <th>OS</th>'."\n");
@@ -45,6 +46,7 @@ if (count($ualist)) {
       print('  <td>'.$ua->getBrand().'</td>'."\n");
       print('  <td>'.$ua->getVersion().'</td>'."\n");
       print('  <td>'.($ua->isBot()?'x':'-').'</td>'."\n");
+      print('  <td>'.($ua->isMobile()?'x':'-').'</td>'."\n");
       print('  <td>'.$ua->getEngine().'</td>'."\n");
       print('  <td>'.$ua->getEngineVersion().'</td>'."\n");
       print('  <td>'.$ua->getOS().'</td>'."\n");