[SPIP] +2.1.12
[velocampus/web/www.git] / www / ecrire / maj / vieille_base / 1821 / inc_typebase.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 if (!defined('_ECRIRE_INC_VERSION')) return;
15
16 // Ce fichier ne sera execute qu'une fois
17 if (defined('_ECRIRE_INC_TYPEBASE')) return;
18 define('_ECRIRE_INC_TYPEBASE', "1");
19
20 global $tables_images, $tables_sequences, $tables_documents, $tables_mime;
21
22 $tables_images = array(
23 // Images reconnues par PHP
24 'jpg' => 1,
25 'png' => 2,
26 'gif' => 3,
27
28 // Autres images (peuvent utiliser le tag <img>)
29 'bmp' => 'BMP',
30 'psd' => 'Photoshop',
31 'tif' => 'TIFF'
32 );
33
34 // Multimedia (peuvent utiliser le tag <embed>)
35
36 $tables_sequences = array(
37 'aiff' => 'AIFF',
38 'asf' => 'Windows Media',
39 'avi' => 'Windows Media',
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 );
54
55 // Documents varies
56 $tables_documents = array(
57 'ai' => 'Adobe Illustrator',
58 'bz2' => 'BZip',
59 'bin' => 'Binary Data',
60 'c' => 'C source',
61 'css' => 'Cascading Style Sheet',
62 'deb' => 'Debian',
63 'doc' => 'Word',
64 'djvu' => 'DjVu',
65 'dvi' => 'LaTeX DVI',
66 'eps' => 'PostScript',
67 'gz' => 'GZ',
68 'h' => 'C header',
69 'html' => 'HTML',
70 'pas' => 'Pascal',
71 'pdf' => 'PDF',
72 'pgn' => 'Portable Game Notation',
73 'ppt' => 'PowerPoint',
74 'ps' => 'PostScript',
75 'rpm' => 'RedHat/Mandrake/SuSE',
76 'rtf' => 'RTF',
77 'sdd' => 'StarOffice',
78 'sdw' => 'StarOffice',
79 'sit' => 'Stuffit',
80 'sxc' => 'OpenOffice Calc',
81 'sxi' => 'OpenOffice Impress',
82 'sxw' => 'OpenOffice',
83 'tex' => 'LaTeX',
84 'torrent' => 'BitTorrent',
85 'tgz' => 'TGZ',
86 'txt' => 'texte',
87 'xcf' => 'GIMP multi-layer',
88 'xls' => 'Excel',
89 'xml' => 'XML',
90 'zip' => 'Zip'
91 );
92
93 $tables_mime = array(
94 // Images reconnues par PHP
95 'jpg'=>'image/jpeg',
96 'png'=>'image/png',
97 'gif'=>'image/gif',
98
99 // Autres images (peuvent utiliser le tag <img>)
100 'bmp'=>'image/x-ms-bmp', // pas enregistre par IANA, variante: image/bmp
101 'psd'=>'image/x-photoshop', // pas IANA
102 'tif'=>'image/tiff',
103
104 // Multimedia (peuvent utiliser le tag <embed>)
105 'aiff'=>'audio/x-aiff',
106 'asf'=>'video/x-ms-asf',
107 'avi'=>'video/x-msvideo',
108 'mid'=>'audio/midi',
109 'mng'=>'video/x-mng',
110 'mov'=>'video/quicktime',
111 'mp3'=>'audio/mpeg',
112 'mpg'=>'video/mpeg',
113 'ogg'=>'application/ogg',
114 'qt' =>'video/quicktime',
115 'ra' =>'audio/x-pn-realaudio',
116 'ram'=>'audio/x-pn-realaudio',
117 'rm' =>'audio/x-pn-realaudio',
118 'swf'=>'application/x-shockwave-flash',
119 'wav'=>'audio/x-wav',
120 'wmv'=>'video/x-ms-wmv',
121
122 // Documents varies
123 'ai' =>'application/illustrator',
124 'bin' => 'application/octet-stream', # le tout-venant
125 'bz2'=>'application/x-bzip2',
126 'c' =>'text/x-csrc',
127 'css'=>'text/css',
128 'deb'=>'application/x-debian-package',
129 'doc'=>'application/msword',
130 'djvu'=>'image/vnd.djvu',
131 'dvi'=>'application/x-dvi',
132 'eps'=>'application/postscript',
133 'gz' =>'application/x-gzip',
134 'h' =>'text/x-chdr',
135 'html'=>'text/html',
136 'pas'=>'text/x-pascal',
137 'pdf'=>'application/pdf',
138 'pgn' =>'application/x-chess-pgn',
139 'ppt'=>'application/vnd.ms-powerpoint',
140 'ps' =>'application/postscript',
141 'rpm'=>'application/x-redhat-package-manager',
142 'rtf'=>'application/rtf',
143 'sdd'=>'application/vnd.stardivision.impress',
144 'sdw'=>'application/vnd.stardivision.writer',
145 'sit'=>'application/x-stuffit',
146 'sxc'=>'application/vnd.sun.xml.calc',
147 'sxi'=>'application/vnd.sun.xml.impress',
148 'sxw'=>'application/vnd.sun.xml.writer',
149 'tex'=>'text/x-tex',
150 'torrent' => 'application/x-bittorrent',
151 'tgz'=>'application/x-gtar',
152 'txt'=>'text/plain',
153 'xcf'=>'application/x-xcf',
154 'xls'=>'application/vnd.ms-excel',
155 'xml'=>'application/xml',
156 'zip'=>'application/zip'
157 );
158 ?>