|
Now I see why the stats script puts Konqueror as Netscape. My user agent says Mozilla/5.0 (compatible; Konqueror/3.0.0-10; Linux; X11; i686; , en_US) which means that Konqueror is identified in the first line, it needs an and ! exception like MSIE.
It would also be nice to seperate Gecko based browsers (netscape 6,7, mozilla, galeon, etc.) from netscape 4 browsers. This would be easy to do by adding a Gecko exception to the first line, and then adding another elseif that looks for Gecko
DOH! I just checked the discussion in the PHP manual, and somebody had already done that (at least the Gekco detection)
|