Alternc
latest
Alternc logiel libre pour l'hébergement
mime.php
Go to the documentation of this file.
1
<?php
2
3
/*
4
----------------------------------------------------------------------
5
LICENSE
6
7
This program is free software; you can redistribute it and/or
8
modify it under the terms of the GNU General Public License (GPL)
9
as published by the Free Software Foundation; either version 2
10
of the License, or (at your option) any later version.
11
12
This program is distributed in the hope that it will be useful,
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
GNU General Public License for more details.
16
17
To read the license please visit http://www.gnu.org/copyleft/gpl.html
18
----------------------------------------------------------------------
19
*/
20
21
/**
22
* Browser mime function to detect mime types and show icons or type names
23
* @copyright AlternC-Team 2000-2017 https://alternc.com/
24
*/
25
if
(!IsSet($MIME_H)) {
26
$MIME_H = 1;
27
28
$bro_mime = array(
29
"css"
=>
"text/css"
,
30
"csv"
=>
"text/comma-separated-values"
,
31
"dia"
=>
"application/x-dia"
,
32
"doc"
=>
"application/msword"
,
33
"dot"
=>
"application/msword"
,
34
"epf"
=>
"application/postscript"
,
35
"gif"
=>
"image/gif"
,
36
"hqx"
=>
"application/mac-binhex40"
,
37
"htm"
=>
"text/html"
,
38
"html"
=>
"text/html"
,
39
"jpeg"
=>
"image/jpeg"
,
40
"jpg"
=>
"image/jpeg"
,
41
"m3u"
=>
"audio/mpegurl"
,
42
"mp3"
=>
"audio/mpeg"
,
43
"ogg"
=>
"application/ogg"
,
44
"pdf"
=>
"application/pdf"
,
45
"php"
=>
"text/plain"
,
46
"png"
=>
"image/png"
,
47
"pps"
=>
"application/powerpoint"
,
48
"ppt"
=>
"application/powerpoint"
,
49
"ps"
=>
"application/postscript"
,
50
"psd"
=>
"image/psd"
,
51
"ra"
=>
"audio/x-pn-realaudio"
,
52
"ram"
=>
"audio/x-pn-realaudio"
,
53
"rar"
=>
"application/rar"
,
54
"rm"
=>
"audio/x-pn-realaudio"
,
55
"rtf"
=>
"text/rtf"
,
56
"swf"
=>
"application/x-shockwave-flash"
,
57
"sxc"
=>
"application/vnd.sun.xml.calc"
,
58
"sxd"
=>
"application/vnd.sun.xml.draw"
,
59
"sxi"
=>
"application/vnd.sun.xml.impress"
,
60
"sxw"
=>
"application/vnd.sun.xml.writer"
,
61
"tif"
=>
"image/tiff"
,
62
"tiff"
=>
"image/tiff"
,
63
"txt"
=>
"text/plain"
,
64
"vcf"
=>
"text/x-vCard"
,
65
"vcs"
=>
"text/x-vCalendar"
,
66
"xcf"
=>
"image/xcf"
,
67
"xls"
=>
"application/vnd.ms-excel"
,
68
"zip"
=>
"application/zip"
,
69
);
70
71
$bro_icon = array(
72
"css"
=>
"txt"
,
73
"csv"
=>
"xls"
,
74
"dia"
=>
"jpg"
,
75
"doc"
=>
"doc"
,
76
"dot"
=>
"doc"
,
77
"epf"
=>
"txt"
,
78
"gif"
=>
"jpg"
,
79
"hqx"
=>
"exe"
,
80
"htm"
=>
"htm"
,
81
"html"
=>
"htm"
,
82
"jpeg"
=>
"jpg"
,
83
"jpg"
=>
"jpg"
,
84
"m3u"
=>
"m3u"
,
85
"mp3"
=>
"wav"
,
86
"ogg"
=>
"wav"
,
87
"pdf"
=>
"pdf"
,
88
"php"
=>
"php"
,
89
"png"
=>
"jpg"
,
90
"pps"
=>
"ppt"
,
91
"ppt"
=>
"ppt"
,
92
"ps"
=>
"txt"
,
93
"psd"
=>
"jpg"
,
94
"ra"
=>
"ra"
,
95
"ram"
=>
"ra"
,
96
"rar"
=>
"zip"
,
97
"rm"
=>
"ra"
,
98
"rtf"
=>
"doc"
,
99
"swf"
=>
"swf"
,
100
"sxc"
=>
"sxc"
,
101
"sxd"
=>
"sxd"
,
102
"sxi"
=>
"sxi"
,
103
"sxw"
=>
"sxw"
,
104
"tif"
=>
"jpg"
,
105
"tiff"
=>
"jpg"
,
106
"txt"
=>
"txt"
,
107
"vcf"
=>
"file"
,
108
"vcs"
=>
"file"
,
109
"xcf"
=>
"jpg"
,
110
"xls"
=>
"xls"
,
111
"zip"
=>
"zip"
,
112
);
113
114
$bro_type = array(
115
"css"
=> _(
"CSS Stylesheet"
),
116
"csv"
=> _(
"Comma Separated Values data"
),
117
"dia"
=> _(
"DIA Diagram"
),
118
"doc"
=> _(
"Word Document"
),
119
"dot"
=> _(
"Word Document Template"
),
120
"epf"
=> _(
"Encapsulated Postscript"
),
121
"gif"
=> _(
"GIF Image"
),
122
"hqx"
=> _(
"Macintosh Executable"
),
123
"htm"
=> _(
"HTML Document"
),
124
"html"
=> _(
"HTML Document"
),
125
"jpeg"
=> _(
"JPEG Image"
),
126
"jpg"
=> _(
"JPEG Image"
),
127
"m3u"
=> _(
"Music Playlist"
),
128
"mp3"
=> _(
"MP3 Music File"
),
129
"ogg"
=> _(
"Ogg Music File"
),
130
"pdf"
=> _(
"Acrobat PDF"
),
131
"php"
=> _(
"PHP Source"
),
132
"png"
=> _(
"PNG Image"
),
133
"pps"
=> _(
"Powerpoint Slideshow"
),
134
"ppt"
=> _(
"Powerpoint Slideshow"
),
135
"ps"
=> _(
"Postscript Document"
),
136
"psd"
=> _(
"Photoshop Image"
),
137
"rar"
=> _(
"Rar Compressed Files"
),
138
"rtf"
=> _(
"Rich Text Document"
),
139
"sxc"
=> _(
"OpenOffice Spreadsheet"
),
140
"sxd"
=> _(
"OpenOffice Drawing"
),
141
"sxi"
=> _(
"OpenOffice Presentation"
),
142
"sxw"
=> _(
"OpenOffice Writer"
),
143
"tif"
=> _(
"TIFF Image"
),
144
"tiff"
=> _(
"TIFF Image"
),
145
"txt"
=> _(
"Text Document"
),
146
"vcf"
=> _(
"Virtual Card"
),
147
"vcs"
=> _(
"Virtual Card"
),
148
"xcf"
=> _(
"Gimp Image"
),
149
"xls"
=> _(
"Excel Spreadsheet"
),
150
"zip"
=> _(
"Zip Compressed Files"
),
151
"sxw"
=> _(
"Flash Animation"
),
152
"ra"
=> _(
"Real Media File"
),
153
"rm"
=> _(
"Real Media File"
),
154
"ram"
=> _(
"Real Media File"
),
155
);
156
}
bureau
class
mime.php
Generated on Sat Sep 16 2023 12:00:03 for Alternc by
1.9.1