Skip to content

Commit b1c5bb4

Browse files
committed
Merge branch 'develop' of git@github.com:eldy/awstats.git into develop
2 parents 4029684 + d62770d commit b1c5bb4

File tree

4 files changed

+267
-38
lines changed

4 files changed

+267
-38
lines changed

wwwroot/cgi-bin/awstats.pl

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10001,6 +10001,18 @@ sub HTMLTopBanner{
1000110001
"<tr><td class=\"aws\" valign=\"middle\"><b>$Message[133]:</b></td>";
1000210002
print "<td class=\"aws\" valign=\"middle\">";
1000310003
if ( $ENV{'GATEWAY_INTERFACE'} || !$StaticLinks ) {
10004+
print "<select class=\"aws_formfield\" name=\"databasebreak\">\n";
10005+
print "<option"
10006+
. ( $DatabaseBreak eq "month" ? " selected=\"selected\"" : "" )
10007+
. " value=\"month\">Monthly</option>\n";
10008+
print "<option"
10009+
. ( $DatabaseBreak eq "day" ? " selected=\"selected\"" : "" )
10010+
. " value=\"day\">Daily</option>\n";
10011+
print "<option"
10012+
. ( $DatabaseBreak eq "hour" ? " selected=\"selected\"" : "" )
10013+
. " value=\"hour\">Hourly</option>\n";
10014+
print "</select>\n";
10015+
1000410016
print "<select class=\"aws_formfield\" name=\"month\">\n";
1000510017
foreach ( 1 .. 12 ) {
1000610018
my $monthix = sprintf( "%02s", $_ );
@@ -10028,6 +10040,34 @@ sub HTMLTopBanner{
1002810040
. " value=\"$_\">$_</option>\n";
1002910041
}
1003010042
print "</select>\n";
10043+
10044+
if ( $DatabaseBreak eq 'day' ||
10045+
$DatabaseBreak eq 'hour') {
10046+
if (!$DayRequired) {
10047+
$DayRequired = $nowday;
10048+
}
10049+
print "<select class=\"aws_formfield\" name=\"day\">\n";
10050+
foreach ( 1 .. 31 ) {
10051+
print "<option"
10052+
. ( $DayRequired eq "$_" ? " selected=\"selected\"" : "" )
10053+
. " value=\"$_\">$_</option>\n";
10054+
}
10055+
print "</select>\n";
10056+
}
10057+
10058+
if ( $DatabaseBreak eq 'hour') {
10059+
if (!$HourRequired) {
10060+
$HourRequired = $nowhour;
10061+
}
10062+
print "<select class=\"aws_formfield\" name=\"day\">\n";
10063+
foreach ( 1 .. 31 ) {
10064+
print "<option"
10065+
. ( $HourRequired eq "$_" ? " selected=\"selected\"" : "" )
10066+
. " value=\"$_\">$_</option>\n";
10067+
}
10068+
print "</select>\n";
10069+
}
10070+
1003110071
print "<input type=\"hidden\" name=\"output\" value=\""
1003210072
. join( ',', keys %HTMLOutput )
1003310073
. "\" />\n";

wwwroot/cgi-bin/lib/mime.pm

Lines changed: 54 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,14 @@
5050
'mdb', 'MS Database Object',
5151
'crystal', 'Crystal Reports data or file',
5252
'ooffice', 'Open Office Document',
53+
'libreoffice', 'LibreOffice Document',
5354
'encrypt', 'Encrypted document',
5455
'gpx', 'GPS Exchange Format file',
56+
'diskimage', 'Disc and media file extensions',
57+
'vm', 'Virtual Machine image',
58+
'torrent', 'BitTorrent File',
59+
'gis', 'GIS File'
60+
'ebook', 'Ebook File'
5561
);
5662

5763
# MimeHashLib
@@ -94,11 +100,13 @@
94100
'cgi',['script',''],
95101
'ksh',['script',''],
96102
'php',['php',''],
103+
'phps',['php',''],
97104
'php3',['php',''],
98105
'php4',['php',''],
99106
'pl',['pl',''],
100107
'py',['script',''],
101108
'rss',['rss',''],
109+
'atom',['rss',''],
102110
'sh',['script',''],
103111
'shtml',['script',''],
104112
'tcl',['script',''],
@@ -114,6 +122,10 @@
114122
'ico',['image','i'],
115123
'svg',['image','i'],
116124
'svgz',['image','i'],
125+
'webp',['image','i'],
126+
'heic',['image','i'],
127+
'tif',['image','i'],
128+
'tiff',['image','i'],
117129
# Document
118130
'ai',['document','d'],
119131
'doc',['document','d'],
@@ -135,17 +147,38 @@
135147
'sxd',['ooffice','d'],
136148
'sxm',['ooffice','d'],
137149
'sxg',['ooffice','d'],
150+
'odb',['libreoffice','d'],
151+
'odf',['libreoffice','d'],
152+
'odg',['libreoffice','d'],
153+
'odm',['libreoffice','d'],
154+
'odp',['libreoffice','d'],
155+
'ods',['libreoffice','d'],
156+
'odt',['libreoffice','d'],
157+
'oth',['libreoffice','d'],
158+
'otg',['libreoffice','d'],
159+
'otp',['libreoffice','d'],
160+
'ots',['libreoffice','d'],
161+
'ott',['libreoffice','d'],
162+
'oxt',['libreoffice','d'],
138163
'csv',['csv','d'],
139164
'xsl',['xsl','d'],
140165
'lit',['lit','d'],
141-
'mdb',['mdb',''],
142-
'rpt',['crystal',''],
143-
'gpx',['gpx','d'],
166+
'mdb',['mdb','d'],
167+
'rpt',['crystal','d'],
168+
'epub',['ebook','d'],
169+
'mobi',['ebook','d'],
170+
'azw',['ebook','d'],
171+
'azw3',['ebook','d'],
172+
# GIS files
173+
'gpx',['gis','d'],
174+
'kml',['gis','d'],
175+
'kmz',['gis','d'],
144176
# Package
145177
'rpm',[($LogType eq 'S'?'audio':'package'),'d'],
146178
'deb',['package','d'],
147179
'msi',['package','d'],
148180
'pkg',['package','d'],
181+
'apk',['package','d'],
149182
# Archive
150183
'7z',['archive','d'],
151184
'ace',['archive','d'],
@@ -160,6 +193,7 @@
160193
'tar',['archive','d'],
161194
'tgz',['archive','d'],
162195
'tbz2',['archive','d'],
196+
'xz',['archive','d'],
163197
'z',['archive','d'],
164198
'zip',['archive','d'],
165199
# Audio
@@ -179,6 +213,7 @@
179213
'mp4',['video','d'],
180214
'm4v',['video','d'],
181215
'mpeg',['video','d'],
216+
'mkv',['video','d'],
182217
'mpg',['video','d'],
183218
'ogv',['video','d'],
184219
'ogx',['video','d'],
@@ -190,6 +225,7 @@
190225
'wmf',['video','d'],
191226
'mov',['video','d'],
192227
'qt',['video','d'],
228+
'webm',['video','d'],
193229
# Config
194230
'cf',['conf',''],
195231
'conf',['conf',''],
@@ -211,6 +247,21 @@
211247
# Encrypted files
212248
'pgp',['encrypt',''],
213249
'gpg',['encrypt',''],
250+
# Disc and media file extensions
251+
'bin',['diskimage','d'],
252+
'dmg',['diskimage','d'],
253+
'iso',['diskimage','d'],
254+
'toast',['diskimage','d'],
255+
'vcd',['diskimage','d'],
256+
# Virtual Machine images
257+
'qcow2',['vm','d'],
258+
'raw',['vm','d'],
259+
'ovf',['vm','d'],
260+
'ova',['vm','d'],
261+
'vmdk',['vm','d'],
262+
'vdi',['vm','d'],
263+
'vhdx',['vm','d'],
264+
'vpc',['vm','d'],
214265
);
215266

216267

0 commit comments

Comments
 (0)