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',
59 'bin' => 'Binary Data',
61 'css' => 'Cascading Style Sheet',
66 'eps' => 'PostScript',
72 'pgn' => 'Portable Game Notation',
73 'ppt' => 'PowerPoint',
75 'rpm' => 'RedHat/Mandrake/SuSE',
77 'sdd' => 'StarOffice',
78 'sdw' => 'StarOffice',
80 'sxc' => 'OpenOffice Calc',
81 'sxi' => 'OpenOffice Impress',
82 'sxw' => 'OpenOffice',
84 'torrent' => 'BitTorrent',
87 'xcf' => 'GIMP multi-layer',
94 // Images reconnues par PHP
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
104 // Multimedia (peuvent utiliser le tag <embed>)
105 'aiff'=>'audio/x-aiff',
106 'asf'=>'video/x-ms-asf',
107 'avi'=>'video/x-msvideo',
109 'mng'=>'video/x-mng',
110 'mov'=>'video/quicktime',
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',
123 'ai' =>'application/illustrator',
124 'bin' => 'application/octet-stream', # le tout-venant
125 'bz2'=>'application/x-bzip2',
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',
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',
150 'torrent' => 'application/x-bittorrent',
151 'tgz'=>'application/x-gtar',
153 'xcf'=>'application/x-xcf',
154 'xls'=>'application/vnd.ms-excel',
155 'xml'=>'application/xml',
156 'zip'=>'application/zip'