Thread: OS Stats
View Single Post
  #6   Spotlight this post!  
Unread 16-11-2002, 11:34
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,562
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
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)