]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Added icons for file types.
authoreldy <>
Thu, 16 Jan 2003 14:10:38 +0000 (14:10 +0000)
committereldy <>
Thu, 16 Jan 2003 14:10:38 +0000 (14:10 +0000)
wwwroot/cgi-bin/lib/mime.pm [new file with mode: 0644]

diff --git a/wwwroot/cgi-bin/lib/mime.pm b/wwwroot/cgi-bin/lib/mime.pm
new file mode 100644 (file)
index 0000000..8a09d45
--- /dev/null
@@ -0,0 +1,120 @@
+# AWSTATS MIME DATABASE
+#-------------------------------------------------------
+# If you want to add MIME types,
+# you must add an entry in MimeFamily and may be MimeHashLib
+#-------------------------------------------------------
+# $Revision$ - $Author$ - $Date$
+
+
+#package AWSMIME;
+
+
+# MimeHashLib
+# List of mime's label ("mime id in lower case", "mime text")
+#---------------------------------------------------------------
+%MimeHashLib = (
+'text','Text file',
+'page','HTML static page',
+'script','HTML dynamic page or Script file',
+'image','Image',
+'document','Document',
+'archive','Archive',
+'audio','Audio',
+'video','Video',
+'javascript','Javascript file',
+'conf','Config file',
+'css','Cascading Style Sheet',
+'runtime','HTML dynamic page or Binary runtime',
+'library','Binary library',
+);
+
+# MimeHashIcon
+# Each Mime ID is associated to a string that is the name of icon
+# file for this Mime type.
+#---------------------------------------------------------------------------
+%MimeHashIcon = (
+# Text file
+'txt','text',
+# HTML Static page
+'html','html',
+'htm','html',
+# HTML Dynamic pages or script
+'ksh','script',
+'php','script',
+'pl','script',
+'py','script',
+'sh','script',
+'shtml','html',
+'tcl','script',
+# Image
+'gif','image',
+'png','image',
+'bmp','image',
+'jpg','image',
+'jpeg','image',
+# Document
+'doc','doc',
+'pdf','pdf',
+'xls','notavailable',
+'ppt','notavailable',
+'pps','notavailable',
+# Archive
+'zip','archive',
+'tgz','archive',
+'tar','archive',
+'gz','archive',
+'rar','archive',
+'7z','archive',
+'bz2','archive',
+# Audio
+'mp3','audio',
+'wma','audio',
+'wav','audio',
+# Video
+'avi','video',
+'divx','video',
+'mpeg','video',
+# JS
+'js','other',
+# Config
+'cf','other',
+'conf','other',
+'css','other',
+'ini','other',
+# Program
+'exe','script',
+'dll','script',
+);
+
+
+%MimeHashFamily=(
+# Text file
+'txt','page',
+# HTML Static page
+'html','page','htm','page',
+# HTML Dynamic pages or script
+'ksh','script','php','script','pl','script','py','script','sh','script','shtml','script','tcl','script',
+# Image
+'gif','image','png','image','bmp','image','jpg','image','jpeg','image',
+# Document
+'doc','document','pdf','document','xls','document','ppt','document','pps','document',
+# Archive
+'zip','archive','tgz','archive','tar','archive','gz','archive','rar','archive','7z','archive','bz2','archive',
+# Audio
+'mp3','audio','wav','audio','wma','audio',
+# Video
+'avi','video','divx','video','mpeg','video',
+# JS
+'js','javascript',
+# Config
+'cf','conf',
+'conf','conf',
+'css','css',
+'ini','conf',
+# Program
+'exe','runtime',
+'dll','library',
+);
+
+
+1;