Implemented the update-command in scripts/plugin. 'install' complains now about an...
[akelos.git] / lib / utils / mime_types.php
blobc613926505ed506b922a167e2a4f51c4b19a3ead
1 <?php
2 /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
4 // +----------------------------------------------------------------------+
5 // | Akelos Framework - http://www.akelos.org |
6 // +----------------------------------------------------------------------+
7 // | Copyright (c) 2002-2006, Akelos Media, S.L. & Bermi Ferrer Martinez |
8 // | Released under the GNU Lesser General Public License, see LICENSE.txt|
9 // +----------------------------------------------------------------------+
11 /**
12 * @package ActiveSupport
13 * @subpackage Utils
14 * @author Bermi Ferrer <bermi a.t akelos c.om>
15 * @copyright Copyright (c) 2002-2006, Akelos Media, S.L. http://www.akelos.org
16 * @license GNU Lesser General Public License <http://www.gnu.org/copyleft/lesser.html>
19 $mime_types = array(
20 '323 ' => 'text/h323',
21 'acutc' => 'application/vnd.acucorp',
22 'acx' => 'application/internet-property-stream',
23 'ai' => 'application/postscript',
24 'aif' => 'audio/x-aiff',
25 'aifc' => 'audio/x-aiff',
26 'aiff' => 'audio/x-aiff',
27 'ami' => 'application/vnd.amiga.amu',
28 'ani' => 'application/octet-stream',
29 'asc' => 'application/pgp',
30 'asf' => 'video/x-ms-asf',
31 'asr' => 'video/x-ms-asf',
32 'asx' => 'video/x-ms-asf',
33 'atc' => 'application/vnd.acucorp',
34 'au' => 'audio/basic',
35 'avi' => 'video/x-msvideo',
36 'axs' => 'application/olescript',
37 'bak' => 'application/x-trash',
38 'bas' => 'text/plain',
39 'bat' => 'application/x-msdos-program',
40 'bck' => 'application/VMSBACKUP',
41 'bcpio' => 'application/x-bcpio',
42 'bin' => 'application/octet-stream',
43 'bleep' => 'application/bleeper',
44 'bmp' => 'image/bmp',
45 'book' => 'application/x-maker',
46 'bpd' => 'application/vnd.hbci',
47 'bz2' => 'application/x-bzip2',
48 'c' => 'text/plain',
49 'c++' => 'text/plain',
50 'cat' => 'application/vnd.ms-pkiseccat',
51 'cc' => 'text/plain',
52 'ccc' => 'text/vnd.net2phone.commcenter.command',
53 'cdf' => 'application/x-cdf',
54 'cdy' => 'application/vnd.cinderella',
55 'cer' => 'application/x-x509-ca-cert',
56 'chrt' => 'application/vnd.kde.kchart',
57 'cil' => 'application/vnd.ms-artgalry',
58 'class' => 'application/octet-stream',
59 'clp' => 'application/x-msclip',
60 'cls' => 'text/x-tex',
61 'cmx' => 'image/x-cmx',
62 'cod' => 'image/cis-cod',
63 'com' => 'application/x-msdos-program',
64 'cpio' => 'application/x-cpio',
65 'cpp' => 'text/x-c++src',
66 'cpt' => 'application/mac-compactpro',
67 'crd' => 'application/x-mscardfile',
68 'crl' => 'application/pkix-crl',
69 'crt' => 'application/x-x509-ca-cert',
70 'cs' => 'text/plain',
71 'csh' => 'application/x-csh',
72 'csm' => 'application/cu-seeme',
73 'css' => 'text/css',
74 'csv' => 'text/comma-separated-values',
75 'cu' => 'application/cu-seeme',
76 'curl' => 'application/vnd.curl',
77 'cw' => 'application/prs.cww',
78 'cww' => 'application/prs.cww',
79 'cxx' => 'text/x-c++src',
80 'dcr' => 'application/x-director',
81 'deb' => 'application/x-debian-package',
82 'der' => 'application/x-x509-ca-cert',
83 'dfac' => 'application/vnd.dreamfactory',
84 'diff' => 'text/diff',
85 'dir' => 'application/x-director',
86 'dl' => 'video/dl',
87 'dll' => 'application/x-msdownload',
88 'dms' => 'application/octet-stream',
89 'doc' => 'application/msword',
90 'dot' => 'application/msword',
91 'dvi' => 'application/x-dvi',
92 'dxr' => 'application/x-director',
93 'ecelp4800' => 'audio/vnd.nuera.ecelp4800',
94 'ecelp7470' => 'audio/vnd.nuera.ecelp7470',
95 'ecelp9600' => 'audio/vnd.nuera.ecelp9600',
96 'emm' => 'application/vnd.ibm.electronic-media',
97 'eol' => 'audio/vnd.digital-winds',
98 'eps' => 'application/postscript',
99 'etx' => 'text/x-setext',
100 'evy' => 'application/envoy',
101 'exe' => 'application/octet-stream',
102 'ez' => 'application/andrew-inset',
103 'fb' => 'application/x-maker',
104 'fbdoc' => 'application/x-maker',
105 'fif' => 'application/fractals',
106 'fli' => 'video/fli',
107 'flo' => 'application/vnd.micrografx.flo',
108 'flr' => 'x-world/x-vrml',
109 'flw' => 'application/vnd.kde.kivio',
110 'fm' => 'application/x-maker',
111 'frame' => 'application/x-maker',
112 'frm' => 'application/x-maker',
113 'fsc' => 'application/vnd.fsc.weblauch',
114 'gf' => 'application/x-tex-gf',
115 'gif' => 'image/gif',
116 'gl' => 'video/gl',
117 'gsf' => 'application/x-font',
118 'gsm' => 'audio/x-gsm',
119 'gtar' => 'application/x-gtar',
120 'gz' => 'application/x-gzip',
121 'h' => 'text/plain',
122 'h++' => 'text/plain',
123 'hbc' => 'application/vnd.hbci',
124 'hbci' => 'application/vnd.hbci',
125 'hdf' => 'application/x-hdf',
126 'hh' => 'text/plain',
127 'hlp' => 'application/winhlp',
128 'hpgl' => 'application/vnd.hp-HPGL',
129 'hpp' => 'text/plain',
130 'hqx' => 'application/mac-binhex40',
131 'hta' => 'application/hta',
132 'htc' => 'text/x-component',
133 'htke' => 'application/vnd.kenameapp',
134 'htm' => 'text/html',
135 'html' => 'text/html',
136 'htt' => 'text/webviewhtml',
137 'hxx' => 'text/plain',
138 'ica' => 'application/x-ica',
139 'ice' => 'x-conference/x-cooltalk',
140 'ico' => 'image/x-icon',
141 'ics' => 'text/calendar',
142 'ief' => 'image/ief',
143 'ifb' => 'text/calendar',
144 'iges' => 'model/iges',
145 'igs' => 'model/iges',
146 'igx' => 'application/vnd.micrografx.igx',
147 'iii' => 'application/x-iphone',
148 'imagemap' => 'application/imagemap',
149 'imap' => 'application/imagemap',
150 'ins' => 'application/x-internet-signup',
151 'irp' => 'application/vnd.irepository.package+xml',
152 'isp' => 'application/x-internet-signup',
153 'jad' => 'text/vnd.sun.j2me.app-descriptor',
154 'jar' => 'application/x-jar',
155 'java' => 'text/x-java-source',
156 'jfif' => 'image/pipeg',
157 'jisp' => 'application/vnd.jisp',
158 'jpe' => 'image/jpeg',
159 'jpeg' => 'image/jpeg',
160 'jpg' => 'image/jpeg',
161 'js' => 'application/x-javascript',
162 'kar' => 'audio/midi',
163 'karbon' => 'application/vnd.kde.karbon',
164 'kfo' => 'application/vnd.kde.kformula',
165 'kom' => 'application/vnd.hbci',
166 'kon' => 'application/vnd.kde.kontour',
167 'ksp' => 'application/vnd.kde.kspread',
168 'kwd' => 'application/vnd.kde.kword',
169 'kwt' => 'application/vnd.kde.kword',
170 'latex' => 'application/x-latex',
171 'lbd' => 'application/vnd.llamagraphics.life-balance.desktop',
172 'les' => 'application/vnd.hhe.lesson-player',
173 'lha' => 'application/octet-stream',
174 'log' => 'text/plain',
175 'lrm' => 'application/vnd.ms-lrm',
176 'lsf' => 'video/x-la-asf',
177 'lsx' => 'video/x-la-asf',
178 'ltx' => 'text/x-tex',
179 'lvp' => 'audio/vnd.lucent.voice',
180 'lzh' => 'application/octet-stream',
181 'm13' => 'application/x-msmediaview',
182 'm14' => 'application/x-msmediaview',
183 'm3u' => 'audio/x-mpegurl',
184 'maker' => 'application/x-maker',
185 'man' => 'application/x-troff-man',
186 'mcd' => 'application/mathcad',
187 'mda' => 'application/vnd.ms-access',
188 'mdb' => 'application/x-msaccess',
189 'mde' => 'application/vnd.ms-access',
190 'mdf' => 'application/access',
191 'me' => 'application/x-troff-me',
192 'mesh' => 'model/mesh',
193 'mht' => 'message/rfc822',
194 'mhtml' => 'message/rfc822',
195 'mid' => 'audio/mid',
196 'midi' => 'audio/midi',
197 'mif' => 'application/x-mif',
198 'mml' => 'text/mathml',
199 'mny' => 'application/x-msmoney',
200 'moc' => 'text/x-moc',
201 'mov' => 'video/quicktime',
202 'movie' => 'video/x-sgi-movie',
203 'mp2' => 'video/mpeg',
204 'mp3' => 'audio/mpeg',
205 'mpa' => 'video/mpeg',
206 'mpc' => 'application/vnd.mophun.certificate',
207 'mpe' => 'video/mpeg',
208 'mpeg' => 'video/mpeg',
209 'mpega' => 'audio/mpeg',
210 'mpg' => 'video/mpeg',
211 'mpga' => 'audio/mpeg',
212 'mpm' => 'application/vnd.blueice.multipass',
213 'mpn' => 'application/vnd.mophun.application',
214 'mpp' => 'application/vnd.ms-project',
215 'mpv2' => 'video/mpeg',
216 'ms' => 'application/x-troff-ms',
217 'mseq' => 'application/vnd.mseq',
218 'msh' => 'model/mesh',
219 'mvb' => 'application/x-msmediaview',
220 'mxu' => 'video/vnd.mpegurl',
221 'nc' => 'application/x-netcdf',
222 'nim' => 'video/vnd.nokia.interleaved-multimedia',
223 'nws' => 'message/rfc822',
224 'o' => 'application/x-object',
225 'oda' => 'application/oda',
226 'old' => 'application/x-trash',
227 'oprc' => 'application/vnd.palm',
228 'p' => 'text/x-pascal',
229 'p10' => 'application/pkcs10',
230 'p12' => 'application/x-pkcs12',
231 'p7b' => 'application/x-pkcs7-certificates',
232 'p7c' => 'application/x-pkcs7-mime',
233 'p7m' => 'application/x-pkcs7-mime',
234 'p7r' => 'application/x-pkcs7-certreqresp',
235 'p7s' => 'application/x-pkcs7-signature',
236 'pac' => 'application/x-ns-proxy-autoconfig',
237 'pas' => 'text/x-pascal',
238 'patch' => 'text/diff',
239 'pbm' => 'image/x-portable-bitmap',
240 'pcf' => 'application/x-font',
241 'pcf.Z' => 'application/x-font',
242 'pdb' => 'application/vnd.palm',
243 'pdf' => 'application/pdf',
244 'pfa' => 'application/x-font',
245 'pfb' => 'application/x-font',
246 'pfr' => 'application/font-tdpfr',
247 'pfx' => 'application/x-pkcs12',
248 'pgb' => 'image/vnd.glocalgraphics.pgb',
249 'pgm' => 'image/x-portable-graymap',
250 'pgn' => 'application/x-chess-pgn',
251 'pgp' => 'application/pgp-signature',
252 'php' => 'application/x-httpd-php',
253 'php3' => 'application/x-httpd-php3',
254 'php3p' => 'application/x-httpd-php3-preprocessed',
255 'phps' => 'application/x-httpd-php3-source',
256 'pht' => 'application/x-httpd-php',
257 'phtml' => 'application/x-httpd-php',
258 'pk' => 'application/x-tex-pk',
259 'pkd' => 'application/vnd.hbci',
260 'pko' => 'application/ynd.ms-pkipko',
261 'pl' => 'application/x-perl',
262 'plb' => 'application/vnd.3gpp.pic-bw-large',
263 'plj' => 'audio/vnd.everad.plj',
264 'plt' => 'application/vnd.hp-HPGL',
265 'pm' => 'application/x-perl',
266 'pm5' => 'application/pagemaker',
267 'pma' => 'application/x-perfmon',
268 'pmc' => 'application/x-perfmon',
269 'pml' => 'application/x-perfmon',
270 'pmr' => 'application/x-perfmon',
271 'pmw' => 'application/x-perfmon',
272 'png' => 'image/png',
273 'pnm' => 'image/x-portable-anymap',
274 'po' => 'text/plain',
275 'pot' => 'application/vnd.ms-powerpoint',
276 'pot,' => 'application/vnd.ms-powerpoint',
277 'ppm' => 'image/x-portable-pixmap',
278 'pps' => 'application/vnd.ms-powerpoint',
279 'ppt' => 'application/vnd.ms-powerpoint',
280 'pqa' => 'application/vnd.palm',
281 'prc' => 'application/vnd.palm',
282 'prf' => 'application/pics-rules',
283 'ps' => 'application/postscript',
284 'ps-z' => 'application/postscript',
285 'psb' => 'application/vnd.3gpp.pic-bw-small',
286 'pt5' => 'application/pagemaker',
287 'pti' => 'application/vnd.pvi.ptid1',
288 'ptid' => 'application/vnd.pvi.ptid1',
289 'pub' => 'application/x-mspublisher',
290 'pvb' => 'application/vnd.3gpp.pic-bw-var',
291 'qt' => 'video/quicktime',
292 'qtl' => 'application/quicktimeplayer',
293 'qwd' => 'application/vnd.Quark.QuarkXPress',
294 'qwt' => 'application/vnd.Quark.QuarkXPress',
295 'qxb' => 'application/vnd.Quark.QuarkXPress',
296 'qxd' => 'application/vnd.Quark.QuarkXPress',
297 'qxl' => 'application/vnd.Quark.QuarkXPress',
298 'qxt' => 'application/vnd.Quark.QuarkXPress',
299 'ra' => 'audio/x-pn-realaudio',
300 'ram' => 'audio/x-pn-realaudio',
301 'rar' => 'application/x-rar-compressed',
302 'ras' => 'image/x-cmu-raster',
303 'rct' => 'application/prs.nprend',
304 'rdz' => 'application/vnd.data-vision.rdz',
305 'rgb' => 'image/x-rgb',
306 'rm' => 'audio/x-pn-realaudio',
307 'rmi' => 'audio/mid',
308 'rnd' => 'application/prs.nprend',
309 'roff' => 'application/x-troff',
310 'rpm' => 'audio/x-pn-realaudio-plugin',
311 'rtf' => 'application/rtf',
312 'rtx' => 'text/richtext',
313 'sav' => 'application/x-spss',
314 'sbs' => 'application/x-spss',
315 'sc' => 'application/vnd.ibm.secure-container',
316 'scd' => 'application/x-msschedule',
317 'sct' => 'text/scriptlet',
318 'setpay' => 'application/set-payment-initiation',
319 'setreg' => 'application/set-registration-initiation',
320 'sgm' => 'text/sgml',
321 'sgml' => 'text/sgml',
322 'sh' => 'application/x-sh',
323 'shar' => 'application/x-shar',
324 'shtml' => 'text/html',
325 'sik' => 'application/x-trash',
326 'silo' => 'model/mesh',
327 'sit' => 'application/x-stuffit',
328 'skd' => 'application/x-koan',
329 'skm' => 'application/x-koan',
330 'skp' => 'application/x-koan',
331 'skt' => 'application/x-koan',
332 'smi' => 'application/smil',
333 'smil' => 'application/smil',
334 'sms' => 'application/vnd.3gpp.sms',
335 'snd' => 'audio/basic',
336 'so' => 'application/octet-stream',
337 'soc' => 'application/sgml-open-catalog',
338 'spc' => 'application/x-pkcs7-certificates',
339 'spl' => 'application/futuresplash',
340 'spo' => 'application/x-spss',
341 'spp' => 'application/x-spss',
342 'sps' => 'application/x-spss',
343 'src' => 'application/x-wais-source',
344 'sst' => 'application/vnd.ms-pkicertstore',
345 'stc' => 'application/vnd.sun.xml.calc.template',
346 'std' => 'application/vnd.sun.xml.draw.template',
347 'sti' => 'application/vnd.sun.xml.impress.template',
348 'stk' => 'application/hyperstudio',
349 'stl' => 'application/vnd.ms-pkistl',
350 'stm' => 'text/html',
351 'stw' => 'application/vnd.sun.xml.writer.template',
352 'sty' => 'text/x-tex',
353 'sv4cpio' => 'application/x-sv4cpio',
354 'sv4crc' => 'application/x-sv4crc',
355 'swf' => 'application/x-shockwave-flash',
356 'swfl' => 'application/x-shockwave-flash',
357 'sxc' => 'application/vnd.sun.xml.calc',
358 'sxd' => 'application/vnd.sun.xml.draw',
359 'sxg' => 'application/vnd.sun.xml.writer.global',
360 'sxi' => 'application/vnd.sun.xml.impress',
361 'sxm' => 'application/vnd.sun.xml.math',
362 'sxw' => 'application/vnd.sun.xml.writer',
363 't' => 'application/x-troff',
364 'tar' => 'application/x-tar',
365 'tbk' => 'application/toolbook',
366 'tbz' => 'application/x-gtar',
367 'tbz2' => 'application/x-gtar',
368 'tcl' => 'application/x-tcl',
369 'tex' => 'application/x-tex',
370 'texi' => 'application/x-texinfo',
371 'texinfo' => 'application/x-texinfo',
372 'tgz' => 'application/x-compressed',
373 'tif' => 'image/tiff',
374 'tiff' => 'image/tiff',
375 'tk' => 'text/x-tcl',
376 'tr' => 'application/x-troff',
377 'trm' => 'application/x-msterminal',
378 'tsp' => 'application/dsptype',
379 'tsv' => 'text/tab-separated-values',
380 'txt' => 'text/plain',
381 'uls' => 'text/iuls',
382 'upa' => 'application/vnd.hbci',
383 'ustar' => 'application/x-ustar',
384 'vbk' => 'audio/vnd.nortel.vbk',
385 'vbs' => 'text/plain',
386 'vcd' => 'application/x-cdlink',
387 'vcf' => 'text/x-vcard',
388 'vcs' => 'text/calendar',
389 'vfb' => 'text/calendar',
390 'vis' => 'application/vnd.visionary',
391 'vrm' => 'x-world/x-vrml',
392 'vrml' => 'x-world/x-vrml',
393 'vsc' => 'application/vnd.vidsoft.vidconference',
394 'vsd' => 'application/vnd.visio',
395 'wav' => 'audio/x-wav',
396 'wax' => 'audio/x-ms-wax',
397 'wbmp' => 'image/vnd.wap.wbmp',
398 'wbxml' => 'application/vnd.wap.wbxml',
399 'wcm' => 'application/vnd.ms-works',
400 'wdb' => 'application/vnd.ms-works',
401 'wk' => 'application/x-123',
402 'wks' => 'application/vnd.ms-works',
403 'wm' => 'video/x-ms-wm',
404 'wma' => 'audio/x-ms-wma',
405 'wmd' => 'application/x-ms-wmd',
406 'wmf' => 'application/x-msmetafile',
407 'wml' => 'text/vnd.wap.wml',
408 'wmlc' => 'application/vnd.wap.wmlc',
409 'wmls' => 'text/vnd.wap.wmlscript',
410 'wmlsc' => 'application/vnd.wap.wmlscriptc',
411 'wmv' => 'video/x-ms-wmv',
412 'wmx' => 'video/x-ms-wmx',
413 'wmz' => 'application/x-ms-wmz',
414 'wp' => 'application/wordperfect',
415 'wp5' => 'application/wordperfect5.1',
416 'wp6' => 'application/wordperfect6.1',
417 'wpd' => 'application/wordperfectd',
418 'wpl' => 'application/vnd.ms-wpl',
419 'wps' => 'application/vnd.ms-works',
420 'wrd' => 'application/msword',
421 'wri' => 'application/x-mswrite',
422 'wrl' => 'x-world/x-vrml',
423 'wrz' => 'x-world/x-vrml',
424 'wvx' => 'video/x-ms-wvx',
425 'wz' => 'application/x-Wingz',
426 'x_b' => 'model/vnd.parasolid.transmit.binary',
427 'x_t' => 'model/vnd.parasolid.transmit.text',
428 'xaf' => 'x-world/x-vrml',
429 'xbm' => 'image/x-xbitmap',
430 'xfdf' => 'application/vnd.adobe.xfdf',
431 'xht' => 'application/xhtml+xml',
432 'xhtml' => 'application/xhtml+xml',
433 'xla' => 'application/vnd.ms-excel',
434 'xlc' => 'application/vnd.ms-excel',
435 'xlm' => 'application/vnd.ms-excel',
436 'xls' => 'application/vnd.ms-excel',
437 'xlt' => 'application/vnd.ms-excel',
438 'xlw' => 'application/vnd.ms-excel',
439 'xml' => 'application/xml',
440 'xmt_bin' => 'model/vnd.parasolid.transmit.binary',
441 'xmt_txt' => 'model/vnd.parasolid.transmit.text',
442 'xof' => 'x-world/x-vrml',
443 'xpm' => 'image/x-xpixmap',
444 'xsl' => 'text/xml',
445 'xul' => 'application/vnd.mozilla.xul+xml',
446 'xwd' => 'image/x-xwindowdump',
447 'xyz' => 'chemical/x-xyz',
448 'z' => 'application/x-compress',
449 'zip' => 'application/zip'