erreur thunmbail4
[aidenligne_francais_universite.git] / ecrire / base / typedoc.php
1 <?php
2
3 /***************************************************************************\
4 * SPIP, Systeme de publication pour l'internet *
5 * *
6 * Copyright (c) 2001-2007 *
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 ## cette API ne sait pas gerer les aliases ; a revoir...
18
19 global $tables_images, $tables_sequences, $tables_documents, $tables_mime;
20
21 $tables_images = array(
22 // Images reconnues par PHP
23 'jpg' => 1,
24 'png' => 2,
25 'gif' => 3,
26
27 // Autres images (peuvent utiliser le tag <img>)
28 'bmp' => 'BMP',
29 'tif' => 'TIFF'
30 );
31
32 // Multimedia (peuvent utiliser le tag <embed>)
33
34 $tables_sequences = array(
35 'aiff' => 'AIFF',
36 'asf' => 'Windows Media',
37 'avi' => 'AVI',
38 'flv' => 'Flash Video',
39 'mid' => 'Midi',
40 'mng' => 'MNG',
41 'mka' => 'Matroska Audio',
42 'mkv' => 'Matroska Video',
43 'mov' => 'QuickTime',
44 'mp3' => 'MP3',
45 'mp4' => 'MPEG4',
46 'mpg' => 'MPEG',
47 'ogg' => 'Ogg',
48 'qt' => 'QuickTime',
49 'ra' => 'RealAudio',
50 'ram' => 'RealAudio',
51 'rm' => 'RealAudio',
52 'svg' => 'Scalable Vector Graphics',
53 'swf' => 'Flash',
54 'wav' => 'WAV',
55 'wmv' => 'Windows Media'
56 );
57
58 // Documents varies
59 $tables_documents = array(
60 'abw' => 'Abiword',
61 'ai' => 'Adobe Illustrator',
62 'bz2' => 'BZip',
63 'bin' => 'Binary Data',
64 'blend' => 'Blender',
65 'c' => 'C source',
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 'sxc' => 'OpenOffice Calc',
90 'sxi' => 'OpenOffice Impress',
91 'sxw' => 'OpenOffice',
92 'tex' => 'LaTeX',
93 'tgz' => 'TGZ',
94 'torrent' => 'BitTorrent',
95 'ttf' => 'TTF Font',
96 'txt' => 'texte',
97 'xcf' => 'GIMP multi-layer',
98 'xls' => 'Excel',
99 'xml' => 'XML',
100 'zip' => 'Zip',
101
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',
116
117 );
118
119 $tables_mime = array(
120 // Images reconnues par PHP
121 'jpg'=>'image/jpeg',
122 'png'=>'image/png',
123 'gif'=>'image/gif',
124
125 // Autres images (peuvent utiliser le tag <img>)
126 'bmp'=>'image/x-ms-bmp', // pas enregistre par IANA, variante: image/bmp
127 'tif'=>'image/tiff',
128
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',
134 'mid'=>'audio/midi',
135 'mka' => 'audio/mka',
136 'mkv' => 'video/mkv',
137 'mng'=>'video/x-mng',
138 'mov'=>'video/quicktime',
139 'mp3'=>'audio/mpeg',
140 'mp4' => 'application/mp4',
141 'mpg'=>'video/mpeg',
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',
151
152 // Documents varies
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',
158 'c' =>'text/x-csrc',
159 'css'=>'text/css',
160 'csv'=>'text/csv',
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',
167 'h' =>'text/x-chdr',
168 'html'=>'text/html',
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',
185 'tex'=>'text/x-tex',
186 'tgz'=>'application/x-gtar',
187 'torrent' => 'application/x-bittorrent',
188 'ttf'=>'application/x-font-ttf',
189 'txt'=>'text/plain',
190 'xcf'=>'application/x-xcf',
191 'xls'=>'application/vnd.ms-excel',
192 'xml'=>'application/xml',
193 'zip'=>'application/zip',
194
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'
209
210 );
211 ?>