]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Add support for GPX files
authorFrançois B <github@bonzon.com>
Sat, 19 Nov 2016 07:49:40 +0000 (08:49 +0100)
committerFrançois B <github@bonzon.com>
Sat, 19 Nov 2016 07:49:40 +0000 (08:49 +0100)
wwwroot/cgi-bin/lib/mime.pm
wwwroot/icon/mime/gpx.png [new file with mode: 0644]

index bc63fb3f69cda86c8579e8936d3c43eb56e7d6df..812eedaccce07ed2c047c81347c05b9ddf7dd2ed 100644 (file)
@@ -8,16 +8,16 @@
 #package AWSMIME;
 
 # MimeHashFamily
-# This is a hash table of mime groupings and descriptions. 
-# Report icons will appear if names the same as a family, e.g.
-# if you have a "text.png" icon in the icon/mime directory, the
-# report will load the icon
-# Format:      'family', 'descriptive text',
+# This is a hash table of mime groupings and descriptions.
+# Report icons will appear if file name is the same as a family,
+# e.g. if you have a "text.png" icon in the icon/mime directory,
+# the report will load the icon
+# Format: 'family', 'descriptive text',
 #---------------------------------------------------------------
 %MimeHashFamily = (
 'text',      'Text file',
 'page',      'HTML or XML static page',
-'script',    'Dynamic Html page or Script file',
+'script',    'Dynamic HTML page or Script file',
 'pl',        'Dynamic Perl Script file',
 'php',       'Dynamic PHP Script file',
 'image',     'Image',
@@ -26,7 +26,7 @@
 'archive',   'Archive',
 'audio',     'Audio file',
 'video',     'Video file',
-'jscript',      'JavaScript file',
+'jscript',   'JavaScript file',
 'vbs',       'Visual Basic script',
 'conf',      'Config file',
 'css',       'Cascading Style Sheet file',
 'ttf',       'TrueType scalable font file',
 'fon',       'Font file',
 'pdf',       'Adobe Acrobat file',
-'dotnet',       'Dot Net Dynamic Script or File',
-'mdb',                  'MS Database Object',
-'crystal',      'Crystal Reports data or file',
-'ooffice',      'Open Office Document',
-'encrypt',      'Encrypted document',
+'dotnet',    'Dot Net Dynamic Script or File',
+'mdb',       'MS Database Object',
+'crystal',   'Crystal Reports data or file',
+'ooffice',   'Open Office Document',
+'encrypt',   'Encrypted document',
+'gpx',       'GPS Exchange Format file',
 );
 
 # MimeHashLib
 # and the array is a list of family and file type, e.g. 'd' for download
 # If a file does not have a type defined, it is counted as a page. Each
 # mime entry can have only one type
-# Format:      'extension', ['family', 'type'],
+# Format: 'extension', ['family', 'type'],
 # Valid Types:
-#              i - image
-#              d - download
-#              p - page
+#   i - image
+#   d - download
+#   p - page
 #---------------------------------------------------------------
 %MimeHashLib=(
 # Text file
@@ -82,7 +83,7 @@
 # HTML Dynamic pages or script
 'asp',['script',''],
 'aspx',['dotnet',''],
-'ashx',['dotnet',''], 
+'ashx',['dotnet',''],
 'asmx',['dotnet',''],
 'axd', ['dotnet',''],
 'cfm',['script',''],
 'lit',['lit','d'],
 'mdb',['mdb',''],
 'rpt',['crystal',''],
+'gpx',['gpx','d'],
 # Package
 'rpm',[($LogType eq 'S'?'audio':'package'),'d'],
 'deb',['package','d'],
diff --git a/wwwroot/icon/mime/gpx.png b/wwwroot/icon/mime/gpx.png
new file mode 100644 (file)
index 0000000..03292a8
Binary files /dev/null and b/wwwroot/icon/mime/gpx.png differ