From: eldy <> Date: Thu, 16 Jan 2003 14:10:38 +0000 (+0000) Subject: Added icons for file types. X-Git-Tag: AWSTATS_5_4_BETA~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1b59fcd91726d3f243c3f6652740815443fa284;p=thirdparty%2FAWStats.git Added icons for file types. --- diff --git a/wwwroot/cgi-bin/lib/mime.pm b/wwwroot/cgi-bin/lib/mime.pm new file mode 100644 index 00000000..8a09d455 --- /dev/null +++ b/wwwroot/cgi-bin/lib/mime.pm @@ -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;