XHTML index.php user agent match & debug

Support and queries relating to all previous versions of ZoneMinder
Locked
josepy
Posts: 34
Joined: Mon Dec 24, 2007 6:28 pm

XHTML index.php user agent match & debug

Post by josepy »

So I'm trying to tweak index.php such that it recognizes my "user agent" and responds accordingly.

When I enable debug in index.php I see the following user agent on my my mobile:

BlackBerry8100/4.2.1
Profile/MIDP-2.0
Configuration/CLDC-1.1
VendorID/100

So I've tried adding the following to index.php under $devices = array(

'ua_match'=>"BlackBerry8100/4.2.1\nProfile/MIDP-2.0\nConfiguration/CLDC-1.1\nVendorID/100"

and

'ua_match'=>"BlackBerry8100/4.2.1
Profile/MIDP-2.0
Configuration/CLDC-1.1
VendorID/100"

and

'ua_match'=>"BlackBerry8100/4.2.1 Profile/MIDP-2.0 Configuration/CLDC-1.1 VendorID/100"

None of which works!

Has anyone dealt with this effectively?

any input would be appreciated.

Joe
Locked