Changeset 1283 for branches

Show
Ignore:
Timestamp:
02/15/06 22:00:13 (3 years ago)
Author:
kdz13
Message:

more mobile user agents, filched from http://www.zytrax.com/tech/web/mobile_ids.html

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/new-themes-model/rss/util.php

    r1282 r1283  
    11851185        if (isset($_SERVER['HTTP_USER_AGENT'])) { 
    11861186            $ua = $_SERVER['HTTP_USER_AGENT']; 
     1187            $ua_lwr = strtolower( $ua ); 
    11871188            $ret = strpos($ua, 'SonyEricsson') !== FALSE 
    11881189                || strpos($ua, 'Nokia') !== FALSE 
    1189                 || strpos($ua, 'Mobile') !== FALSE; 
     1190                || strpos($ua, 'Mobile') !== FALSE 
     1191                || strpos($ua, 'Windows CE') !== FALSE 
     1192                || strpos($ua, 'EPOC') !== FALSE 
     1193                || strpos($ua, 'Opera Mini') !== FALSE 
     1194                || strpos($ua_lwr, 'j2me') !== FALSE; 
    11901195        }  
    11911196    }