[SPIP] +2.1.12
[velocampus/web/www.git] / www / ecrire / maj / vieille_base / 1917 / typedoc.php
1 <?php
2
3 /***************************************************************************\
4 * SPIP, Systeme de publication pour l'internet *
5 * *
6 * Copyright (c) 2001-2011 *
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 'psd' => 'Photoshop',
30 'tif' => 'TIFF'
31 );
32
33 // Multimedia (peuvent utiliser le tag <embed>)
34
35 $tables_sequences = array(
36 'aiff' => 'AIFF',
37 'asf' => 'Windows Media',
38 'avi' => 'Windows Media',
39 'flv' => 'Flash Video',
40 'mid' => 'Midi',
41 'mng' => 'MNG',
42 'mov' => 'QuickTime',
43 'mp3' => 'MP3',
44 'mpg' => 'MPEG',
45 'ogg' => 'Ogg',
46 'qt' => 'QuickTime',
47 'ra' => 'RealAudio',
48 'ram' => 'RealAudio',
49 'rm' => 'RealAudio',
50 'swf' => 'Flash',
51 'wav' => 'WAV',
52 'wmv' => 'Windows Media',
53 'svg' => 'Scalable Vector Graphics'
54 );
55
56 // Documents varies
57 $tables_documents = array(
58 'abw' => 'Abiword',
59 'ai' => 'Adobe Illustrator',
60 'bz2' => 'BZip',
61 'bin' => 'Binary Data',
62 'blend' => 'Blender',
63 'c' => 'C source',
64 'css' => 'Cascading Style Sheet',
65 'deb' => 'Debian',
66 'doc' => 'Word',
67 'djvu' => 'DjVu',
68 'dvi' => 'LaTeX DVI',
69 'eps' => 'PostScript',
70 'gz' => 'GZ',
71 'h' => 'C header',
72 'html' => 'HTML',
73 'pas' => 'Pascal',
74 'pdf' => 'PDF',
75 'pgn' => 'Portable Game Notation',
76 'ppt' => 'PowerPoint',
77 'ps' => 'PostScript',
78 'rpm' => 'RedHat/Mandrake/SuSE',
79 'rtf' => 'RTF',
80 'sdd' => 'StarOffice',
81 'sdw' => 'StarOffice',
82 'sit' => 'Stuffit',
83 'sxc' => 'OpenOffice Calc',
84 'sxi' => 'OpenOffice Impress',
85 'sxw' => 'OpenOffice',
86 'tex' => 'LaTeX',
87 'tgz' => 'TGZ',
88 'torrent' => 'BitTorrent',
89 'ttf' => 'TTF Font',
90 'txt' => 'texte',
91 'xcf' => 'GIMP multi-layer',
92 'xls' => 'Excel',
93 'xml' => 'XML',
94 'zip' => 'Zip',
95
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'
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
143 // Documents varies
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',
149 'c' =>'text/x-csrc',
150 'css'=>'text/css',
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',
157 'h' =>'text/x-chdr',
158 'html'=>'text/html',
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',
172 'tex'=>'text/x-tex',
173 'tgz'=>'application/x-gtar',
174 'torrent' => 'application/x-bittorrent',
175 'ttf'=>'application/x-font-ttf',
176 'txt'=>'text/plain',
177 'xcf'=>'application/x-xcf',
178 'xls'=>'application/vnd.ms-excel',
179 'xml'=>'application/xml',
180 'zip'=>'application/zip',
181
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'
196 );
197 ?>