3 /***************************************************************************\
4 * SPIP, Systeme de publication pour l'internet *
6 * Copyright (c) 2001-2011 *
7 * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James *
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 \***************************************************************************/
14 if (!defined('_ECRIRE_INC_VERSION')) return;
16 // Ce fichier ne sera execute qu'une fois
17 if (defined('_ECRIRE_INC_TYPEBASE')) return;
18 define('_ECRIRE_INC_TYPEBASE', "1");
20 global $tables_images, $tables_sequences, $tables_documents, $tables_mime;
22 $tables_images = array(
23 // Images reconnues par PHP
28 // Autres images (peuvent utiliser le tag <img>)
34 // Multimedia (peuvent utiliser le tag <embed>)
36 $tables_sequences = array(
38 'asf' => 'Windows Media',
39 'avi' => 'Windows Media',
52 'wmv' => 'Windows Media'
56 $tables_documents = array(
57 'ai' => 'Adobe Illustrator',
60 'css' => 'Cascading Style Sheet',
65 'eps' => 'PostScript',
71 'pgn' => 'Portable Game Notation',
72 'ppt' => 'PowerPoint',
74 'rpm' => 'RedHat/Mandrake/SuSE',
76 'sdd' => 'StarOffice',
77 'sdw' => 'StarOffice',
79 'sxc' => 'OpenOffice Calc',
80 'sxi' => 'OpenOffice Impress',
81 'sxw' => 'OpenOffice',
85 'xcf' => 'GIMP multi-layer',
92 // Images reconnues par PHP
97 // Autres images (peuvent utiliser le tag <img>)
98 'bmp'=>'image/x-ms-bmp', // pas enregistre par IANA, variante: image/bmp
99 'psd'=>'image/x-photoshop', // pas IANA
102 // Multimedia (peuvent utiliser le tag <embed>)
103 'aiff'=>'audio/x-aiff',
104 'asf'=>'video/x-ms-asf',
105 'avi'=>'video/x-msvideo',
107 'mng'=>'video/x-mng',
108 'mov'=>'video/quicktime',
111 'ogg'=>'application/ogg',
112 'qt' =>'video/quicktime',
113 'ra' =>'audio/x-pn-realaudio',
114 'ram'=>'audio/x-pn-realaudio',
115 'rm' =>'audio/x-pn-realaudio',
116 'swf'=>'application/x-shockwave-flash',
117 'wav'=>'audio/x-wav',
118 'wmv'=>'video/x-ms-wmv',
121 'ai' =>'application/illustrator',
122 'bz2'=>'application/x-bzip2',
125 'deb'=>'application/x-debian-package',
126 'doc'=>'application/msword',
127 'djvu'=>'image/vnd.djvu',
128 'dvi'=>'application/x-dvi',
129 'eps'=>'application/postscript',
130 'gz' =>'application/x-gzip',
133 'pas'=>'text/x-pascal',
134 'pdf'=>'application/pdf',
135 'pgn' =>'application/x-chess-pgn',
136 'ppt'=>'application/vnd.ms-powerpoint',
137 'ps' =>'application/postscript',
138 'rpm'=>'application/x-redhat-package-manager',
139 'rtf'=>'application/rtf',
140 'sdd'=>'application/vnd.stardivision.impress',
141 'sdw'=>'application/vnd.stardivision.writer',
142 'sit'=>'application/x-stuffit',
143 'sxc'=>'application/vnd.sun.xml.calc',
144 'sxi'=>'application/vnd.sun.xml.impress',
145 'sxw'=>'application/vnd.sun.xml.writer',
147 'tgz'=>'application/x-gtar',
149 'xcf'=>'application/x-xcf',
150 'xls'=>'application/vnd.ms-excel',
151 'xml'=>'application/xml',
152 'zip'=>'application/zip'