[SPIP] ~2.1.12 -->2.1.25
[velocampus/web/www.git] / www / ecrire / maj / vieille_base / 13000 / typedoc.php
1 <?php
2
3 /***************************************************************************\
4 * SPIP, Systeme de publication pour l'internet *
5 * *
6 * Copyright (c) 2001-2014 *
7 * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James *
8 * *
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 \***************************************************************************/
12
13
14 //
15 if (!defined('_ECRIRE_INC_VERSION')) return;
16
17 global $tables_images, $tables_sequences, $tables_documents, $tables_mime, $mime_alias;
18
19 $tables_images = array(
20 // Images reconnues par PHP
21 'jpg' => 'JPEG',
22 'png' => 'PNG',
23 'gif' =>'GIF',
24
25 // Autres images (peuvent utiliser le tag <img>)
26 'bmp' => 'BMP',
27 'tif' => 'TIFF'
28 );
29
30 // Multimedia (peuvent utiliser le tag <embed>)
31
32 $tables_sequences = array(
33 'aiff' => 'AIFF',
34 'asf' => 'Windows Media',
35 'avi' => 'AVI',
36 'flv' => 'Flash Video',
37 'mid' => 'Midi',
38 'mng' => 'MNG',
39 'mka' => 'Matroska Audio',
40 'mkv' => 'Matroska Video',
41 'mov' => 'QuickTime',
42 'mp3' => 'MP3',
43 'mp4' => 'MPEG4',
44 'mpg' => 'MPEG',
45 'ogg' => 'Ogg',
46 'qt' => 'QuickTime',
47 'ra' => 'RealAudio',
48 'ram' => 'RealAudio',
49 'rm' => 'RealAudio',
50 'svg' => 'Scalable Vector Graphics',
51 'swf' => 'Flash',
52 'wav' => 'WAV',
53 'wmv' => 'Windows Media',
54 '3gp' => '3rd Generation Partnership Project'
55 );
56
57 // Documents varies
58 $tables_documents = array(
59 'abw' => 'Abiword',
60 'ai' => 'Adobe Illustrator',
61 'bz2' => 'BZip',
62 'bin' => 'Binary Data',
63 'blend' => 'Blender',
64 'c' => 'C source',
65 'cls' => 'LaTeX Class',
66 'css' => 'Cascading Style Sheet',
67 'csv' => 'Comma Separated Values',
68 'deb' => 'Debian',
69 'doc' => 'Word',
70 'djvu' => 'DjVu',
71 'dvi' => 'LaTeX DVI',
72 'eps' => 'PostScript',
73 'gz' => 'GZ',
74 'h' => 'C header',
75 'html' => 'HTML',
76 'kml' => 'Keyhole Markup Language',
77 'kmz' => 'Google Earth Placemark File',
78 'pas' => 'Pascal',
79 'pdf' => 'PDF',
80 'pgn' => 'Portable Game Notation',
81 'ppt' => 'PowerPoint',
82 'ps' => 'PostScript',
83 'psd' => 'Photoshop',
84 'rpm' => 'RedHat/Mandrake/SuSE',
85 'rtf' => 'RTF',
86 'sdd' => 'StarOffice',
87 'sdw' => 'StarOffice',
88 'sit' => 'Stuffit',
89 'sty' => 'LaTeX Style Sheet',
90 'sxc' => 'OpenOffice.org Calc',
91 'sxi' => 'OpenOffice.org Impress',
92 'sxw' => 'OpenOffice.org',
93 'tex' => 'LaTeX',
94 'tgz' => 'TGZ',
95 'torrent' => 'BitTorrent',
96 'ttf' => 'TTF Font',
97 'txt' => 'texte',
98 'xcf' => 'GIMP multi-layer',
99 'xls' => 'Excel',
100 'xml' => 'XML',
101 'zip' => 'Zip',
102
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',
117
118 );
119
120 $tables_mime = array(
121 // Images reconnues par PHP
122 'jpg'=>'image/jpeg',
123 'png'=>'image/png',
124 'gif'=>'image/gif',
125
126 // Autres images (peuvent utiliser le tag <img>)
127 'bmp'=>'image/x-ms-bmp', // pas enregistre par IANA, variante: image/bmp
128 'tif'=>'image/tiff',
129
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',
135 'mid'=>'audio/midi',
136 'mka' => 'audio/mka',
137 'mkv' => 'video/mkv',
138 'mng'=>'video/x-mng',
139 'mov'=>'video/quicktime',
140 'mp3'=>'audio/mpeg',
141 'mp4' => 'application/mp4',
142 'mpg'=>'video/mpeg',
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',
152 '3gp'=>'video/3gpp',
153
154 // Documents varies
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',
160 'c' =>'text/x-csrc',
161 'css'=>'text/css',
162 'csv'=>'text/csv',
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',
169 'h' =>'text/x-chdr',
170 'html'=>'text/html',
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',
187 'tex'=>'text/x-tex',
188 'tgz'=>'application/x-gtar',
189 'torrent' => 'application/x-bittorrent',
190 'ttf'=>'application/x-font-ttf',
191 'txt'=>'text/plain',
192 'xcf'=>'application/x-xcf',
193 'xls'=>'application/vnd.ms-excel',
194 'xml'=>'application/xml',
195 'zip'=>'application/zip',
196
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',
211 'cls'=>'text/x-tex',
212 'sty'=>'text/x-tex',
213 );
214
215
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'
222 );
223
224 ?>