0809f610a809a6e58ed9aca058d99d06db5a0599
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>)
33 // Multimedia (peuvent utiliser le tag <embed>)
35 $tables_sequences = array(
37 'asf' => 'Windows Media',
38 'avi' => 'Windows Media',
39 'flv' => 'Flash Video',
52 'wmv' => 'Windows Media',
53 'svg' => 'Scalable Vector Graphics'
57 $tables_documents = array(
59 'ai' => 'Adobe Illustrator',
61 'bin' => 'Binary Data',
64 'css' => 'Cascading Style Sheet',
69 'eps' => 'PostScript',
75 'pgn' => 'Portable Game Notation',
76 'ppt' => 'PowerPoint',
78 'rpm' => 'RedHat/Mandrake/SuSE',
80 'sdd' => 'StarOffice',
81 'sdw' => 'StarOffice',
83 'sxc' => 'OpenOffice Calc',
84 'sxi' => 'OpenOffice Impress',
85 'sxw' => 'OpenOffice',
88 'torrent' => 'BitTorrent',
91 'xcf' => 'GIMP multi-layer',
96 // open document format
97 'odt' => 'opendocument text',
98 'ods' => 'opendocument spreadsheet',
99 'odp' => 'opendocument presentation',
100 'odg' => 'opendocument graphics',
101 'odc' => 'opendocument chart',
102 'odf' => 'opendocument formula',
103 'odb' => 'opendocument database',
104 'odi' => 'opendocument image',
105 'odm' => 'opendocument text-master',
106 'ott' => 'opendocument text-template',
107 'ots' => 'opendocument spreadsheet-template',
108 'otp' => 'opendocument presentation-template',
109 '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',
144 'ai' =>'application/illustrator',
145 'abw' =>'application/abiword',
146 'bin' => 'application/octet-stream', # le tout-venant
147 'blend' => 'application/x-blender',
148 'bz2'=>'application/x-bzip2',
151 'deb'=>'application/x-debian-package',
152 'doc'=>'application/msword',
153 'djvu'=>'image/vnd.djvu',
154 'dvi'=>'application/x-dvi',
155 'eps'=>'application/postscript',
156 'gz' =>'application/x-gzip',
159 'pas'=>'text/x-pascal',
160 'pdf'=>'application/pdf',
161 'pgn' =>'application/x-chess-pgn',
162 'ppt'=>'application/vnd.ms-powerpoint',
163 'ps' =>'application/postscript',
164 'rpm'=>'application/x-redhat-package-manager',
165 'rtf'=>'application/rtf',
166 'sdd'=>'application/vnd.stardivision.impress',
167 'sdw'=>'application/vnd.stardivision.writer',
168 'sit'=>'application/x-stuffit',
169 'sxc'=>'application/vnd.sun.xml.calc',
170 'sxi'=>'application/vnd.sun.xml.impress',
171 'sxw'=>'application/vnd.sun.xml.writer',
173 'tgz'=>'application/x-gtar',
174 'torrent' => 'application/x-bittorrent',
175 'ttf'=>'application/x-font-ttf',
177 'xcf'=>'application/x-xcf',
178 'xls'=>'application/vnd.ms-excel',
179 'xml'=>'application/xml',
180 'zip'=>'application/zip',
182 // open document format
183 'odt' => 'application/vnd.oasis.opendocument.text',
184 'ods' => 'application/vnd.oasis.opendocument.spreadsheet',
185 'odp' => 'application/vnd.oasis.opendocument.presentation',
186 'odg' => 'application/vnd.oasis.opendocument.graphics',
187 'odc' => 'application/vnd.oasis.opendocument.chart',
188 'odf' => 'application/vnd.oasis.opendocument.formula',
189 'odb' => 'application/vnd.oasis.opendocument.database',
190 'odi' => 'application/vnd.oasis.opendocument.image',
191 'odm' => 'application/vnd.oasis.opendocument.text-master',
192 'ott' => 'application/vnd.oasis.opendocument.text-template',
193 'ots' => 'application/vnd.oasis.opendocument.spreadsheet-template',
194 'otp' => 'application/vnd.oasis.opendocument.presentation-template',
195 'otg' => 'application/vnd.oasis.opendocument.graphics-template'