3 /***************************************************************************\
4 * SPIP, Systeme de publication pour l'internet *
6 * Copyright (c) 2001-2014 *
7 * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James *
9 * Ce programme est un logiciel libre distribue sous licence GNU/GPL. *
10 * Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne. *
11 \***************************************************************************/
15 if (!defined('_ECRIRE_INC_VERSION')) return;
17 global $tables_images, $tables_sequences, $tables_documents, $tables_mime, $mime_alias;
19 $tables_images = array(
20 // Images reconnues par PHP
25 // Autres images (peuvent utiliser le tag <img>)
30 // Multimedia (peuvent utiliser le tag <embed>)
32 $tables_sequences = array(
34 'asf' => 'Windows Media',
36 'flv' => 'Flash Video',
39 'mka' => 'Matroska Audio',
40 'mkv' => 'Matroska Video',
50 'svg' => 'Scalable Vector Graphics',
53 'wmv' => 'Windows Media',
54 '3gp' => '3rd Generation Partnership Project'
58 $tables_documents = array(
60 'ai' => 'Adobe Illustrator',
62 'bin' => 'Binary Data',
65 'cls' => 'LaTeX Class',
66 'css' => 'Cascading Style Sheet',
67 'csv' => 'Comma Separated Values',
72 'eps' => 'PostScript',
76 'kml' => 'Keyhole Markup Language',
77 'kmz' => 'Google Earth Placemark File',
80 'pgn' => 'Portable Game Notation',
81 'ppt' => 'PowerPoint',
84 'rpm' => 'RedHat/Mandrake/SuSE',
86 'sdd' => 'StarOffice',
87 'sdw' => 'StarOffice',
89 'sty' => 'LaTeX Style Sheet',
90 'sxc' => 'OpenOffice.org Calc',
91 'sxi' => 'OpenOffice.org Impress',
92 'sxw' => 'OpenOffice.org',
95 'torrent' => 'BitTorrent',
98 'xcf' => 'GIMP multi-layer',
103 // open document format
104 'odt' => 'opendocument text',
105 'ods' => 'opendocument spreadsheet',
106 'odp' => 'opendocument presentation',
107 'odg' => 'opendocument graphics',
108 'odc' => 'opendocument chart',
109 'odf' => 'opendocument formula',
110 'odb' => 'opendocument database',
111 'odi' => 'opendocument image',
112 'odm' => 'opendocument text-master',
113 'ott' => 'opendocument text-template',
114 'ots' => 'opendocument spreadsheet-template',
115 'otp' => 'opendocument presentation-template',
116 'otg' => 'opendocument graphics-template',
120 $tables_mime = array(
121 // Images reconnues par PHP
126 // Autres images (peuvent utiliser le tag <img>)
127 'bmp'=>'image/x-ms-bmp', // pas enregistre par IANA, variante: image/bmp
130 // Multimedia (peuvent utiliser le tag <embed>)
131 'aiff'=>'audio/x-aiff',
132 'asf'=>'video/x-ms-asf',
133 'avi'=>'video/x-msvideo',
134 'flv' => 'video/x-flv',
136 'mka' => 'audio/mka',
137 'mkv' => 'video/mkv',
138 'mng'=>'video/x-mng',
139 'mov'=>'video/quicktime',
141 'mp4' => 'application/mp4',
143 'ogg'=>'application/ogg',
144 'qt' =>'video/quicktime',
145 'ra' =>'audio/x-pn-realaudio',
146 'ram'=>'audio/x-pn-realaudio',
147 'rm' =>'audio/x-pn-realaudio',
148 'svg'=>'image/svg+xml',
149 'swf'=>'application/x-shockwave-flash',
150 'wav'=>'audio/x-wav',
151 'wmv'=>'video/x-ms-wmv',
155 'ai' =>'application/illustrator',
156 'abw' =>'application/abiword',
157 'bin' => 'application/octet-stream', # le tout-venant
158 'blend' => 'application/x-blender',
159 'bz2'=>'application/x-bzip2',
163 'deb'=>'application/x-debian-package',
164 'doc'=>'application/msword',
165 'djvu'=>'image/vnd.djvu',
166 'dvi'=>'application/x-dvi',
167 'eps'=>'application/postscript',
168 'gz' =>'application/x-gzip',
171 'kml'=>'application/vnd.google-earth.kml+xml',
172 'kmz'=>'application/vnd.google-earth.kmz',
173 'pas'=>'text/x-pascal',
174 'pdf'=>'application/pdf',
175 'pgn' =>'application/x-chess-pgn',
176 'ppt'=>'application/vnd.ms-powerpoint',
177 'ps' =>'application/postscript',
178 'psd'=>'image/x-photoshop', // pas enregistre par IANA
179 'rpm'=>'application/x-redhat-package-manager',
180 'rtf'=>'application/rtf',
181 'sdd'=>'application/vnd.stardivision.impress',
182 'sdw'=>'application/vnd.stardivision.writer',
183 'sit'=>'application/x-stuffit',
184 'sxc'=>'application/vnd.sun.xml.calc',
185 'sxi'=>'application/vnd.sun.xml.impress',
186 'sxw'=>'application/vnd.sun.xml.writer',
188 'tgz'=>'application/x-gtar',
189 'torrent' => 'application/x-bittorrent',
190 'ttf'=>'application/x-font-ttf',
192 'xcf'=>'application/x-xcf',
193 'xls'=>'application/vnd.ms-excel',
194 'xml'=>'application/xml',
195 'zip'=>'application/zip',
197 // open document format
198 'odt' => 'application/vnd.oasis.opendocument.text',
199 'ods' => 'application/vnd.oasis.opendocument.spreadsheet',
200 'odp' => 'application/vnd.oasis.opendocument.presentation',
201 'odg' => 'application/vnd.oasis.opendocument.graphics',
202 'odc' => 'application/vnd.oasis.opendocument.chart',
203 'odf' => 'application/vnd.oasis.opendocument.formula',
204 'odb' => 'application/vnd.oasis.opendocument.database',
205 'odi' => 'application/vnd.oasis.opendocument.image',
206 'odm' => 'application/vnd.oasis.opendocument.text-master',
207 'ott' => 'application/vnd.oasis.opendocument.text-template',
208 'ots' => 'application/vnd.oasis.opendocument.spreadsheet-template',
209 'otp' => 'application/vnd.oasis.opendocument.presentation-template',
210 'otg' => 'application/vnd.oasis.opendocument.graphics-template',
216 $mime_alias = array (
217 'audio/x-mpeg' => 'audio/mpeg',
218 'application/x-ogg' => 'application/ogg',
219 'video/mp4' => 'application/mp4',
220 'video/flv' => 'video/x-flv',
221 'audio/3gpp' => 'video/3gpp'