[SPIP] ~maj v2.1.25-->2.1.26
[velocampus/web/www.git] / www / ecrire / maj / vieille_base / 1813 / inc_typebase.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 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 'c' => 'C source',
60 'css' => 'Cascading Style Sheet',
61 'deb' => 'Debian',
62 'doc' => 'Word',
63 'djvu' => 'DjVu',
64 'dvi' => 'LaTeX DVI',
65 'eps' => 'PostScript',
66 'gz' => 'GZ',
67 'h' => 'C header',
68 'html' => 'HTML',
69 'pas' => 'Pascal',
70 'pdf' => 'PDF',
71 'pgn' => 'Portable Game Notation',
72 'ppt' => 'PowerPoint',
73 'ps' => 'PostScript',
74 'rpm' => 'RedHat/Mandrake/SuSE',
75 'rtf' => 'RTF',
76 'sdd' => 'StarOffice',
77 'sdw' => 'StarOffice',
78 'sit' => 'Stuffit',
79 'sxc' => 'OpenOffice Calc',
80 'sxi' => 'OpenOffice Impress',
81 'sxw' => 'OpenOffice',
82 'tex' => 'LaTeX',
83 'tgz' => 'TGZ',
84 'txt' => 'texte',
85 'xcf' => 'GIMP multi-layer',
86 'xls' => 'Excel',
87 'xml' => 'XML',
88 'zip' => 'Zip'
89 );
90
91 $tables_mime = array(
92 // Images reconnues par PHP
93 'jpg'=>'image/jpeg',
94 'png'=>'image/png',
95 'gif'=>'image/gif',
96
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
100 'tif'=>'image/tiff',
101
102 // Multimedia (peuvent utiliser le tag <embed>)
103 'aiff'=>'audio/x-aiff',
104 'asf'=>'video/x-ms-asf',
105 'avi'=>'video/x-msvideo',
106 'mid'=>'audio/midi',
107 'mng'=>'video/x-mng',
108 'mov'=>'video/quicktime',
109 'mp3'=>'audio/mpeg',
110 'mpg'=>'video/mpeg',
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',
119
120 // Documents varies
121 'ai' =>'application/illustrator',
122 'bz2'=>'application/x-bzip2',
123 'c' =>'text/x-csrc',
124 'css'=>'text/css',
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',
131 'h' =>'text/x-chdr',
132 'html'=>'text/html',
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',
146 'tex'=>'text/x-tex',
147 'tgz'=>'application/x-gtar',
148 'txt'=>'text/plain',
149 'xcf'=>'application/x-xcf',
150 'xls'=>'application/vnd.ms-excel',
151 'xml'=>'application/xml',
152 'zip'=>'application/zip'
153 );
154 ?>