[SPIP] ~2.1.12 -->2.1.25
[velocampus/web/www.git] / www / ecrire / maj / vieille_base / 10000 / 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 'psd' => 'Photoshop',
28 'tif' => 'TIFF'
29 );
30
31 // Multimedia (peuvent utiliser le tag <embed>)
32
33 $tables_sequences = array(
34 'aiff' => 'AIFF',
35 'asf' => 'Windows Media',
36 'avi' => 'Windows Media',
37 'flv' => 'Flash Video',
38 'mid' => 'Midi',
39 'mng' => 'MNG',
40 'mov' => 'QuickTime',
41 'mp3' => 'MP3',
42 'mpg' => 'MPEG',
43 'ogg' => 'Ogg',
44 'qt' => 'QuickTime',
45 'ra' => 'RealAudio',
46 'ram' => 'RealAudio',
47 'rm' => 'RealAudio',
48 'swf' => 'Flash',
49 'wav' => 'WAV',
50 'wmv' => 'Windows Media',
51 'svg' => 'Scalable Vector Graphics',
52 'mp4' => 'MPEG4'
53 );
54
55 // Documents varies
56 $tables_documents = array(
57 'abw' => 'Abiword',
58 'ai' => 'Adobe Illustrator',
59 'bz2' => 'BZip',
60 'bin' => 'Binary Data',
61 'blend' => 'Blender',
62 'c' => 'C source',
63 'css' => 'Cascading Style Sheet',
64 'deb' => 'Debian',
65 'doc' => 'Word',
66 'djvu' => 'DjVu',
67 'dvi' => 'LaTeX DVI',
68 'eps' => 'PostScript',
69 'gz' => 'GZ',
70 'h' => 'C header',
71 'html' => 'HTML',
72 'pas' => 'Pascal',
73 'pdf' => 'PDF',
74 'pgn' => 'Portable Game Notation',
75 'ppt' => 'PowerPoint',
76 'ps' => 'PostScript',
77 'rpm' => 'RedHat/Mandrake/SuSE',
78 'rtf' => 'RTF',
79 'sdd' => 'StarOffice',
80 'sdw' => 'StarOffice',
81 'sit' => 'Stuffit',
82 'sxc' => 'OpenOffice Calc',
83 'sxi' => 'OpenOffice Impress',
84 'sxw' => 'OpenOffice',
85 'tex' => 'LaTeX',
86 'tgz' => 'TGZ',
87 'torrent' => 'BitTorrent',
88 'ttf' => 'TTF Font',
89 'txt' => 'texte',
90 'xcf' => 'GIMP multi-layer',
91 'xls' => 'Excel',
92 'xml' => 'XML',
93 'zip' => 'Zip',
94
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',
109
110 );
111
112 $tables_mime = array(
113 // Images reconnues par PHP
114 'jpg'=>'image/jpeg',
115 'png'=>'image/png',
116 'gif'=>'image/gif',
117
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
121 'tif'=>'image/tiff',
122
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',
128 'mid'=>'audio/midi',
129 'mng'=>'video/x-mng',
130 'mov'=>'video/quicktime',
131 'mp3'=>'audio/mpeg',
132 'mpg'=>'video/mpeg',
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',
143
144 // Documents varies
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',
150 'c' =>'text/x-csrc',
151 'css'=>'text/css',
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',
158 'h' =>'text/x-chdr',
159 'html'=>'text/html',
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',
173 'tex'=>'text/x-tex',
174 'tgz'=>'application/x-gtar',
175 'torrent' => 'application/x-bittorrent',
176 'ttf'=>'application/x-font-ttf',
177 'txt'=>'text/plain',
178 'xcf'=>'application/x-xcf',
179 'xls'=>'application/vnd.ms-excel',
180 'xml'=>'application/xml',
181 'zip'=>'application/zip',
182
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'
197
198 );
199
200
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'
206 );
207
208 ?>