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 ## cette API ne sait pas gerer les aliases ; a revoir...
19 global $tables_images, $tables_sequences, $tables_documents, $tables_mime;
21 $tables_images = array(
22 // Images reconnues par PHP
27 // Autres images (peuvent utiliser le tag <img>)
32 // Multimedia (peuvent utiliser le tag <embed>)
34 $tables_sequences = array(
36 'asf' => 'Windows Media',
38 'flv' => 'Flash Video',
41 'mka' => 'Matroska Audio',
42 'mkv' => 'Matroska Video',
52 'svg' => 'Scalable Vector Graphics',
55 'wmv' => 'Windows Media'
59 $tables_documents = array(
61 'ai' => 'Adobe Illustrator',
63 'bin' => 'Binary Data',
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 'sxc' => 'OpenOffice Calc',
90 'sxi' => 'OpenOffice Impress',
91 'sxw' => 'OpenOffice',
94 'torrent' => 'BitTorrent',
97 'xcf' => 'GIMP multi-layer',
102 // open document format
103 'odt' => 'opendocument text',
104 'ods' => 'opendocument spreadsheet',
105 'odp' => 'opendocument presentation',
106 'odg' => 'opendocument graphics',
107 'odc' => 'opendocument chart',
108 'odf' => 'opendocument formula',
109 'odb' => 'opendocument database',
110 'odi' => 'opendocument image',
111 'odm' => 'opendocument text-master',
112 'ott' => 'opendocument text-template',
113 'ots' => 'opendocument spreadsheet-template',
114 'otp' => 'opendocument presentation-template',
115 'otg' => 'opendocument graphics-template',
119 $tables_mime = array(
120 // Images reconnues par PHP
125 // Autres images (peuvent utiliser le tag <img>)
126 'bmp'=>'image/x-ms-bmp', // pas enregistre par IANA, variante: image/bmp
129 // Multimedia (peuvent utiliser le tag <embed>)
130 'aiff'=>'audio/x-aiff',
131 'asf'=>'video/x-ms-asf',
132 'avi'=>'video/x-msvideo',
133 'flv' => 'video/x-flv',
135 'mka' => 'audio/mka',
136 'mkv' => 'video/mkv',
137 'mng'=>'video/x-mng',
138 'mov'=>'video/quicktime',
140 'mp4' => 'application/mp4',
142 'ogg'=>'application/ogg',
143 'qt' =>'video/quicktime',
144 'ra' =>'audio/x-pn-realaudio',
145 'ram'=>'audio/x-pn-realaudio',
146 'rm' =>'audio/x-pn-realaudio',
147 'svg'=>'image/svg+xml',
148 'swf'=>'application/x-shockwave-flash',
149 'wav'=>'audio/x-wav',
150 'wmv'=>'video/x-ms-wmv',
153 'ai' =>'application/illustrator',
154 'abw' =>'application/abiword',
155 'bin' => 'application/octet-stream', # le tout-venant
156 'blend' => 'application/x-blender',
157 'bz2'=>'application/x-bzip2',
161 'deb'=>'application/x-debian-package',
162 'doc'=>'application/msword',
163 'djvu'=>'image/vnd.djvu',
164 'dvi'=>'application/x-dvi',
165 'eps'=>'application/postscript',
166 'gz' =>'application/x-gzip',
169 'kml'=>'application/vnd.google-earth.kml+xml',
170 'kmz'=>'application/vnd.google-earth.kmz',
171 'pas'=>'text/x-pascal',
172 'pdf'=>'application/pdf',
173 'pgn' =>'application/x-chess-pgn',
174 'ppt'=>'application/vnd.ms-powerpoint',
175 'ps' =>'application/postscript',
176 'psd'=>'image/x-photoshop', // pas enregistre par IANA
177 'rpm'=>'application/x-redhat-package-manager',
178 'rtf'=>'application/rtf',
179 'sdd'=>'application/vnd.stardivision.impress',
180 'sdw'=>'application/vnd.stardivision.writer',
181 'sit'=>'application/x-stuffit',
182 'sxc'=>'application/vnd.sun.xml.calc',
183 'sxi'=>'application/vnd.sun.xml.impress',
184 'sxw'=>'application/vnd.sun.xml.writer',
186 'tgz'=>'application/x-gtar',
187 'torrent' => 'application/x-bittorrent',
188 'ttf'=>'application/x-font-ttf',
190 'xcf'=>'application/x-xcf',
191 'xls'=>'application/vnd.ms-excel',
192 'xml'=>'application/xml',
193 'zip'=>'application/zip',
195 // open document format
196 'odt' => 'application/vnd.oasis.opendocument.text',
197 'ods' => 'application/vnd.oasis.opendocument.spreadsheet',
198 'odp' => 'application/vnd.oasis.opendocument.presentation',
199 'odg' => 'application/vnd.oasis.opendocument.graphics',
200 'odc' => 'application/vnd.oasis.opendocument.chart',
201 'odf' => 'application/vnd.oasis.opendocument.formula',
202 'odb' => 'application/vnd.oasis.opendocument.database',
203 'odi' => 'application/vnd.oasis.opendocument.image',
204 'odm' => 'application/vnd.oasis.opendocument.text-master',
205 'ott' => 'application/vnd.oasis.opendocument.text-template',
206 'ots' => 'application/vnd.oasis.opendocument.spreadsheet-template',
207 'otp' => 'application/vnd.oasis.opendocument.presentation-template',
208 'otg' => 'application/vnd.oasis.opendocument.graphics-template'