[gnue] r9578 - trunk/www/web/shared

[email protected]
Newsgroups gmane.comp.cms.gnue.cvs
Message-ID <[email protected]>
Author: reinhard
Date: 2007-05-14 06:48:04 -0500 (Mon, 14 May 2007)
New Revision: 9578

Modified:
   trunk/www/web/shared/_listdir.php
Log:
Fix to file type handling.


Modified: trunk/www/web/shared/_listdir.php
===================================================================
--- trunk/www/web/shared/_listdir.php	2007-05-12 18:46:01 UTC (rev 9577)
+++ trunk/www/web/shared/_listdir.php	2007-05-14 11:48:04 UTC (rev 9578)
@@ -55,7 +55,7 @@
       if ( $notyet )
         {
            $notyet = false ;
-           echo "<h3>$descr (*.$ext format)</h3><ul>\n" ;
+           echo "<h3>$descr (*$ext format)</h3><ul>\n" ;
            $close="</ul>";
         }
       echo "<li><a href=\"$dir/$file\">" ;
@@ -65,9 +65,9 @@
 
 }
 
-handleFileType("tar.gz", "Source files", $dir, $sortby);
-handleFileType("zip", "Source files", $dir, $sortby);
-handleFileType("deb", "Debian GNU/Linux Packages", $dir, $sortby);
-handleFileType("rpm", "GNU/Linux RPM Packages", $dir, $sortby);
-handleFileType("dmg", "Mac OS X Disk Images", $dir, $sortby);
-handleFileType("exe", "Windows Installation Files", $dir, $sortby);
+handleFileType(".tar.gz", "Source files", $dir, $sortby);
+handleFileType(".zip", "Source files", $dir, $sortby);
+handleFileType(".deb", "Debian GNU/Linux Packages", $dir, $sortby);
+handleFileType(".rpm", "GNU/Linux RPM Packages", $dir, $sortby);
+handleFileType(".dmg", "Mac OS X Disk Images", $dir, $sortby);
+handleFileType(".exe", "Windows Installation Files", $dir, $sortby);
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.