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>)
31 // Multimedia (peuvent utiliser le tag <embed>)
33 $tables_sequences = array(
35 'asf' => 'Windows Media',
36 'avi' => 'Windows Media',
37 'flv' => 'Flash Video',
50 'wmv' => 'Windows Media',
51 'svg' => 'Scalable Vector Graphics',
56 $tables_documents = array(
58 'ai' => 'Adobe Illustrator',
60 'bin' => 'Binary Data',
63 'css' => 'Cascading Style Sheet',
68 'eps' => 'PostScript',
74 'pgn' => 'Portable Game Notation',
75 'ppt' => 'PowerPoint',
77 'rpm' => 'RedHat/Mandrake/SuSE',
79 'sdd' => 'StarOffice',
80 'sdw' => 'StarOffice',
82 'sxc' => 'OpenOffice Calc',
83 'sxi' => 'OpenOffice Impress',
84 'sxw' => 'OpenOffice',
87 'torrent' => 'BitTorrent',
90 'xcf' => 'GIMP multi-layer',
95 // open document format
96 'odt' => 'opendocument text',
97 'ods' => 'opendocument spreadsheet',
98 'odp' => 'opendocument presentation',
99 'odg' => 'opendocument graphics',
100 'odc' => 'opendocument chart',
101 'odf' => 'opendocument formula',
102 'odb' => 'opendocument database',
103 'odi' => 'opendocument image',
104 'odm' => 'opendocument text-master',
105 'ott' => 'opendocument text-template',
106 'ots' => 'opendocument spreadsheet-template',
107 'otp' => 'opendocument presentation-template',
108 'otg' => 'opendocument graphics-template',
112 $tables_mime = array(
113 // Images reconnues par PHP
118 // Autres images (peuvent utiliser le tag <img>)
119 'bmp'=>'image/x-ms-bmp', // pas enregistre par IANA, variante: image/bmp
120 'psd'=>'image/x-photoshop', // pas IANA
123 // Multimedia (peuvent utiliser le tag <embed>)
124 'aiff'=>'audio/x-aiff',
125 'asf'=>'video/x-ms-asf',
126 'avi'=>'video/x-msvideo',
127 'flv' => 'video/x-flv',
129 'mng'=>'video/x-mng',
130 'mov'=>'video/quicktime',
133 'ogg'=>'application/ogg',
134 'qt' =>'video/quicktime',
135 'ra' =>'audio/x-pn-realaudio',
136 'ram'=>'audio/x-pn-realaudio',
137 'rm' =>'audio/x-pn-realaudio',
138 'swf'=>'application/x-shockwave-flash',
139 'wav'=>'audio/x-wav',
140 'wmv'=>'video/x-ms-wmv',
141 'svg'=>'image/svg+xml',
142 'mp4' => 'application/mp4',
145 'ai' =>'application/illustrator',
146 'abw' =>'application/abiword',
147 'bin' => 'application/octet-stream', # le tout-venant
148 'blend' => 'application/x-blender',
149 'bz2'=>'application/x-bzip2',
152 'deb'=>'application/x-debian-package',
153 'doc'=>'application/msword',
154 'djvu'=>'image/vnd.djvu',
155 'dvi'=>'application/x-dvi',
156 'eps'=>'application/postscript',
157 'gz' =>'application/x-gzip',
160 'pas'=>'text/x-pascal',
161 'pdf'=>'application/pdf',
162 'pgn' =>'application/x-chess-pgn',
163 'ppt'=>'application/vnd.ms-powerpoint',
164 'ps' =>'application/postscript',
165 'rpm'=>'application/x-redhat-package-manager',
166 'rtf'=>'application/rtf',
167 'sdd'=>'application/vnd.stardivision.impress',
168 'sdw'=>'application/vnd.stardivision.writer',
169 'sit'=>'application/x-stuffit',
170 'sxc'=>'application/vnd.sun.xml.calc',
171 'sxi'=>'application/vnd.sun.xml.impress',
172 'sxw'=>'application/vnd.sun.xml.writer',
174 'tgz'=>'application/x-gtar',
175 'torrent' => 'application/x-bittorrent',
176 'ttf'=>'application/x-font-ttf',
178 'xcf'=>'application/x-xcf',
179 'xls'=>'application/vnd.ms-excel',
180 'xml'=>'application/xml',
181 'zip'=>'application/zip',
183 // open document format
184 'odt' => 'application/vnd.oasis.opendocument.text',
185 'ods' => 'application/vnd.oasis.opendocument.spreadsheet',
186 'odp' => 'application/vnd.oasis.opendocument.presentation',
187 'odg' => 'application/vnd.oasis.opendocument.graphics',
188 'odc' => 'application/vnd.oasis.opendocument.chart',
189 'odf' => 'application/vnd.oasis.opendocument.formula',
190 'odb' => 'application/vnd.oasis.opendocument.database',
191 'odi' => 'application/vnd.oasis.opendocument.image',
192 'odm' => 'application/vnd.oasis.opendocument.text-master',
193 'ott' => 'application/vnd.oasis.opendocument.text-template',
194 'ots' => 'application/vnd.oasis.opendocument.spreadsheet-template',
195 'otp' => 'application/vnd.oasis.opendocument.presentation-template',
196 'otg' => 'application/vnd.oasis.opendocument.graphics-template'
201 $mime_alias = array (
202 'audio/x-mpeg' => 'audio/mpeg',
203 'application/x-ogg' => 'application/ogg',
204 'video/mp4' => 'application/mp4',
205 'video/flv' => 'video/x-flv'