$regex_mac = '/(68[k0]{1,3})|(ppc mac os
x)|([p\S]{1,5}pc)|(darwin)/i';
Needs to be updated to support Intel macs. Here are
some sample user agent strings:
mozilla/5.0 (macintosh; u; intel mac os x; en-us;
rv:1.8.1) gecko/20061010 firefox/2.0
mozilla/5.0 (macintosh; u; intel mac os x; en)
applewebkit/418.9 (khtml, like gecko) safari/419.3
opera/9.02 (macintosh; intel mac os x; u; en)
My regex-foo is weak, but changing the regex to:
$regex_mac = '/(68[k0]{1,3})|(ppc|intel mac os
x)|([p\S]{1,5}pc)|(darwin)/i';
Seems to work fine.