adding some strings
[moodle-linuxchix.git] / mod / wiki / ewiki / plugins / lib / mime_magic.php
blobb8448e72c4929aeea9f0a61ffd4f39d6f4e39e58
1 <?php ############################ <license>GPL</license> #####################
3 /*
5 # this was originally implemented for Nanoweb, but can now be used
6 # within ewiki to enhance the download/upload plugin.
7 # As it was created from Debians mime-magic data, it is covered by
8 # the GNU GPL [http://www.gnu.org/]:
10 This program is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 2, or (at your option)
13 any later version.
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27 $ewiki_plugins["mime_magic"][] = "ewiki_mime_magic";
31 function ewiki_mime_magic(&$binary_data) {
33 global $mime_magic_data;
35 $fd = substr($binary_data, 0, 3072);
37 foreach ($mime_magic_data as $def) {
39 if ($def[0] >= $f_read) {
40 continue;
43 $pos0 = $def[0];
45 if ($pos0[0] == ">") {
47 $pos0 = substr($pos0, 1);
49 if (strpos($fd, $def[3], $pos0) !== false) {
51 return($def[4]);
55 else {
57 $part = substr($fd, $pos0, $def[1]);
59 if ($mask = $def[2]) {
61 $value = 1 * ('0x'.bin2hex($part));
63 if (($value & $mask) == $def[3]) {
65 return($def[4]);
69 else {
71 if ($part == $def[3]) {
73 return($def[4]);
87 $GLOBALS["mime_magic_data"] = array(
88 array(0, 2, 0, "\x06\x02", "application/x-alan-adventure-game"),
89 array(0, 4, 0, "TADS", "application/x-tads-game"),
90 array(0, 2, 0, "\x01\x10", "application/x-executable-file"),
91 array(0, 2, 0, "\x01\x11", "application/x-executable-file"),
92 array(0, 2, 0, "\x01ƒ", "application/x-executable-file"),
93 array(0, 5, 0, "Core\001", "application/x-executable-file"),
94 array(0, 22, 0, "AMANDA: TAPESTART DATE", "application/x-amanda-header"),
95 array(0, 2, 0xfff0, 0xf0ff, "audio/mpeg"),
96 array(4, 2, 0, \x11", "video/fli"),
97 array(4, 2, 0, \x12", "video/flc"),
98 array(0, 4, 0, "MOVI", "video/x-sgi-movie"),
99 array(4, 4, 0, "moov", "video/quicktime"),
100 array(4, 4, 0, "mdat", "video/quicktime"),
101 array(0, 18, 0, "FiLeStArTfIlEsTaRt", "text/x-apple-binscii"),
102 array(0, 3, 0, "\x0aGL", "application/data"),
103 array(0, 2, 0, "\x76\xff", "application/data"),
104 array(0, 6, 0, "NuFile", "application/data"),
105 array(0, 6, 0, "N\xf5F\xe9l\xe5", "application/data"),
106 array(0, 4, 0, "\x00\x16\x05\x00", "application/data"),
107 array(0, 4, 0, "\x07\x16\x05\x00", "application/data"),
108 array(257, 6, 0, "ustar\0", "application/x-tar"),
109 array(257, 8, 0, "ustar\040\040\0", "application/x-gtar"),
110 array(0, 2, 0, "qÇ", "application/x-cpio"),
111 array(0, 2, 0, "Çq", "application/x-bcpio"),
112 array(0, 6, 0, "070707", "application/x-cpio"),
113 array(0, 6, 0, "070701", "application/x-cpio"),
114 array(0, 6, 0, "070702", "application/x-cpio"),
115 array(0, 2, 0, "ÿm", "application/data"),
116 array(0, 2, 0, "ÿe", "application/data"),
117 array(0, 5, 0, "=<ar>", "application/x-ar"),
118 array(0, 19, 0, "!<arch>\n__________E", "application/x-ar"),
119 array(0, 3, 0, "-h-", "application/data"),
120 array(0, 7, 0, "!<arch>", "application/x-ar"),
121 array(0, 4, 0, "<ar>", "application/x-ar"),
122 array(0, 4, 0, ">ra<", "application/x-ar"),
123 array(0, 4, 0, "!<ar", "application/x-ar"),
124 array(0, 4, 0, "\x00\x03ݒ", "application/data"),
125 array(0, 4, 0, "\x00\x03ݔ", "application/data"),
126 array(0, 4, 0x8080ffff, 0x81a, "application/x-arc"),
127 array(0, 4, 0x8080ffff, 0x91a, "application/x-arc"),
128 array(0, 4, 0x8080ffff, 0x21a, "application/x-arc"),
129 array(0, 4, 0x8080ffff, 0x31a, "application/x-arc"),
130 array(0, 4, 0x8080ffff, 0x41a, "application/x-arc"),
131 array(0, 4, 0x8080ffff, 0x61a, "application/x-arc"),
132 array(0, 8, 0, "\032archive", "application/data"),
133 array(0, 2, 0, "ê`", "application/x-arj"),
134 array(0, 4, 0, "HPAK", "application/data"),
135 array(0, 8, 0, "\351,\001JAM\ ", "application/data"),
136 array(2, 5, 0, "-lh0-", "application/x-lha"),
137 array(2, 5, 0, "-lh1-", "application/x-lha"),
138 array(2, 5, 0, "-lz4-", "application/x-lha"),
139 array(2, 5, 0, "-lz5-", "application/x-lha"),
140 array(2, 5, 0, "-lzs-", "application/x-lha"),
141 array(2, 5, 0, "-lh\40-", "application/x-lha"),
142 array(2, 5, 0, "-lhd-", "application/x-lha"),
143 array(2, 5, 0, "-lh2-", "application/x-lha"),
144 array(2, 5, 0, "-lh3-", "application/x-lha"),
145 array(2, 5, 0, "-lh4-", "application/x-lha"),
146 array(2, 5, 0, "-lh5-", "application/x-lha"),
147 array(0, 4, 0, "Rar!", "application/x-rar"),
148 array(0, 4, 0, "SQSH", "application/data"),
149 array(0, 4, 0, "UC2\x1a", "application/data"),
150 array(0, 4, 0, "PK\003\004", "application/zip"),
151 array(20, 4, 0, "ýħÜ", "application/x-zoo"),
152 array(10, 25, 0, "# This is a shell archive", "application/x-shar"),
153 array(0, 4, 0, "*STA", "application/data"),
154 array(0, 4, 0, "2278", "application/data"),
155 array(0, 2, 0, "p\x01", "application/x-executable-file"),
156 array(0, 2, 0, "q\x01", "application/x-executable-file"),
157 array(0, 5, 0, "\000\004\036\212\200", "application/core"),
158 array(0, 4, 0, ".snd", "audio/basic"),
159 array(0, 4, 0, "\x00ds.", "audio/basic"),
160 array(0, 4, 0, "MThd", "audio/midi"),
161 array(0, 4, 0, "CTMF", "audio/x-cmf"),
162 array(0, 3, 0, "SBI", "audio/x-sbi"),
163 array(0, 19, 0, "Creative Voice File", "audio/x-voc"),
164 array(0, 4, 0, "KRTN", "audio/x-multitrack"),
165 array(0, 4, 0, "RIFF", "audio/x-wav"),
166 array(0, 4, 0, "EMOD", "audio/x-emod"),
167 array(0, 4, 0, "ýar.", "audio/x-pn-realaudio"),
168 array(0, 3, 0, "MTM", "audio/x-multitrack"),
169 array(0, 2, 0, "if", "audio/x-669-mod"),
170 array(0, 3, 0, "FAR", "audio/mod"),
171 array(0, 5, 0, "MAS_U", "audio/x-multimate-mod"),
172 array(0x2c, 4, 0, "SCRM", "audio/x-st3-mod"),
173 array(0, 22, 0, "GF1PATCH110\0ID#000002\0", "audio/x-gus-patch"),
174 array(0, 22, 0, "GF1PATCH100\0ID#000002\0", "audio/x-gus-patch"),
175 array(0, 2, 0, "JN", "audio/x-669-mod"),
176 array(0, 4, 0, "UN05", "audio/x-mikmod-uni"),
177 array(21, 8, 0, "!SCREAM!", "audio/x-st2-mod"),
178 array(1080, 4, 0, "M.K.", "audio/x-protracker-mod"),
179 array(1080, 4, 0, "M!K!", "audio/x-protracker-mod"),
180 array(1080, 4, 0, "FLT4", "audio/x-startracker-mod"),
181 array(1080, 4, 0, "4CHN", "audio/x-fasttracker-mod"),
182 array(1080, 4, 0, "6CHN", "audio/x-fasttracker-mod"),
183 array(1080, 4, 0, "8CHN", "audio/x-fasttracker-mod"),
184 array(1080, 4, 0, "CD81", "audio/x-oktalyzer-mod"),
185 array(1080, 4, 0, "OKTA", "audio/x-oktalyzer-mod"),
186 array(1080, 4, 0, "16CN", "audio/x-taketracker-mod"),
187 array(1080, 4, 0, "32CN", "audio/x-taketracker-mod"),
188 array(0, 3, 0, "TOC", "audio/x-toc"),
189 array(0, 2, 0, "\x07\x01", "application/x-executable-file"),
190 array(0, 2, 0, "\x01\x06", "application/x-executable-file"),
191 array(0, 2, 0, "\x06\x01", "application/x-executable-file"),
192 array(0, 2, 0, "//", "text/cpp"),
193 array(0, 5, 0, "\\1cw ", "application/data"),
194 array(0, 4, 0, "\\1cw", "application/data"),
195 array(0, 4, 0xffffff00, 0x140185, "application/data"),
196 array(0, 4, 0xffffff00, 0xcb0185, "application/data"),
197 array(0, 2, 0, "\x01}", "application/x-executable-file"),
198 array(0, 2, 0, "\x01\x7f", "application/x-executable-file"),
199 array(4, 4, 0, "pipe", "application/data"),
200 array(4, 4, 0, "prof", "application/data"),
201 array(0, 9, 0, "#!/bin/sh", "application/x-sh"),
202 array(0, 10, 0, "#! /bin/sh", "application/x-sh"),
203 array(0, 11, 0, "#!\ /bin/sh", "application/x-sh"),
204 array(0, 10, 0, "#!/bin/csh", "application/x-csh"),
205 array(0, 11, 0, "#! /bin/csh", "application/x-csh"),
206 array(0, 12, 0, "#!\ /bin/csh", "application/x-csh"),
207 array(0, 10, 0, "#!/bin/ksh", "application/x-ksh"),
208 array(0, 11, 0, "#! /bin/ksh", "application/x-ksh"),
209 array(0, 12, 0, "#!\ /bin/ksh", "application/x-ksh"),
210 array(0, 17, 0, "#!/usr/local/tcsh", "application/x-csh"),
211 array(0, 21, 0, "#!/usr/local/bin/tcsh", "application/x-csh"),
212 array(0, 22, 0, "#! /usr/local/bin/tcsh", "application/x-csh"),
213 array(0, 23, 0, "#!\ /usr/local/bin/tcsh", "application/x-csh"),
214 array(0, 20, 0, "#!/usr/local/bin/zsh", "application/x-zsh"),
215 array(0, 21, 0, "#! /usr/local/bin/zsh", "application/x-zsh"),
216 array(0, 22, 0, "#!\ /usr/local/bin/zsh", "application/x-zsh"),
217 array(0, 20, 0, "#!/usr/local/bin/ash", "application/x-sh"),
218 array(0, 21, 0, "#! /usr/local/bin/ash", "application/x-zsh"),
219 array(0, 22, 0, "#!\ /usr/local/bin/ash", "application/x-zsh"),
220 array(0, 19, 0, "#!/usr/local/bin/ae", "text/script"),
221 array(0, 20, 0, "#! /usr/local/bin/ae", "text/script"),
222 array(0, 21, 0, "#!\ /usr/local/bin/ae", "text/script"),
223 array(0, 11, 0, "#!/bin/nawk", "application/x-awk"),
224 array(0, 12, 0, "#! /bin/nawk", "application/x-awk"),
225 array(0, 13, 0, "#!\ /bin/nawk", "application/x-awk"),
226 array(0, 15, 0, "#!/usr/bin/nawk", "application/x-awk"),
227 array(0, 16, 0, "#! /usr/bin/nawk", "application/x-awk"),
228 array(0, 17, 0, "#!\ /usr/bin/nawk", "application/x-awk"),
229 array(0, 21, 0, "#!/usr/local/bin/nawk", "application/x-awk"),
230 array(0, 22, 0, "#! /usr/local/bin/nawk", "application/x-awk"),
231 array(0, 23, 0, "#!\ /usr/local/bin/nawk", "application/x-awk"),
232 array(0, 11, 0, "#!/bin/gawk", "application/x-awk"),
233 array(0, 12, 0, "#! /bin/gawk", "application/x-awk"),
234 array(0, 13, 0, "#!\ /bin/gawk", "application/x-awk"),
235 array(0, 15, 0, "#!/usr/bin/gawk", "application/x-awk"),
236 array(0, 16, 0, "#! /usr/bin/gawk", "application/x-awk"),
237 array(0, 17, 0, "#!\ /usr/bin/gawk", "application/x-awk"),
238 array(0, 21, 0, "#!/usr/local/bin/gawk", "application/x-awk"),
239 array(0, 22, 0, "#! /usr/local/bin/gawk", "application/x-awk"),
240 array(0, 23, 0, "#!\ /usr/local/bin/gawk", "application/x-awk"),
241 array(0, 10, 0, "#!/bin/awk", "application/x-awk"),
242 array(0, 11, 0, "#! /bin/awk", "application/x-awk"),
243 array(0, 12, 0, "#!\ /bin/awk", "application/x-awk"),
244 array(0, 14, 0, "#!/usr/bin/awk", "application/x-awk"),
245 array(0, 15, 0, "#! /usr/bin/awk", "application/x-awk"),
246 array(0, 16, 0, "#!\ /usr/bin/awk", "application/x-awk"),
247 array(0, 5, 0, "BEGIN", "application/x-awk"),
248 array(0, 11, 0, "#!/bin/perl", "application/x-perl"),
249 array(0, 12, 0, "#! /bin/perl", "application/x-perl"),
250 array(0, 13, 0, "#!\ /bin/perl", "application/x-perl"),
251 array(0, 20, 0, "eval \"exec /bin/perl", "application/x-perl"),
252 array(0, 15, 0, "#!/usr/bin/perl", "application/x-perl"),
253 array(0, 16, 0, "#! /usr/bin/perl", "application/x-perl"),
254 array(0, 17, 0, "#!\ /usr/bin/perl", "application/x-perl"),
255 array(0, 24, 0, "eval \"exec /usr/bin/perl", "application/x-perl"),
256 array(0, 21, 0, "#!/usr/local/bin/perl", "application/x-perl"),
257 array(0, 22, 0, "#! /usr/local/bin/perl", "application/x-perl"),
258 array(0, 23, 0, "#!\ /usr/local/bin/perl", "application/x-perl"),
259 array(0, 30, 0, "eval \"exec /usr/local/bin/perl", "application/x-perl"),
260 array(0, 9, 0, "#!/bin/rc", "text/script"),
261 array(0, 10, 0, "#! /bin/rc", "text/script"),
262 array(0, 11, 0, "#!\ /bin/rc", "text/script"),
263 array(0, 11, 0, "#!/bin/bash", "application/x-sh"),
264 array(0, 12, 0, "#! /bin/bash", "application/x-sh"),
265 array(0, 13, 0, "#!\ /bin/bash", "application/x-sh"),
266 array(0, 21, 0, "#!/usr/local/bin/bash", "application/x-sh"),
267 array(0, 22, 0, "#! /usr/local/bin/bash", "application/x-sh"),
268 array(0, 23, 0, "#!\ /usr/local/bin/bash", "application/x-sh"),
269 array(0, 4, 0, "#! /", "text/script"),
270 array(0, 5, 0, "#!\ /", "text/script"),
271 array(0, 3, 0, "#!/", "text/script"),
272 array(0, 3, 0, "#! ", "text/script"),
273 array(0, 2, 0, "\037\235", "application/compress"),
274 array(0, 2, 0, "\037\213", "application/x-gzip"),
275 array(0, 2, 0, "\037\036", "application/data"),
276 array(0, 2, 0, "\x1f\x1f", "application/data"),
277 array(0, 2, 0, "\x1fÿ", "application/data"),
278 array(0, 2, 0, "\377\037", "application/data"),
279 array(0, 2, 0, \x05", "application/data"),
280 array(0, 3, 0, "BZh", "application/x-bzip2"),
281 array(0, 2, 0, "ÿv", "application/data"),
282 array(0, 2, 0, "þv", "application/data"),
283 array(0, 2, 0, "ýv", "application/x-lzh"),
284 array(0, 2, 0, "\037\237", "application/data"),
285 array(0, 2, 0, "\037\236", "application/data"),
286 array(0, 2, 0, "\037\240", "application/data"),
287 array(0, 2, 0, "BZ", "application/x-bzip"),
288 array(0, 9, 0, "\x89\x4c\x5a\x4f\x00\x0d\x0a\x1a\x0a", "application/data"),
289 array(0, 4, 0, "W\x12\x01\x00", "application/core"),
290 array(0, 4, 0, "ΚW\x13", "application/x-gdbm"),
291 array(0, 4, 0, "\x13WšÎ", "application/x-gdbm"),
292 array(0, 4, 0, "GDBM", "application/x-gdbm"),
293 array(0, 4, 0, "a\x15\x06\x00", "application/x-db"),
294 array(0, 4, 0, "b1\x05\x00", "application/x-db"),
295 array(0, 23, 0, "=<list>\n<protocol bbn-m", "application/data"),
296 array(0, 5, 0, "diff ", "text/x-patch"),
297 array(0, 4, 0, "*** ", "text/x-patch"),
298 array(0, 8, 0, "Only in ", "text/x-patch"),
299 array(0, 23, 0, "Common subdirectories: ", "text/x-patch"),
300 array(0, 19, 0, "!<arch>\n________64E", "application/data"),
301 array(0, 2, 0, "\x01ˆ", "application/x-executable-file"),
302 array(0, 2, 0, "\x01�", "application/x-object-file"),
303 array(0, 3, 0, "\377\377\177", "application/data"),
304 array(0, 3, 0, "\377\377\174", "application/data"),
305 array(0, 3, 0, "\377\377\176", "application/data"),
306 array(0, 3, 0, "\033c\033", "application/data"),
307 array(0, 4, 0, "\x00\x12և", "image/x11"),
308 array(0, 8, 0, "!<PDF>!\n", "application/x-prof"),
309 array(0, 2, 0, "\x05\x01", "application/x-locale"),
310 array(0, 4, 0, "\177ELF", "application/x-executable-file"),
311 array(0, 2, 0, "\x01T", "application/data"),
312 array(0, 2, 0, "\x01U", "application/x-executable-file"),
313 array(0x438, 2, 0, "ïS", "application/x-linux-ext2fs"),
314 array(0, 4, 0, "\366\366\366\366", "application/x-pc-floppy"),
315 array(0774, 2, 0, "¾Ú", "application/data"),
316 array(0x1FE, 2, 0, "ªU", "application/data"),
317 array(0x410, 2, 0, "\x13\x7f", "application/x-filesystem"),
318 array(0x410, 2, 0, "\x13�", "application/x-filesystem"),
319 array(0x410, 2, 0, "\x24h", "application/x-filesystem"),
320 array(0x410, 2, 0, "\x24x", "application/x-filesystem"),
321 array(0, 9, 0, "-rom1fs-\0", "application/x-filesystem"),
322 array(0, 4, 0, "\x1b\x03\x136", "application/x-bootable"),
323 array(0x18b, 4, 0, "OS/2", "application/x-bootable"),
324 array(0, 4, 0, "FONT", "font/x-vfont"),
325 array(0, 2, 0, "\x01\x1e", "font/x-vfont"),
326 array(0, 2, 0, "\x1e\x01", "font/x-vfont"),
327 array(0, 18, 0, "%!PS-AdobeFont-1.0", "font/type1"),
328 array(6, 18, 0, "%!PS-AdobeFont-1.0", "font/type1"),
329 array(0, 10, 0, "STARTFONT\040", "font/x-bdf"),
330 array(0, 4, 0, "\001fcp", "font/x-pcf"),
331 array(0, 5, 0, "D1.0\015", "font/x-speedo"),
332 array(0, 3, 0, "flf", "font/x-figlet"),
333 array(0, 3, 0, "flc", "application/x-font"),
334 array(0, 4, 0, "\x19Y\x02\x14", "font/x-libgrx"),
335 array(0, 4, 0, "NOFÿ", "font/x-dos"),
336 array(7, 4, 0, "AGE\x00", "font/x-dos"),
337 array(7, 4, 0, "DIV\x00", "font/x-dos"),
338 array(0, 10, 0, "<MakerFile", "application/x-framemaker"),
339 array(0, 8, 0, "<MIFFile", "application/x-framemaker"),
340 array(0, 16, 0, "<MakerDictionary", "application/x-framemaker"),
341 array(0, 16, 0, "<MakerScreenFont", "font/x-framemaker"),
342 array(0, 4, 0, "<MML", "application/x-framemaker"),
343 array(0, 9, 0, "<BookFile", "application/x-framemaker"),
344 array(0, 6, 0, "<Maker", "application/x-framemaker"),
345 array(0, 4, 0377777777, 0x860107, "application/x-executable-file"),
346 array(0, 4, 0377777777, 0x860108, "application/x-executable-file"),
347 array(0, 4, 0377777777, 0x86010b, "application/x-executable-file"),
348 array(0, 4, 0377777777, 0x8600cc, "application/x-executable-file"),
349 array(7, 22, 0, "\357\020\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", "application/core"),
350 array(0, 4, 0, "LDHi", "application/data"),
351 array(0, 13, 0, "GIMP Gradient", "application/x-gimp-gradient"),
352 array(0, 8, 0, "gimp xcf", "application/x-gimp-image"),
353 array(20, 4, 0, "GPAT", "application/x-gimp-pattern"),
354 array(20, 4, 0, "GIMP", "application/x-gimp-brush"),
355 array(0, 4, 0, "\336\22\4\225", "application/x-locale"),
356 array(0, 4, 0, "\225\4\22\336", "application/x-locale"),
357 array(0, 2, 0, "—\x01", "application/x-executable-file"),
358 array(0, 2, 0, "”\x01", "application/x-executable-file"),
359 array(0, 5, 0, "\000\001\000\000\000", "font/ttf"),
360 array(0, 4, 0, "\x0a\x0f\x08\x0e", "application/data"),
361 array(0, 4, 0, "\x0f\x0a\x0e\x08", "application/data"),
362 array(0, 4, 0, "\x08\x0e\x0a\x0f", "application/data"),
363 array(0, 4, 0, "\x0e\x08\x0f\x0a", "application/data"),
364 array(0, 4, 0, "\x06\x01\x10\x02", "application/x-object-file"),
365 array(0, 4, 0, "\x07\x01\x10\x02", "application/x-executable-file"),
366 array(0, 4, 0, "\x08\x01\x10\x02", "application/x-executable-file"),
367 array(0, 4, 0, "\x0b\x01\x10\x02", "application/x-executable-file"),
368 array(0, 4, 0, "\x0e\x01\x10\x02", "application/x-library-file"),
369 array(0, 4, 0, "\x0d\x01\x10\x02", "application/x-library-file"),
370 array(0, 4, 0, "\x06\x01\x14\x02", "application/x-object-file"),
371 array(0, 4, 0, "\x07\x01\x14\x02", "application/x-executable-file"),
372 array(0, 4, 0, "\x08\x01\x14\x02", "application/x-executable-file"),
373 array(0, 4, 0, "\x0b\x01\x14\x02", "application/x-executable-file"),
374 array(0, 4, 0, "\x0e\x01\x14\x02", "application/x-library-file"),
375 array(0, 4, 0, "\x0d\x01\x14\x02", "application/x-object-file"),
376 array(0, 4, 0, "\x06\x01\x0b\x02", "application/x-object-file"),
377 array(0, 4, 0, "\x07\x01\x0b\x02", "application/x-executable-file"),
378 array(0, 4, 0, "\x08\x01\x0b\x02", "application/x-executable-file"),
379 array(0, 4, 0, "\x0b\x01\x0b\x02", "application/x-executable-file"),
380 array(0, 4, 0, "\x0e\x01\x0b\x02", "application/x-library-file"),
381 array(0, 4, 0, "\x0d\x01\x0b\x02", "application/x-library-file"),
382 array(0, 4, 0, "ra<!", "application/x-ar"),
383 array(0, 4, 0, "\x02\x08\x01\x06", "application/x-executable-file"),
384 array(0, 4, 0, "\x02\x08\x01\x07", "application/x-executable-file"),
385 array(0, 4, 0, "\x02\x08\x01\x08", "application/x-executable-file"),
386 array(0, 4, 0, "\x08\x01\x0c\x02", "application/x-executable-file"),
387 array(0, 4, 0, "\x07\x01\x0c\x02", "application/x-executable-file"),
388 array(0, 4, 0, "\x0b\x01\x0c\x02", "application/x-executable-file"),
389 array(0, 4, 0, "\x06\x01\x0c\x02", "application/x-executable-file"),
390 array(0, 4, 0, "\x08\x01\x0a\x02", "application/x-executable-file"),
391 array(0, 4, 0, "\x07\x01\x0a\x02", "application/x-executable-file"),
392 array(0, 4, 0, "\x0e\x01\x0c\x02", "application/x-library-file"),
393 array(0, 4, 0, "\x0d\x01\x0c\x02", "application/x-library-file"),
394 array(0, 4, 0, "\x02\x0aÿe", "application/x-library-file"),
395 array(0, 4, 0, "\x02\x0cÿe", "application/x-library-file"),
396 array(0, 4, 0, "\x02\x08ÿe", "application/x-library-file"),
397 array(0, 4, 0, "\x01X!¦", "application/core"),
398 array(0, 4, 0, "M§îè", "font/x-hp-windows"),
399 array(0, 10, 0, "Bitmapfile", "image/unknown"),
400 array(0, 4, 0, "\x02\x0c\x01\x0c", "application/x-lisp"),
401 array(0, 8, 0, "msgcat01", "application/x-locale"),
402 array(0, 2, 0, "P1", "image/x-portable-bitmap"),
403 array(0, 2, 0, "P2", "image/x-portable-graymap"),
404 array(0, 2, 0, "P3", "image/x-portable-pixmap"),
405 array(0, 2, 0, "P4", "image/x-portable-bitmap"),
406 array(0, 2, 0, "P5", "image/x-portable-graymap"),
407 array(0, 2, 0, "P6", "image/x-portable-pixmap"),
408 array(0, 4, 0, "IIN1", "image/tiff"),
409 array(0, 4, 0, "MM\x00\x2a", "image/tiff"),
410 array(0, 4, 0, "II\x2a\x00", "image/tiff"),
411 array(0, 4, 0, "\x89PNG", "image/x-png"),
412 array(1, 3, 0, "PNG", "image/x-png"),
413 array(0, 4, 0, "GIF8", "image/gif"),
414 array(0, 4, 0, "\361\0\100\273", "image/x-cmu-raster"),
415 array(0, 2, 0, "Øÿ", "image/jpeg"),
416 array(0, 4, 0, "hsi1", "image/x-jpeg-proprietary"),
417 array(0, 2, 0, "BM", "image/x-bmp"),
418 array(0, 2, 0, "IC", "image/x-ico"),
419 array(0, 4, 0, "•j¦Y", "x/x-image-sun-raster"),
420 array(0, 2, 0, \x01", "x/x-image-sgi"),
421 array(2048, 7, 0, "PCD_IPI", "x/x-photo-cd-pack-file"),
422 array(0, 7, 0, "PCD_OPA", "x/x-photo-cd-overfiew-file"),
423 array(0, 2, 0, "\x01H", "application/x-executable-file"),
424 array(0, 2, 0, "\x01I", "application/x-executable-file"),
425 array(0, 2, 0, "\x01J", "application/x-executable-file"),
426 array(0, 2, 0, "\x01R", "application/x-executable-file"),
427 array(0, 2, 0, "\x01L", "application/x-executable-file"),
428 array(0, 2, 0, "\x046", "font/linux-psf"),
429 array(0, 4, 0, "FFIL", "font/ttf"),
430 array(65, 4, 0, "FFIL", "font/ttf"),
431 array(0, 4, 0, "LWFN", "font/type1"),
432 array(65, 4, 0, "LWFN", "font/type1"),
433 array(0, 12, 0, "Return-Path:", "message/rfc822"),
434 array(0, 5, 0, "Path:", "message/news"),
435 array(0, 5, 0, "Xref:", "message/news"),
436 array(0, 5, 0, "From:", "message/rfc822"),
437 array(0, 7, 0, "Article", "message/news"),
438 array(0, 5, 0, "BABYL", "message/x-gnu-rmail"),
439 array(0, 9, 0, "Received:", "message/rfc822"),
440 array(0, 2, 0, "MZ", "application/x-ms-dos-executable"),
441 array(2080, 27, 0, "Microsoft Word 6.0 Document", "text/vnd.ms-word"),
442 array(2080, 26, 0, "Documento Microsoft Word 6", "text/vnd.ms-word"),
443 array(2112, 9, 0, "MSWordDoc", "text/vnd.ms-word"),
444 array(0, 5, 0, "PO^Q`", "text/vnd.ms-word"),
445 array(2080, 29, 0, "Microsoft Excel 5.0 Worksheet", "application/vnd.ms-excel"),
446 array(2114, 5, 0, "Biff5", "application/vnd.ms-excel"),
447 array(1, 3, 0, "WPC", "text/vnd.wordperfect"),
448 array(0, 4, 0377777777, 0x7018600, "NetBSD/i386"),
449 array(0, 4, 0377777777, 0x7018700, "NetBSD/m68k"),
450 array(0, 4, 0377777777, 0x7018800, "NetBSD/m68k4k"),
451 array(0, 4, 0377777777, 0x7018900, "NetBSD/ns32532"),
452 array(0, 4, 0377777777, 0x7018a00, "NetBSD/sparc"),
453 array(0, 4, 0377777777, 0x7018b00, "NetBSD/pmax"),
454 array(0, 4, 0377777777, 0x7018c00, "NetBSD/vax"),
455 array(0, 4, 0377777777, 0x7018e00, "NetBSD/mips"),
456 array(0, 4, 0377777777, 0x7018f00, "NetBSD/arm32"),
457 array(0, 16, 0, "StartFontMetrics", "font/x-sunos-news"),
458 array(0, 9, 0, "StartFont", "font/x-sunos-news"),
459 array(0, 4, 0, "D)z\x13", "font/x-sunos-news"),
460 array(0, 4, 0, "G)z\x13", "font/x-sunos-news"),
461 array(0, 4, 0, "P)z\x13", "font/x-sunos-news"),
462 array(0, 4, 0, "Q)z\x13", "font/x-sunos-news"),
463 array(8, 4, 0, "E+z\x13", "font/x-sunos-news"),
464 array(8, 4, 0, "H+z\x13", "font/x-sunos-news"),
465 array(0, 2, 0, "%!", "application/postscript"),
466 array(0, 3, 0, "\004%!", "application/postscript"),
467 array(0, 3, 0, "\033E\033", "image/x-pcl-hp"),
468 array(0, 14, 0, "<!DOCTYPE HTML", "text/html"),
469 array(0, 14, 0, "<!doctype html", "text/html"),
470 array(0, 5, 0, "<HEAD", "text/html"),
471 array(0, 5, 0, "<head", "text/html"),
472 array(0, 6, 0, "<TITLE", "text/html"),
473 array(0, 6, 0, "<title", "text/html"),
474 array(0, 5, 0, "<html", "text/html"),
475 array(0, 5, 0, "<HTML", "text/html"),
476 array(0, 2, 0, "\367\203", "font/x-tex"),
477 array(0, 2, 0, "\367\131", "font/x-tex"),
478 array(0, 2, 0, "\367\312", "font/x-tex"),
479 array(2, 2, 0, "\000\021", "font/x-tex-tfm"),
480 array(2, 2, 0, "\000\022", "font/x-tex-tfm"),
481 array('>2', 2, 0, "º¾", "application/java"),
482 array(8, 4, 0, "AIFF", "audio/x-aiff"),
483 array(8, 4, 0, "AIFC", "audio/x-aiff"),
484 array(8, 4, 0, "8SVX", "audio/x-aiff"),
485 array('>8', 4, 0, "WAVE", "audio/x-wav"),
486 array('>8', 3, 0, "AVI", "video/x-msvideo"),
487 array(0, 3, 0, "ID3", "audio/mpeg"),
488 array(0, 4, 0, "OggS", "audio/x-ogg"),
489 array(0, 6, 0, "/* XPM", "image/x-xpm"),
490 array(16, 2, 0, "==", "image/x-3ds"),
491 array(0, 11, 0, "#!/bin/tcsh", "application/x-shellscript"),
492 array(0, 12, 0, "#! /bin/tcsh", "application/x-shellscript"),
493 array(0, 18, 0, "#! /usr/local/tcsh", "application/x-shellscript"),
494 array('>8', 6, 0, "debian", "application/x-debian-package"),
495 array('>2', 2, 0, "Ûî", "application/x-rpm"),
496 array(2, 5, 0, "-lh -", "application/x-lha"),
497 array(2, 5, 0, "-lh6-", "application/x-lha"),
498 array(2, 5, 0, "-lh7-", "application/x-lha"),
499 array(0, 15, 0, "<MakerScreenFon", "application/x-frame"),
500 array(0, 5, 0, "<Book", "application/x-frame"),
501 array(0, 3, 0, "<h1", "text/html"),
502 array(0, 3, 0, "<H1", "text/html"),
503 array(0, 14, 0, "<!doctype HTML", "text/html"),
504 array(0, 2, 0, "MM", "image/tiff"),
505 array(0, 2, 0, "II", "image/tiff"),
506 array(0, 6, 0, "GIF94z", "image/unknown"),
507 array(0, 6, 0, "FGF95a", "image/unknown"),
508 array(0, 3, 0, "PBF", "image/unknown"),
509 array(0, 3, 0, "GIF", "image/gif"),
510 array(0, 4, 0, "\376\067\0\043", "application/msword"),
511 array(0, 6, 0, "\320\317\021\340\241\261", "application/msword"),
512 array(0, 6, 0, "\333\245-\0\0\0", "application/msword"),
513 array(0, 2, 0, "\x02÷", "application/x-dvi"),
514 array(0, 2, 0, \x11", "video/fli"),
515 array(0, 2, 0, \x12", "video/flc"),
516 array('>8', 4, 0, "AVI ", "video/avi"),
517 array(0, 1, 0, "\x01", "video/unknown"),
518 array(0, 1, 0, "\x02", "video/unknown"),
519 array(0, 19, 0, "[KDE Desktop Entry]", "application/x-kdelnk"),
520 array(0, 18, 0, "\# KDE Config File", "application/x-kdelnk"),
521 array(0, 7, 0, "\# xmcd", "text/xmcd"),
522 array(0, 4, 0, "\x8aMNG", "video/x-mng"),
523 array(0, 4, 0, \x03\x00\x00", "application/x-executable-file"),
524 array(0, 4, 0, \x03\x00\x00", "application/x-library-file"),
525 array(0, 4, 0, \x01\x00\x00", "video/mpeg"),
526 array(0, 4, 0, \x01\x00\x00", "video/mpeg"),
527 array(0, 4, 0, "\x00\x00�l", "application/x-apl-workspace"),
528 array(0, 4, 0, "\x00\x00ÿm", "application/x-ar"),
529 array(0, 4, 0, "\x00\x00ÿe", "application/data"),
530 array(0, 4, 0, "\x00\x00\x01\x06", "application/x-executable-file"),
531 array(0, 4, 0, "G\x01\x00\x00", "application/x-object-file"),
532 array(0, 4, 0, "K\x01\x00\x00", "application/x-executable-file"),
533 array(0, 4, 0, "M\x01\x00\x00", "application/x-executable-file"),
534 array(0, 4, 0, "O\x01\x00\x00", "application/x-executable-file"),
535 array(24, 4, 0, "kê\x00\x00", "application/data"),
536 array(24, 4, 0, "lê\x00\x00", "application/data"),
537 array(24, 4, 0, "mê\x00\x00", "application/data"),
538 array(24, 4, 0, "nê\x00\x00", "application/data"),
539 array(0, 4, 0, "�\x01\x00\x00", "application/x-object-file"),
540 array(0, 4, 0, "‡\x01\x00\x00", "application/data"),
541 array(24, 4, 0, "\x00\x00êl", "application/x-dump"),
542 array(24, 4, 0, "\x00\x00êk", "application/x-dump"),
543 array(0, 4, 0, "\x00\x00¾1", "text/vnd.ms-word"),
544 array(0, 2, 0, "\x00\x00", "audio/mpeg"),
545 array('>16', 2, 0, "\x00\x01", "application/x-object"),
546 array('>16', 2, 0, "\x00\x02", "application/x-executable"),
547 array('>16', 2, 0, "\x00\x03", "application/x-sharedlib"),
548 array('>16', 2, 0, "\x00\x04", "application/x-coredump"),
549 array(0, 4, 0, "\x00\x00\x00Ì", "application/x-executable-file"),
550 array(0, 4, 0, "\x04\x00\x00\x00", "font/x-snf"),
551 array(0, 4, 0, "\x00\x00\x00\x04", "font/x-snf"),
552 array('>12', 4, 0, "\x01\x00\x00\x00", "audio/basic"),
553 array('>12', 4, 0, "\x02\x00\x00\x00", "audio/basic"),
554 array('>12', 4, 0, "\x03\x00\x00\x00", "audio/basic"),
555 array('>12', 4, 0, "\x04\x00\x00\x00", "audio/basic"),
556 array('>12', 4, 0, "\x05\x00\x00\x00", "audio/basic"),
557 array('>12', 4, 0, "\x06\x00\x00\x00", "audio/basic"),
558 array('>12', 4, 0, "\x07\x00\x00\x00", "audio/basic"),
559 array('>12', 4, 0, "\x17\x00\x00\x00", "audio/x-adpcm"),
560 array('>12', 4, 0, "\x00\x00\x00\x01", "audio/x-dec-basic"),
561 array('>12', 4, 0, "\x00\x00\x00\x02", "audio/x-dec-basic"),
562 array('>12', 4, 0, "\x00\x00\x00\x03", "audio/x-dec-basic"),
563 array('>12', 4, 0, "\x00\x00\x00\x04", "audio/x-dec-basic"),
564 array('>12', 4, 0, "\x00\x00\x00\x05", "audio/x-dec-basic"),
565 array('>12', 4, 0, "\x00\x00\x00\x06", "audio/x-dec-basic"),
566 array('>12', 4, 0, "\x00\x00\x00\x07", "audio/x-dec-basic"),
567 array('>12', 4, 0, "\x00\x00\x00\x17", "audio/x-dec-adpcm")