danf: curl-www/dlwiz index.cgi,1.8,1.9

[email protected]
Newsgroups gmane.comp.web.curl.www.cvs
Message-ID <[email protected]>
Update of /cvsroot/curl/curl-www/dlwiz
In directory labb:/tmp/cvs-serv14266

Modified Files:
	index.cgi 
Log Message:
Added more flavour guessing.


Index: index.cgi
===================================================================
RCS file: /cvsroot/curl/curl-www/dlwiz/index.cgi,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- index.cgi	22 Sep 2005 11:07:03 -0000	1.8
+++ index.cgi	2 Nov 2005 23:32:43 -0000	1.9
@@ -308,7 +308,7 @@
     elsif($ua =~ /Indy Library/i) {     # Windows-only client library
         $sel_os = "Win32";
     }
-    elsif($ua =~ /(Lynx|w3m|Dillo|MMM|Grail|Mosaic|amaya|Konqueror|Links)/i) {
+    elsif($ua =~ /(Lynx|w3m|Dillo|MMM|Grail|Mosaic|amaya|Konqueror|Links|gzilla)/i) {
         $sel_os = "Linux"; # we don't know these are Linux, we just guess
     }
     elsif($ua =~ /(libcurl|Python-urllib|Wget|lwp|libwww-perl)/i) {
@@ -408,9 +408,12 @@
     }
     else {
         $sel_flav = "";
-        if($ua =~ /mdk/i) {
+        if($ua =~ /mdk|Mandriva/i) {
             $sel_flav = "Mandriva";
         }
+        elsif($ua=~ /ubuntu/i) {
+            $sel_flav = "Ubuntu"; # Must be before Debian
+        }
         elsif($ua=~ /Debian/i) {
             $sel_flav = "Debian";
         }
@@ -420,6 +423,20 @@
         elsif($ua=~ /cygwin/i) {
             $sel_flav = "cygwin";
         }
+        elsif($ua=~ /Red Hat|CentOS/i) {
+            $sel_flav = "Redhat";
+        }
+        elsif($ua=~ /SUSE/i) {
+            $sel_flav = "Suse";
+        }
+        elsif($ua=~ /Fedora|fc[\d]/i) {
+            $sel_flav = "Fedora";
+        }
+        # Some indicators of a PDA device
+        # Not necessarily Familiar, but that's all we have to offer
+        elsif($ua=~ /Qtopia|Qt *embedded|embedix|PDA/i) {
+            $sel_flav = "Familiar";
+        }
 
         showsteps();
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.