CFDBMimeTypeExtensions

The Contact Form DB CFDBMimeTypeExtensions class.

Defined (1)

The class is defined in the following location(s).

/CFDBMimeTypeExtensions.php  
  1. class CFDBMimeTypeExtensions { 
  2. public $type_by_ext = array( 
  3. '3dm' => 'x-world/x-3dmf',  
  4. '3dmf' => 'x-world/x-3dmf',  
  5. 'a' => 'application/octet-stream',  
  6. 'aab' => 'application/x-authorware-bin',  
  7. 'aam' => 'application/x-authorware-map',  
  8. 'aas' => 'application/x-authorware-seg',  
  9. 'abc' => 'text/vnd.abc',  
  10. 'acgi' => 'text/html',  
  11. 'afl' => 'video/animaflex',  
  12. 'ai' => 'application/postscript',  
  13. 'aif' => 
  14. array( 
  15. 0 => 'audio/aiff',  
  16. 1 => 'audio/x-aiff',  
  17. ),  
  18. 'aifc' => 
  19. array( 
  20. 0 => 'audio/aiff',  
  21. 1 => 'audio/x-aiff',  
  22. ),  
  23. 'aiff' => 
  24. array( 
  25. 0 => 'audio/aiff',  
  26. 1 => 'audio/x-aiff',  
  27. ),  
  28. 'aim' => 'application/x-aim',  
  29. 'aip' => 'text/x-audiosoft-intra',  
  30. 'ani' => 'application/x-navi-animation',  
  31. 'aos' => 'application/x-nokia-9000-communicator-add-on-software',  
  32. 'aps' => 'application/mime',  
  33. 'arc' => 'application/octet-stream',  
  34. 'arj' => 
  35. array( 
  36. 0 => 'application/arj',  
  37. 1 => 'application/octet-stream',  
  38. ),  
  39. 'art' => 'image/x-jg',  
  40. 'asf' => 'video/x-ms-asf',  
  41. 'asm' => 'text/x-asm',  
  42. 'asp' => 'text/asp',  
  43. 'asx' => 
  44. array( 
  45. 0 => 'application/x-mplayer2',  
  46. 1 => 'video/x-ms-asf',  
  47. 2 => 'video/x-ms-asf-plugin',  
  48. ),  
  49. 'au' => 
  50. array( 
  51. 0 => 'audio/basic',  
  52. 1 => 'audio/x-au',  
  53. ),  
  54. 'avi' => 
  55. array( 
  56. 0 => 'application/x-troff-msvideo',  
  57. 1 => 'video/avi',  
  58. 2 => 'video/msvideo',  
  59. 3 => 'video/x-msvideo',  
  60. ),  
  61. 'avs' => 'video/avs-video',  
  62. 'bcpio' => 'application/x-bcpio',  
  63. 'bin' => 
  64. array( 
  65. 0 => 'application/mac-binary',  
  66. 1 => 'application/macbinary',  
  67. 2 => 'application/octet-stream',  
  68. 3 => 'application/x-binary',  
  69. 4 => 'application/x-macbinary',  
  70. ),  
  71. 'bm' => 'image/bmp',  
  72. 'bmp' => 
  73. array( 
  74. 0 => 'image/bmp',  
  75. 1 => 'image/x-windows-bmp',  
  76. ),  
  77. 'boo' => 'application/book',  
  78. 'book' => 'application/book',  
  79. 'boz' => 'application/x-bzip2',  
  80. 'bsh' => 'application/x-bsh',  
  81. 'bz' => 'application/x-bzip',  
  82. 'bz2' => 'application/x-bzip2',  
  83. 'c' => 
  84. array( 
  85. 0 => 'text/plain',  
  86. 1 => 'text/x-c',  
  87. ),  
  88. 'c++' => 'text/plain',  
  89. 'cat' => 'application/vnd.ms-pki.seccat',  
  90. 'cc' => 
  91. array( 
  92. 0 => 'text/plain',  
  93. 1 => 'text/x-c',  
  94. ),  
  95. 'ccad' => 'application/clariscad',  
  96. 'cco' => 'application/x-cocoa',  
  97. 'cdf' => 
  98. array( 
  99. 0 => 'application/cdf',  
  100. 1 => 'application/x-cdf',  
  101. 2 => 'application/x-netcdf',  
  102. ),  
  103. 'cer' => 
  104. array( 
  105. 0 => 'application/pkix-cert',  
  106. 1 => 'application/x-x509-ca-cert',  
  107. ),  
  108. 'cha' => 'application/x-chat',  
  109. 'chat' => 'application/x-chat',  
  110. 'class' => 
  111. array( 
  112. 0 => 'application/java',  
  113. 1 => 'application/java-byte-code',  
  114. 2 => 'application/x-java-class',  
  115. ),  
  116. 'com' => 
  117. array( 
  118. 0 => 'application/octet-stream',  
  119. 1 => 'text/plain',  
  120. ),  
  121. 'conf' => 'text/plain',  
  122. 'cpio' => 'application/x-cpio',  
  123. 'cpp' => 'text/x-c',  
  124. 'cpt' => 
  125. array( 
  126. 0 => 'application/mac-compactpro',  
  127. 1 => 'application/x-compactpro',  
  128. 2 => 'application/x-cpt',  
  129. ),  
  130. 'crl' => 
  131. array( 
  132. 0 => 'application/pkcs-crl',  
  133. 1 => 'application/pkix-crl',  
  134. ),  
  135. 'crt' => 
  136. array( 
  137. 0 => 'application/pkix-cert',  
  138. 1 => 'application/x-x509-ca-cert',  
  139. 2 => 'application/x-x509-user-cert',  
  140. ),  
  141. 'csh' => 
  142. array( 
  143. 0 => 'application/x-csh',  
  144. 1 => 'text/x-script.csh',  
  145. ),  
  146. 'css' => 
  147. array( 
  148. 0 => 'application/x-pointplus',  
  149. 1 => 'text/css',  
  150. ),  
  151. 'cxx' => 'text/plain',  
  152. 'dcr' => 'application/x-director',  
  153. 'deepv' => 'application/x-deepv',  
  154. 'def' => 'text/plain',  
  155. 'der' => 'application/x-x509-ca-cert',  
  156. 'dif' => 'video/x-dv',  
  157. 'dir' => 'application/x-director',  
  158. 'dl' => 
  159. array( 
  160. 0 => 'video/dl',  
  161. 1 => 'video/x-dl',  
  162. ),  
  163. 'doc' => 'application/msword',  
  164. 'dot' => 'application/msword',  
  165. 'dp' => 'application/commonground',  
  166. 'drw' => 'application/drafting',  
  167. 'dump' => 'application/octet-stream',  
  168. 'dv' => 'video/x-dv',  
  169. 'dvi' => 'application/x-dvi',  
  170. 'dwf' => 
  171. array( 
  172. 0 => 'drawing/x-dwf (old)',  
  173. 1 => 'model/vnd.dwf',  
  174. ),  
  175. 'dwg' => 
  176. array( 
  177. 0 => 'application/acad',  
  178. 1 => 'image/vnd.dwg',  
  179. 2 => 'image/x-dwg',  
  180. ),  
  181. 'dxf' => 
  182. array( 
  183. 0 => 'application/dxf',  
  184. 1 => 'image/vnd.dwg',  
  185. 2 => 'image/x-dwg',  
  186. ),  
  187. 'dxr' => 'application/x-director',  
  188. 'el' => 'text/x-script.elisp',  
  189. 'elc' => 
  190. array( 
  191. 0 => 'application/x-bytecode.elisp (compiled elisp)',  
  192. 1 => 'application/x-elc',  
  193. ),  
  194. 'env' => 'application/x-envoy',  
  195. 'eps' => 'application/postscript',  
  196. 'es' => 'application/x-esrehber',  
  197. 'etx' => 'text/x-setext',  
  198. 'evy' => 
  199. array( 
  200. 0 => 'application/envoy',  
  201. 1 => 'application/x-envoy',  
  202. ),  
  203. 'exe' => 'application/octet-stream',  
  204. 'f' => 
  205. array( 
  206. 0 => 'text/plain',  
  207. 1 => 'text/x-fortran',  
  208. ),  
  209. 'f77' => 'text/x-fortran',  
  210. 'f90' => 
  211. array( 
  212. 0 => 'text/plain',  
  213. 1 => 'text/x-fortran',  
  214. ),  
  215. 'fdf' => 'application/vnd.fdf',  
  216. 'fif' => 
  217. array( 
  218. 0 => 'application/fractals',  
  219. 1 => 'image/fif',  
  220. ),  
  221. 'fli' => 
  222. array( 
  223. 0 => 'video/fli',  
  224. 1 => 'video/x-fli',  
  225. ),  
  226. 'flo' => 'image/florian',  
  227. 'flx' => 'text/vnd.fmi.flexstor',  
  228. 'fmf' => 'video/x-atomic3d-feature',  
  229. 'for' => 
  230. array( 
  231. 0 => 'text/plain',  
  232. 1 => 'text/x-fortran',  
  233. ),  
  234. 'fpx' => 
  235. array( 
  236. 0 => 'image/vnd.fpx',  
  237. 1 => 'image/vnd.net-fpx',  
  238. ),  
  239. 'frl' => 'application/freeloader',  
  240. 'funk' => 'audio/make',  
  241. 'g' => 'text/plain',  
  242. 'g3' => 'image/g3fax',  
  243. 'gif' => 'image/gif',  
  244. 'gl' => 
  245. array( 
  246. 0 => 'video/gl',  
  247. 1 => 'video/x-gl',  
  248. ),  
  249. 'gsd' => 'audio/x-gsm',  
  250. 'gsm' => 'audio/x-gsm',  
  251. 'gsp' => 'application/x-gsp',  
  252. 'gss' => 'application/x-gss',  
  253. 'gtar' => 'application/x-gtar',  
  254. 'gz' => 
  255. array( 
  256. 0 => 'application/x-compressed',  
  257. 1 => 'application/x-gzip',  
  258. ),  
  259. 'gzip' => 
  260. array( 
  261. 0 => 'application/x-gzip',  
  262. 1 => 'multipart/x-gzip',  
  263. ),  
  264. 'h' => 
  265. array( 
  266. 0 => 'text/plain',  
  267. 1 => 'text/x-h',  
  268. ),  
  269. 'hdf' => 'application/x-hdf',  
  270. 'help' => 'application/x-helpfile',  
  271. 'hgl' => 'application/vnd.hp-hpgl',  
  272. 'hh' => 
  273. array( 
  274. 0 => 'text/plain',  
  275. 1 => 'text/x-h',  
  276. ),  
  277. 'hlb' => 'text/x-script',  
  278. 'hlp' => 
  279. array( 
  280. 0 => 'application/hlp',  
  281. 1 => 'application/x-helpfile',  
  282. 2 => 'application/x-winhelp',  
  283. ),  
  284. 'hpg' => 'application/vnd.hp-hpgl',  
  285. 'hpgl' => 'application/vnd.hp-hpgl',  
  286. 'hqx' => 
  287. array( 
  288. 0 => 'application/binhex',  
  289. 1 => 'application/binhex4',  
  290. 2 => 'application/mac-binhex',  
  291. 3 => 'application/mac-binhex40',  
  292. 4 => 'application/x-binhex40',  
  293. 5 => 'application/x-mac-binhex40',  
  294. ),  
  295. 'hta' => 'application/hta',  
  296. 'htc' => 'text/x-component',  
  297. 'htm' => 'text/html',  
  298. 'html' => 'text/html',  
  299. 'htmls' => 'text/html',  
  300. 'htt' => 'text/webviewhtml',  
  301. 'htx' => 'text/html',  
  302. 'ice' => 'x-conference/x-cooltalk',  
  303. 'ico' => 'image/x-icon',  
  304. 'idc' => 'text/plain',  
  305. 'ief' => 'image/ief',  
  306. 'iefs' => 'image/ief',  
  307. 'iges' => 
  308. array( 
  309. 0 => 'application/iges',  
  310. 1 => 'model/iges',  
  311. ),  
  312. 'igs' => 
  313. array( 
  314. 0 => 'application/iges',  
  315. 1 => 'model/iges',  
  316. ),  
  317. 'ima' => 'application/x-ima',  
  318. 'imap' => 'application/x-httpd-imap',  
  319. 'inf' => 'application/inf',  
  320. 'ins' => 'application/x-internett-signup',  
  321. 'ip' => 'application/x-ip2',  
  322. 'isu' => 'video/x-isvideo',  
  323. 'it' => 'audio/it',  
  324. 'iv' => 'application/x-inventor',  
  325. 'ivr' => 'i-world/i-vrml',  
  326. 'ivy' => 'application/x-livescreen',  
  327. 'jam' => 'audio/x-jam',  
  328. 'jav' => 
  329. array( 
  330. 0 => 'text/plain',  
  331. 1 => 'text/x-java-source',  
  332. ),  
  333. 'java' => 
  334. array( 
  335. 0 => 'text/plain',  
  336. 1 => 'text/x-java-source',  
  337. ),  
  338. 'jcm' => 'application/x-java-commerce',  
  339. 'jfif' => 
  340. array( 
  341. 0 => 'image/jpeg',  
  342. 1 => 'image/pjpeg',  
  343. ),  
  344. 'jfif-tbnl' => 'image/jpeg',  
  345. 'jpe' => 
  346. array( 
  347. 0 => 'image/jpeg',  
  348. 1 => 'image/pjpeg',  
  349. ),  
  350. 'jpeg' => 
  351. array( 
  352. 0 => 'image/jpeg',  
  353. 1 => 'image/pjpeg',  
  354. ),  
  355. 'jpg' => 
  356. array( 
  357. 0 => 'image/jpeg',  
  358. 1 => 'image/pjpeg',  
  359. ),  
  360. 'jps' => 'image/x-jps',  
  361. 'js' => 'application/x-javascript',  
  362. 'jut' => 'image/jutvision',  
  363. 'kar' => 
  364. array( 
  365. 0 => 'audio/midi',  
  366. 1 => 'music/x-karaoke',  
  367. ),  
  368. 'ksh' => 
  369. array( 
  370. 0 => 'application/x-ksh',  
  371. 1 => 'text/x-script.ksh',  
  372. ),  
  373. 'la' => 
  374. array( 
  375. 0 => 'audio/nspaudio',  
  376. 1 => 'audio/x-nspaudio',  
  377. ),  
  378. 'lam' => 'audio/x-liveaudio',  
  379. 'latex' => 'application/x-latex',  
  380. 'lha' => 
  381. array( 
  382. 0 => 'application/lha',  
  383. 1 => 'application/octet-stream',  
  384. 2 => 'application/x-lha',  
  385. ),  
  386. 'lhx' => 'application/octet-stream',  
  387. 'list' => 'text/plain',  
  388. 'lma' => 
  389. array( 
  390. 0 => 'audio/nspaudio',  
  391. 1 => 'audio/x-nspaudio',  
  392. ),  
  393. 'log' => 'text/plain',  
  394. 'lsp' => 
  395. array( 
  396. 0 => 'application/x-lisp',  
  397. 1 => 'text/x-script.lisp',  
  398. ),  
  399. 'lst' => 'text/plain',  
  400. 'lsx' => 'text/x-la-asf',  
  401. 'ltx' => 'application/x-latex',  
  402. 'lzh' => 
  403. array( 
  404. 0 => 'application/octet-stream',  
  405. 1 => 'application/x-lzh',  
  406. ),  
  407. 'lzx' => 
  408. array( 
  409. 0 => 'application/lzx',  
  410. 1 => 'application/octet-stream',  
  411. 2 => 'application/x-lzx',  
  412. ),  
  413. 'm' => 
  414. array( 
  415. 0 => 'text/plain',  
  416. 1 => 'text/x-m',  
  417. ),  
  418. 'm1v' => 'video/mpeg',  
  419. 'm2a' => 'audio/mpeg',  
  420. 'm2v' => 'video/mpeg',  
  421. 'm3u' => 'audio/x-mpequrl',  
  422. 'man' => 'application/x-troff-man',  
  423. 'map' => 'application/x-navimap',  
  424. 'mar' => 'text/plain',  
  425. 'mbd' => 'application/mbedlet',  
  426. 'mc$' => 'application/x-magic-cap-package-1.0',  
  427. 'mcd' => 
  428. array( 
  429. 0 => 'application/mcad',  
  430. 1 => 'application/x-mathcad',  
  431. ),  
  432. 'mcf' => 
  433. array( 
  434. 0 => 'image/vasa',  
  435. 1 => 'text/mcf',  
  436. ),  
  437. 'mcp' => 'application/netmc',  
  438. 'me' => 'application/x-troff-me',  
  439. 'mht' => 'message/rfc822',  
  440. 'mhtml' => 'message/rfc822',  
  441. 'mid' => 
  442. array( 
  443. 0 => 'application/x-midi',  
  444. 1 => 'audio/midi',  
  445. 2 => 'audio/x-mid',  
  446. 3 => 'audio/x-midi',  
  447. 4 => 'music/crescendo',  
  448. 5 => 'x-music/x-midi',  
  449. ),  
  450. 'midi' => 
  451. array( 
  452. 0 => 'application/x-midi',  
  453. 1 => 'audio/midi',  
  454. 2 => 'audio/x-mid',  
  455. 3 => 'audio/x-midi',  
  456. 4 => 'music/crescendo',  
  457. 5 => 'x-music/x-midi',  
  458. ),  
  459. 'mif' => 
  460. array( 
  461. 0 => 'application/x-frame',  
  462. 1 => 'application/x-mif',  
  463. ),  
  464. 'mime' => 
  465. array( 
  466. 0 => 'message/rfc822',  
  467. 1 => 'www/mime',  
  468. ),  
  469. 'mjf' => 'audio/x-vnd.audioexplosion.mjuicemediafile',  
  470. 'mjpg' => 'video/x-motion-jpeg',  
  471. 'mm' => 
  472. array( 
  473. 0 => 'application/base64',  
  474. 1 => 'application/x-meme',  
  475. ),  
  476. 'mme' => 'application/base64',  
  477. 'mod' => 
  478. array( 
  479. 0 => 'audio/mod',  
  480. 1 => 'audio/x-mod',  
  481. ),  
  482. 'moov' => 'video/quicktime',  
  483. 'mov' => 'video/quicktime',  
  484. 'movie' => 'video/x-sgi-movie',  
  485. 'mp2' => 
  486. array( 
  487. 0 => 'audio/mpeg',  
  488. 1 => 'audio/x-mpeg',  
  489. 2 => 'video/mpeg',  
  490. 3 => 'video/x-mpeg',  
  491. 4 => 'video/x-mpeq2a',  
  492. ),  
  493. 'mp3' => 
  494. array( 
  495. 0 => 'audio/mpeg3',  
  496. 1 => 'audio/x-mpeg-3',  
  497. 2 => 'video/mpeg',  
  498. 3 => 'video/x-mpeg',  
  499. ),  
  500. 'mpa' => 
  501. array( 
  502. 0 => 'audio/mpeg',  
  503. 1 => 'video/mpeg',  
  504. ),  
  505. 'mpc' => 'application/x-project',  
  506. 'mpe' => 'video/mpeg',  
  507. 'mpeg' => 'video/mpeg',  
  508. 'mpg' => 
  509. array( 
  510. 0 => 'audio/mpeg',  
  511. 1 => 'video/mpeg',  
  512. ),  
  513. 'mpga' => 'audio/mpeg',  
  514. 'mpp' => 'application/vnd.ms-project',  
  515. 'mpt' => 'application/x-project',  
  516. 'mpv' => 'application/x-project',  
  517. 'mpx' => 'application/x-project',  
  518. 'mrc' => 'application/marc',  
  519. 'ms' => 'application/x-troff-ms',  
  520. 'mv' => 'video/x-sgi-movie',  
  521. 'my' => 'audio/make',  
  522. 'mzz' => 'application/x-vnd.audioexplosion.mzz',  
  523. 'nap' => 'image/naplps',  
  524. 'naplps' => 'image/naplps',  
  525. 'nc' => 'application/x-netcdf',  
  526. 'ncm' => 'application/vnd.nokia.configuration-message',  
  527. 'nif' => 'image/x-niff',  
  528. 'niff' => 'image/x-niff',  
  529. 'nix' => 'application/x-mix-transfer',  
  530. 'nsc' => 'application/x-conference',  
  531. 'nvd' => 'application/x-navidoc',  
  532. 'o' => 'application/octet-stream',  
  533. 'oda' => 'application/oda',  
  534. 'omc' => 'application/x-omc',  
  535. 'omcd' => 'application/x-omcdatamaker',  
  536. 'omcr' => 'application/x-omcregerator',  
  537. 'p' => 'text/x-pascal',  
  538. 'p10' => 
  539. array( 
  540. 0 => 'application/pkcs10',  
  541. 1 => 'application/x-pkcs10',  
  542. ),  
  543. 'p12' => 
  544. array( 
  545. 0 => 'application/pkcs-12',  
  546. 1 => 'application/x-pkcs12',  
  547. ),  
  548. 'p7a' => 'application/x-pkcs7-signature',  
  549. 'p7c' => 
  550. array( 
  551. 0 => 'application/pkcs7-mime',  
  552. 1 => 'application/x-pkcs7-mime',  
  553. ),  
  554. 'p7m' => 
  555. array( 
  556. 0 => 'application/pkcs7-mime',  
  557. 1 => 'application/x-pkcs7-mime',  
  558. ),  
  559. 'p7r' => 'application/x-pkcs7-certreqresp',  
  560. 'p7s' => 'application/pkcs7-signature',  
  561. 'part' => 'application/pro_eng',  
  562. 'pas' => 'text/pascal',  
  563. 'pbm' => 'image/x-portable-bitmap',  
  564. 'pcl' => 
  565. array( 
  566. 0 => 'application/vnd.hp-pcl',  
  567. 1 => 'application/x-pcl',  
  568. ),  
  569. 'pct' => 'image/x-pict',  
  570. 'pcx' => 'image/x-pcx',  
  571. 'pdb' => 'chemical/x-pdb',  
  572. 'pdf' => 'application/pdf',  
  573. 'pfunk' => 
  574. array( 
  575. 0 => 'audio/make',  
  576. 1 => 'audio/make.my.funk',  
  577. ),  
  578. 'pgm' => 
  579. array( 
  580. 0 => 'image/x-portable-graymap',  
  581. 1 => 'image/x-portable-greymap',  
  582. ),  
  583. 'pic' => 'image/pict',  
  584. 'pict' => 'image/pict',  
  585. 'pkg' => 'application/x-newton-compatible-pkg',  
  586. 'pko' => 'application/vnd.ms-pki.pko',  
  587. 'pl' => 
  588. array( 
  589. 0 => 'text/plain',  
  590. 1 => 'text/x-script.perl',  
  591. ),  
  592. 'plx' => 'application/x-pixclscript',  
  593. 'pm' => 
  594. array( 
  595. 0 => 'image/x-xpixmap',  
  596. 1 => 'text/x-script.perl-module',  
  597. ),  
  598. 'pm4' => 'application/x-pagemaker',  
  599. 'pm5' => 'application/x-pagemaker',  
  600. 'png' => 'image/png',  
  601. 'pnm' => 
  602. array( 
  603. 0 => 'application/x-portable-anymap',  
  604. 1 => 'image/x-portable-anymap',  
  605. ),  
  606. 'pot' => 
  607. array( 
  608. 0 => 'application/mspowerpoint',  
  609. 1 => 'application/vnd.ms-powerpoint',  
  610. ),  
  611. 'pov' => 'model/x-pov',  
  612. 'ppa' => 'application/vnd.ms-powerpoint',  
  613. 'ppm' => 'image/x-portable-pixmap',  
  614. 'pps' => 
  615. array( 
  616. 0 => 'application/mspowerpoint',  
  617. 1 => 'application/vnd.ms-powerpoint',  
  618. ),  
  619. 'ppt' => 
  620. array( 
  621. 0 => 'application/mspowerpoint',  
  622. 1 => 'application/powerpoint',  
  623. 2 => 'application/vnd.ms-powerpoint',  
  624. 3 => 'application/x-mspowerpoint',  
  625. ),  
  626. 'ppz' => 'application/mspowerpoint',  
  627. 'pre' => 'application/x-freelance',  
  628. 'prt' => 'application/pro_eng',  
  629. 'ps' => 'application/postscript',  
  630. 'psd' => 'application/octet-stream',  
  631. 'pvu' => 'paleovu/x-pv',  
  632. 'pwz' => 'application/vnd.ms-powerpoint',  
  633. 'py' => 'text/x-script.phyton',  
  634. 'pyc' => 'applicaiton/x-bytecode.python',  
  635. 'qcp' => 'audio/vnd.qcelp',  
  636. 'qd3' => 'x-world/x-3dmf',  
  637. 'qd3d' => 'x-world/x-3dmf',  
  638. 'qif' => 'image/x-quicktime',  
  639. 'qt' => 'video/quicktime',  
  640. 'qtc' => 'video/x-qtc',  
  641. 'qti' => 'image/x-quicktime',  
  642. 'qtif' => 'image/x-quicktime',  
  643. 'ra' => 
  644. array( 
  645. 0 => 'audio/x-pn-realaudio',  
  646. 1 => 'audio/x-pn-realaudio-plugin',  
  647. 2 => 'audio/x-realaudio',  
  648. ),  
  649. 'ram' => 'audio/x-pn-realaudio',  
  650. 'ras' => 
  651. array( 
  652. 0 => 'application/x-cmu-raster',  
  653. 1 => 'image/cmu-raster',  
  654. 2 => 'image/x-cmu-raster',  
  655. ),  
  656. 'rast' => 'image/cmu-raster',  
  657. 'rexx' => 'text/x-script.rexx',  
  658. 'rf' => 'image/vnd.rn-realflash',  
  659. 'rgb' => 'image/x-rgb',  
  660. 'rm' => 
  661. array( 
  662. 0 => 'application/vnd.rn-realmedia',  
  663. 1 => 'audio/x-pn-realaudio',  
  664. ),  
  665. 'rmi' => 'audio/mid',  
  666. 'rmm' => 'audio/x-pn-realaudio',  
  667. 'rmp' => 
  668. array( 
  669. 0 => 'audio/x-pn-realaudio',  
  670. 1 => 'audio/x-pn-realaudio-plugin',  
  671. ),  
  672. 'rng' => 
  673. array( 
  674. 0 => 'application/ringing-tones',  
  675. 1 => 'application/vnd.nokia.ringing-tone',  
  676. ),  
  677. 'rnx' => 'application/vnd.rn-realplayer',  
  678. 'roff' => 'application/x-troff',  
  679. 'rp' => 'image/vnd.rn-realpix',  
  680. 'rpm' => 'audio/x-pn-realaudio-plugin',  
  681. 'rt' => 
  682. array( 
  683. 0 => 'text/richtext',  
  684. 1 => 'text/vnd.rn-realtext',  
  685. ),  
  686. 'rtf' => 
  687. array( 
  688. 0 => 'application/rtf',  
  689. 1 => 'application/x-rtf',  
  690. 2 => 'text/richtext',  
  691. ),  
  692. 'rtx' => 
  693. array( 
  694. 0 => 'application/rtf',  
  695. 1 => 'text/richtext',  
  696. ),  
  697. 'rv' => 'video/vnd.rn-realvideo',  
  698. 's' => 'text/x-asm',  
  699. 's3m' => 'audio/s3m',  
  700. 'saveme' => 'application/octet-stream',  
  701. 'sbk' => 'application/x-tbook',  
  702. 'scm' => 
  703. array( 
  704. 0 => 'application/x-lotusscreencam',  
  705. 1 => 'text/x-script.guile',  
  706. 2 => 'text/x-script.scheme',  
  707. 3 => 'video/x-scm',  
  708. ),  
  709. 'sdml' => 'text/plain',  
  710. 'sdp' => 
  711. array( 
  712. 0 => 'application/sdp',  
  713. 1 => 'application/x-sdp',  
  714. ),  
  715. 'sdr' => 'application/sounder',  
  716. 'sea' => 
  717. array( 
  718. 0 => 'application/sea',  
  719. 1 => 'application/x-sea',  
  720. ),  
  721. 'set' => 'application/set',  
  722. 'sgm' => 
  723. array( 
  724. 0 => 'text/sgml',  
  725. 1 => 'text/x-sgml',  
  726. ),  
  727. 'sgml' => 
  728. array( 
  729. 0 => 'text/sgml',  
  730. 1 => 'text/x-sgml',  
  731. ),  
  732. 'sh' => 
  733. array( 
  734. 0 => 'application/x-bsh',  
  735. 1 => 'application/x-sh',  
  736. 2 => 'application/x-shar',  
  737. 3 => 'text/x-script.sh',  
  738. ),  
  739. 'shar' => 
  740. array( 
  741. 0 => 'application/x-bsh',  
  742. 1 => 'application/x-shar',  
  743. ),  
  744. 'shtml' => 
  745. array( 
  746. 0 => 'text/html',  
  747. 1 => 'text/x-server-parsed-html',  
  748. ),  
  749. 'sid' => 'audio/x-psid',  
  750. 'sit' => 
  751. array( 
  752. 0 => 'application/x-sit',  
  753. 1 => 'application/x-stuffit',  
  754. ),  
  755. 'skd' => 'application/x-koan',  
  756. 'skm' => 'application/x-koan',  
  757. 'skp' => 'application/x-koan',  
  758. 'skt' => 'application/x-koan',  
  759. 'sl' => 'application/x-seelogo',  
  760. 'smi' => 'application/smil',  
  761. 'smil' => 'application/smil',  
  762. 'snd' => 
  763. array( 
  764. 0 => 'audio/basic',  
  765. 1 => 'audio/x-adpcm',  
  766. ),  
  767. 'sol' => 'application/solids',  
  768. 'spc' => 
  769. array( 
  770. 0 => 'application/x-pkcs7-certificates',  
  771. 1 => 'text/x-speech',  
  772. ),  
  773. 'spl' => 'application/futuresplash',  
  774. 'spr' => 'application/x-sprite',  
  775. 'sprite' => 'application/x-sprite',  
  776. 'src' => 'application/x-wais-source',  
  777. 'ssi' => 'text/x-server-parsed-html',  
  778. 'ssm' => 'application/streamingmedia',  
  779. 'sst' => 'application/vnd.ms-pki.certstore',  
  780. 'step' => 'application/step',  
  781. 'stl' => 
  782. array( 
  783. 0 => 'application/sla',  
  784. 1 => 'application/vnd.ms-pki.stl',  
  785. 2 => 'application/x-navistyle',  
  786. ),  
  787. 'stp' => 'application/step',  
  788. 'sv4cpio' => 'application/x-sv4cpio',  
  789. 'sv4crc' => 'application/x-sv4crc',  
  790. 'svf' => 
  791. array( 
  792. 0 => 'image/vnd.dwg',  
  793. 1 => 'image/x-dwg',  
  794. ),  
  795. 'svr' => 
  796. array( 
  797. 0 => 'application/x-world',  
  798. 1 => 'x-world/x-svr',  
  799. ),  
  800. 'swf' => 'application/x-shockwave-flash',  
  801. 't' => 'application/x-troff',  
  802. 'talk' => 'text/x-speech',  
  803. 'tar' => 'application/x-tar',  
  804. 'tbk' => 
  805. array( 
  806. 0 => 'application/toolbook',  
  807. 1 => 'application/x-tbook',  
  808. ),  
  809. 'tcl' => 
  810. array( 
  811. 0 => 'application/x-tcl',  
  812. 1 => 'text/x-script.tcl',  
  813. ),  
  814. 'tcsh' => 'text/x-script.tcsh',  
  815. 'tex' => 'application/x-tex',  
  816. 'texi' => 'application/x-texinfo',  
  817. 'texinfo' => 'application/x-texinfo',  
  818. 'text' => 
  819. array( 
  820. 0 => 'application/plain',  
  821. 1 => 'text/plain',  
  822. ),  
  823. 'tgz' => 
  824. array( 
  825. 0 => 'application/gnutar',  
  826. 1 => 'application/x-compressed',  
  827. ),  
  828. 'tif' => 
  829. array( 
  830. 0 => 'image/tiff',  
  831. 1 => 'image/x-tiff',  
  832. ),  
  833. 'tiff' => 
  834. array( 
  835. 0 => 'image/tiff',  
  836. 1 => 'image/x-tiff',  
  837. ),  
  838. 'tr' => 'application/x-troff',  
  839. 'tsi' => 'audio/tsp-audio',  
  840. 'tsp' => 
  841. array( 
  842. 0 => 'application/dsptype',  
  843. 1 => 'audio/tsplayer',  
  844. ),  
  845. 'tsv' => 'text/tab-separated-values',  
  846. 'turbot' => 'image/florian',  
  847. 'txt' => 'text/plain',  
  848. 'uil' => 'text/x-uil',  
  849. 'uni' => 'text/uri-list',  
  850. 'unis' => 'text/uri-list',  
  851. 'unv' => 'application/i-deas',  
  852. 'uri' => 'text/uri-list',  
  853. 'uris' => 'text/uri-list',  
  854. 'ustar' => 
  855. array( 
  856. 0 => 'application/x-ustar',  
  857. 1 => 'multipart/x-ustar',  
  858. ),  
  859. 'uu' => 
  860. array( 
  861. 0 => 'application/octet-stream',  
  862. 1 => 'text/x-uuencode',  
  863. ),  
  864. 'uue' => 'text/x-uuencode',  
  865. 'vcd' => 'application/x-cdlink',  
  866. 'vcs' => 'text/x-vcalendar',  
  867. 'vda' => 'application/vda',  
  868. 'vdo' => 'video/vdo',  
  869. 'vew' => 'application/groupwise',  
  870. 'viv' => 
  871. array( 
  872. 0 => 'video/vivo',  
  873. 1 => 'video/vnd.vivo',  
  874. ),  
  875. 'vivo' => 
  876. array( 
  877. 0 => 'video/vivo',  
  878. 1 => 'video/vnd.vivo',  
  879. ),  
  880. 'vmd' => 'application/vocaltec-media-desc',  
  881. 'vmf' => 'application/vocaltec-media-file',  
  882. 'voc' => 
  883. array( 
  884. 0 => 'audio/voc',  
  885. 1 => 'audio/x-voc',  
  886. ),  
  887. 'vos' => 'video/vosaic',  
  888. 'vox' => 'audio/voxware',  
  889. 'vqe' => 'audio/x-twinvq-plugin',  
  890. 'vqf' => 'audio/x-twinvq',  
  891. 'vql' => 'audio/x-twinvq-plugin',  
  892. 'vrml' => 
  893. array( 
  894. 0 => 'application/x-vrml',  
  895. 1 => 'model/vrml',  
  896. 2 => 'x-world/x-vrml',  
  897. ),  
  898. 'vrt' => 'x-world/x-vrt',  
  899. 'vsd' => 'application/x-visio',  
  900. 'vst' => 'application/x-visio',  
  901. 'vsw' => 'application/x-visio',  
  902. 'w60' => 'application/wordperfect6.0',  
  903. 'w61' => 'application/wordperfect6.1',  
  904. 'w6w' => 'application/msword',  
  905. 'wav' => 
  906. array( 
  907. 0 => 'audio/wav',  
  908. 1 => 'audio/x-wav',  
  909. ),  
  910. 'wb1' => 'application/x-qpro',  
  911. 'wbmp' => 'image/vnd.wap.wbmp',  
  912. 'web' => 'application/vnd.xara',  
  913. 'wiz' => 'application/msword',  
  914. 'wk1' => 'application/x-123',  
  915. 'wmf' => 'windows/metafile',  
  916. 'wml' => 'text/vnd.wap.wml',  
  917. 'wmlc' => 'application/vnd.wap.wmlc',  
  918. 'wmls' => 'text/vnd.wap.wmlscript',  
  919. 'wmlsc' => 'application/vnd.wap.wmlscriptc',  
  920. 'word' => 'application/msword',  
  921. 'wp' => 'application/wordperfect',  
  922. 'wp5' => 
  923. array( 
  924. 0 => 'application/wordperfect',  
  925. 1 => 'application/wordperfect6.0',  
  926. ),  
  927. 'wp6' => 'application/wordperfect',  
  928. 'wpd' => 
  929. array( 
  930. 0 => 'application/wordperfect',  
  931. 1 => 'application/x-wpwin',  
  932. ),  
  933. 'wq1' => 'application/x-lotus',  
  934. 'wri' => 
  935. array( 
  936. 0 => 'application/mswrite',  
  937. 1 => 'application/x-wri',  
  938. ),  
  939. 'wrl' => 
  940. array( 
  941. 0 => 'application/x-world',  
  942. 1 => 'model/vrml',  
  943. 2 => 'x-world/x-vrml',  
  944. ),  
  945. 'wrz' => 
  946. array( 
  947. 0 => 'model/vrml',  
  948. 1 => 'x-world/x-vrml',  
  949. ),  
  950. 'wsc' => 'text/scriplet',  
  951. 'wsrc' => 'application/x-wais-source',  
  952. 'wtk' => 'application/x-wintalk',  
  953. 'xbm' => 
  954. array( 
  955. 0 => 'image/x-xbitmap',  
  956. 1 => 'image/x-xbm',  
  957. 2 => 'image/xbm',  
  958. ),  
  959. 'xdr' => 'video/x-amt-demorun',  
  960. 'xgz' => 'xgl/drawing',  
  961. 'xif' => 'image/vnd.xiff',  
  962. 'xl' => 'application/excel',  
  963. 'xla' => 
  964. array( 
  965. 0 => 'application/excel',  
  966. 1 => 'application/x-excel',  
  967. 2 => 'application/x-msexcel',  
  968. ),  
  969. 'xlb' => 
  970. array( 
  971. 0 => 'application/excel',  
  972. 1 => 'application/vnd.ms-excel',  
  973. 2 => 'application/x-excel',  
  974. ),  
  975. 'xlc' => 
  976. array( 
  977. 0 => 'application/excel',  
  978. 1 => 'application/vnd.ms-excel',  
  979. 2 => 'application/x-excel',  
  980. ),  
  981. 'xld' => 
  982. array( 
  983. 0 => 'application/excel',  
  984. 1 => 'application/x-excel',  
  985. ),  
  986. 'xlk' => 
  987. array( 
  988. 0 => 'application/excel',  
  989. 1 => 'application/x-excel',  
  990. ),  
  991. 'xll' => 
  992. array( 
  993. 0 => 'application/excel',  
  994. 1 => 'application/vnd.ms-excel',  
  995. 2 => 'application/x-excel',  
  996. ),  
  997. 'xlm' => 
  998. array( 
  999. 0 => 'application/excel',  
  1000. 1 => 'application/vnd.ms-excel',  
  1001. 2 => 'application/x-excel',  
  1002. ),  
  1003. 'xls' => 
  1004. array( 
  1005. 0 => 'application/excel',  
  1006. 1 => 'application/vnd.ms-excel',  
  1007. 2 => 'application/x-excel',  
  1008. 3 => 'application/x-msexcel',  
  1009. ),  
  1010. 'xlt' => 
  1011. array( 
  1012. 0 => 'application/excel',  
  1013. 1 => 'application/x-excel',  
  1014. ),  
  1015. 'xlv' => 
  1016. array( 
  1017. 0 => 'application/excel',  
  1018. 1 => 'application/x-excel',  
  1019. ),  
  1020. 'xlw' => 
  1021. array( 
  1022. 0 => 'application/excel',  
  1023. 1 => 'application/vnd.ms-excel',  
  1024. 2 => 'application/x-excel',  
  1025. 3 => 'application/x-msexcel',  
  1026. ),  
  1027. 'xm' => 'audio/xm',  
  1028. 'xml' => 
  1029. array( 
  1030. 0 => 'application/xml',  
  1031. 1 => 'text/xml',  
  1032. ),  
  1033. 'xmz' => 'xgl/movie',  
  1034. 'xpix' => 'application/x-vnd.ls-xpix',  
  1035. 'xpm' => 
  1036. array( 
  1037. 0 => 'image/x-xpixmap',  
  1038. 1 => 'image/xpm',  
  1039. ),  
  1040. 'x-png' => 'image/png',  
  1041. 'xsr' => 'video/x-amt-showrun',  
  1042. 'xwd' => 
  1043. array( 
  1044. 0 => 'image/x-xwd',  
  1045. 1 => 'image/x-xwindowdump',  
  1046. ),  
  1047. 'xyz' => 'chemical/x-pdb',  
  1048. 'z' => 
  1049. array( 
  1050. 0 => 'application/x-compress',  
  1051. 1 => 'application/x-compressed',  
  1052. ),  
  1053. 'zip' => 
  1054. array( 
  1055. 0 => 'application/x-compressed',  
  1056. 1 => 'application/x-zip-compressed',  
  1057. 2 => 'application/zip',  
  1058. 3 => 'multipart/x-zip',  
  1059. ),  
  1060. 'zoo' => 'application/octet-stream',  
  1061. 'zsh' => 'text/x-script.zsh',  
  1062.  
  1063. // Newer MS doc types 
  1064. 'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',  
  1065. 'xltx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.template',  
  1066. 'potx' => 'application/vnd.openxmlformats-officedocument.presentationml.template',  
  1067. 'ppsx' => 'application/vnd.openxmlformats-officedocument.presentationml.slideshow',  
  1068. 'pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation',  
  1069. 'sldx' => 'application/vnd.openxmlformats-officedocument.presentationml.slide',  
  1070. 'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',  
  1071. 'dotx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.template',  
  1072. 'xlsm' => 'application/vnd.ms-excel.addin.macroEnabled.12',  
  1073. 'xlsb' => 'application/vnd.ms-excel.sheet.binary.macroEnabled.12' 
  1074.  
  1075.  
  1076. ); 
  1077.  
  1078. /** 
  1079. public $ext_by_type = array( 
  1080. 'x-world/x-3dmf' => 
  1081. array( 
  1082. 0 => '3dm',  
  1083. 1 => '3dmf',  
  1084. 2 => 'qd3',  
  1085. 3 => 'qd3d',  
  1086. ),  
  1087. 'application/octet-stream' => 
  1088. array( 
  1089. 0 => 'a',  
  1090. 1 => 'arc',  
  1091. 2 => 'arj',  
  1092. 3 => 'bin',  
  1093. 4 => 'com',  
  1094. 5 => 'dump',  
  1095. 6 => 'exe',  
  1096. 7 => 'lha',  
  1097. 8 => 'lhx',  
  1098. 9 => 'lzh',  
  1099. 10 => 'lzx',  
  1100. 11 => 'o',  
  1101. 12 => 'psd',  
  1102. 13 => 'saveme',  
  1103. 14 => 'uu',  
  1104. 15 => 'zoo',  
  1105. ),  
  1106. 'application/x-authorware-bin' => 'aab',  
  1107. 'application/x-authorware-map' => 'aam',  
  1108. 'application/x-authorware-seg' => 'aas',  
  1109. 'text/vnd.abc' => 'abc',  
  1110. 'text/html' => 
  1111. array( 
  1112. 0 => 'acgi',  
  1113. 1 => 'htm',  
  1114. 2 => 'html',  
  1115. 3 => 'htmls',  
  1116. 4 => 'htx',  
  1117. 5 => 'shtml',  
  1118. ),  
  1119. 'video/animaflex' => 'afl',  
  1120. 'application/postscript' => 
  1121. array( 
  1122. 0 => 'ai',  
  1123. 1 => 'eps',  
  1124. 2 => 'ps',  
  1125. ),  
  1126. 'audio/aiff' => 
  1127. array( 
  1128. 0 => 'aif',  
  1129. 1 => 'aifc',  
  1130. 2 => 'aiff',  
  1131. ),  
  1132. 'audio/x-aiff' => 
  1133. array( 
  1134. 0 => 'aif',  
  1135. 1 => 'aifc',  
  1136. 2 => 'aiff',  
  1137. ),  
  1138. 'application/x-aim' => 'aim',  
  1139. 'text/x-audiosoft-intra' => 'aip',  
  1140. 'application/x-navi-animation' => 'ani',  
  1141. 'application/x-nokia-9000-communicator-add-on-software' => 'aos',  
  1142. 'application/mime' => 'aps',  
  1143. 'application/arj' => 'arj',  
  1144. 'image/x-jg' => 'art',  
  1145. 'video/x-ms-asf' => 
  1146. array( 
  1147. 0 => 'asf',  
  1148. 1 => 'asx',  
  1149. ),  
  1150. 'text/x-asm' => 
  1151. array( 
  1152. 0 => 'asm',  
  1153. 1 => 's',  
  1154. ),  
  1155. 'text/asp' => 'asp',  
  1156. 'application/x-mplayer2' => 'asx',  
  1157. 'video/x-ms-asf-plugin' => 'asx',  
  1158. 'audio/basic' => 
  1159. array( 
  1160. 0 => 'au',  
  1161. 1 => 'snd',  
  1162. ),  
  1163. 'audio/x-au' => 'au',  
  1164. 'application/x-troff-msvideo' => 'avi',  
  1165. 'video/avi' => 'avi',  
  1166. 'video/msvideo' => 'avi',  
  1167. 'video/x-msvideo' => 'avi',  
  1168. 'video/avs-video' => 'avs',  
  1169. 'application/x-bcpio' => 'bcpio',  
  1170. 'application/mac-binary' => 'bin',  
  1171. 'application/macbinary' => 'bin',  
  1172. 'application/x-binary' => 'bin',  
  1173. 'application/x-macbinary' => 'bin',  
  1174. 'image/bmp' => 
  1175. array( 
  1176. 0 => 'bm',  
  1177. 1 => 'bmp',  
  1178. ),  
  1179. 'image/x-windows-bmp' => 'bmp',  
  1180. 'application/book' => 
  1181. array( 
  1182. 0 => 'boo',  
  1183. 1 => 'book',  
  1184. ),  
  1185. 'application/x-bzip2' => 
  1186. array( 
  1187. 0 => 'boz',  
  1188. 1 => 'bz2',  
  1189. ),  
  1190. 'application/x-bsh' => 
  1191. array( 
  1192. 0 => 'bsh',  
  1193. 1 => 'sh',  
  1194. 2 => 'shar',  
  1195. ),  
  1196. 'application/x-bzip' => 'bz',  
  1197. 'text/plain' => 
  1198. array( 
  1199. 0 => 'c',  
  1200. 1 => 'c++',  
  1201. 2 => 'cc',  
  1202. 3 => 'com',  
  1203. 4 => 'conf',  
  1204. 5 => 'cxx',  
  1205. 6 => 'def',  
  1206. 7 => 'f',  
  1207. 8 => 'f90',  
  1208. 9 => 'for',  
  1209. 10 => 'g',  
  1210. 11 => 'h',  
  1211. 12 => 'hh',  
  1212. 13 => 'idc',  
  1213. 14 => 'jav',  
  1214. 15 => 'java',  
  1215. 16 => 'list',  
  1216. 17 => 'log',  
  1217. 18 => 'lst',  
  1218. 19 => 'm',  
  1219. 20 => 'mar',  
  1220. 21 => 'pl',  
  1221. 22 => 'sdml',  
  1222. 23 => 'text',  
  1223. 24 => 'txt',  
  1224. ),  
  1225. 'text/x-c' => 
  1226. array( 
  1227. 0 => 'c',  
  1228. 1 => 'cc',  
  1229. 2 => 'cpp',  
  1230. ),  
  1231. 'application/vnd.ms-pki.seccat' => 'cat',  
  1232. 'application/clariscad' => 'ccad',  
  1233. 'application/x-cocoa' => 'cco',  
  1234. 'application/cdf' => 'cdf',  
  1235. 'application/x-cdf' => 'cdf',  
  1236. 'application/x-netcdf' => 
  1237. array( 
  1238. 0 => 'cdf',  
  1239. 1 => 'nc',  
  1240. ),  
  1241. 'application/pkix-cert' => 
  1242. array( 
  1243. 0 => 'cer',  
  1244. 1 => 'crt',  
  1245. ),  
  1246. 'application/x-x509-ca-cert' => 
  1247. array( 
  1248. 0 => 'cer',  
  1249. 1 => 'crt',  
  1250. 2 => 'der',  
  1251. ),  
  1252. 'application/x-chat' => 
  1253. array( 
  1254. 0 => 'cha',  
  1255. 1 => 'chat',  
  1256. ),  
  1257. 'application/java' => 'class',  
  1258. 'application/java-byte-code' => 'class',  
  1259. 'application/x-java-class' => 'class',  
  1260. 'application/x-cpio' => 'cpio',  
  1261. 'application/mac-compactpro' => 'cpt',  
  1262. 'application/x-compactpro' => 'cpt',  
  1263. 'application/x-cpt' => 'cpt',  
  1264. 'application/pkcs-crl' => 'crl',  
  1265. 'application/pkix-crl' => 'crl',  
  1266. 'application/x-x509-user-cert' => 'crt',  
  1267. 'application/x-csh' => 'csh',  
  1268. 'text/x-script.csh' => 'csh',  
  1269. 'application/x-pointplus' => 'css',  
  1270. 'text/css' => 'css',  
  1271. 'application/x-director' => 
  1272. array( 
  1273. 0 => 'dcr',  
  1274. 1 => 'dir',  
  1275. 2 => 'dxr',  
  1276. ),  
  1277. 'application/x-deepv' => 'deepv',  
  1278. 'video/x-dv' => 
  1279. array( 
  1280. 0 => 'dif',  
  1281. 1 => 'dv',  
  1282. ),  
  1283. 'video/dl' => 'dl',  
  1284. 'video/x-dl' => 'dl',  
  1285. 'application/msword' => 
  1286. array( 
  1287. 0 => 'doc',  
  1288. 1 => 'dot',  
  1289. 2 => 'w6w',  
  1290. 3 => 'wiz',  
  1291. 4 => 'word',  
  1292. ),  
  1293. 'application/commonground' => 'dp',  
  1294. 'application/drafting' => 'drw',  
  1295. 'application/x-dvi' => 'dvi',  
  1296. 'drawing/x-dwf (old)' => 'dwf',  
  1297. 'model/vnd.dwf' => 'dwf',  
  1298. 'application/acad' => 'dwg',  
  1299. 'image/vnd.dwg' => 
  1300. array( 
  1301. 0 => 'dwg',  
  1302. 1 => 'dxf',  
  1303. 2 => 'svf',  
  1304. ),  
  1305. 'image/x-dwg' => 
  1306. array( 
  1307. 0 => 'dwg',  
  1308. 1 => 'dxf',  
  1309. 2 => 'svf',  
  1310. ),  
  1311. 'application/dxf' => 'dxf',  
  1312. 'text/x-script.elisp' => 'el',  
  1313. 'application/x-bytecode.elisp (compiled elisp)' => 'elc',  
  1314. 'application/x-elc' => 'elc',  
  1315. 'application/x-envoy' => 
  1316. array( 
  1317. 0 => 'env',  
  1318. 1 => 'evy',  
  1319. ),  
  1320. 'application/x-esrehber' => 'es',  
  1321. 'text/x-setext' => 'etx',  
  1322. 'application/envoy' => 'evy',  
  1323. 'text/x-fortran' => 
  1324. array( 
  1325. 0 => 'f',  
  1326. 1 => 'f77',  
  1327. 2 => 'f90',  
  1328. 3 => 'for',  
  1329. ),  
  1330. 'application/vnd.fdf' => 'fdf',  
  1331. 'application/fractals' => 'fif',  
  1332. 'image/fif' => 'fif',  
  1333. 'video/fli' => 'fli',  
  1334. 'video/x-fli' => 'fli',  
  1335. 'image/florian' => 
  1336. array( 
  1337. 0 => 'flo',  
  1338. 1 => 'turbot',  
  1339. ),  
  1340. 'text/vnd.fmi.flexstor' => 'flx',  
  1341. 'video/x-atomic3d-feature' => 'fmf',  
  1342. 'image/vnd.fpx' => 'fpx',  
  1343. 'image/vnd.net-fpx' => 'fpx',  
  1344. 'application/freeloader' => 'frl',  
  1345. 'audio/make' => 
  1346. array( 
  1347. 0 => 'funk',  
  1348. 1 => 'my',  
  1349. 2 => 'pfunk',  
  1350. ),  
  1351. 'image/g3fax' => 'g3',  
  1352. 'image/gif' => 'gif',  
  1353. 'video/gl' => 'gl',  
  1354. 'video/x-gl' => 'gl',  
  1355. 'audio/x-gsm' => 
  1356. array( 
  1357. 0 => 'gsd',  
  1358. 1 => 'gsm',  
  1359. ),  
  1360. 'application/x-gsp' => 'gsp',  
  1361. 'application/x-gss' => 'gss',  
  1362. 'application/x-gtar' => 'gtar',  
  1363. 'application/x-compressed' => 
  1364. array( 
  1365. 0 => 'gz',  
  1366. 1 => 'tgz',  
  1367. 2 => 'z',  
  1368. 3 => 'zip',  
  1369. ),  
  1370. 'application/x-gzip' => 
  1371. array( 
  1372. 0 => 'gz',  
  1373. 1 => 'gzip',  
  1374. ),  
  1375. 'multipart/x-gzip' => 'gzip',  
  1376. 'text/x-h' => 
  1377. array( 
  1378. 0 => 'h',  
  1379. 1 => 'hh',  
  1380. ),  
  1381. 'application/x-hdf' => 'hdf',  
  1382. 'application/x-helpfile' => 
  1383. array( 
  1384. 0 => 'help',  
  1385. 1 => 'hlp',  
  1386. ),  
  1387. 'application/vnd.hp-hpgl' => 
  1388. array( 
  1389. 0 => 'hgl',  
  1390. 1 => 'hpg',  
  1391. 2 => 'hpgl',  
  1392. ),  
  1393. 'text/x-script' => 'hlb',  
  1394. 'application/hlp' => 'hlp',  
  1395. 'application/x-winhelp' => 'hlp',  
  1396. 'application/binhex' => 'hqx',  
  1397. 'application/binhex4' => 'hqx',  
  1398. 'application/mac-binhex' => 'hqx',  
  1399. 'application/mac-binhex40' => 'hqx',  
  1400. 'application/x-binhex40' => 'hqx',  
  1401. 'application/x-mac-binhex40' => 'hqx',  
  1402. 'application/hta' => 'hta',  
  1403. 'text/x-component' => 'htc',  
  1404. 'text/webviewhtml' => 'htt',  
  1405. 'x-conference/x-cooltalk' => 'ice',  
  1406. 'image/x-icon' => 'ico',  
  1407. 'image/ief' => 
  1408. array( 
  1409. 0 => 'ief',  
  1410. 1 => 'iefs',  
  1411. ),  
  1412. 'application/iges' => 
  1413. array( 
  1414. 0 => 'iges',  
  1415. 1 => 'igs',  
  1416. ),  
  1417. 'model/iges' => 
  1418. array( 
  1419. 0 => 'iges',  
  1420. 1 => 'igs',  
  1421. ),  
  1422. 'application/x-ima' => 'ima',  
  1423. 'application/x-httpd-imap' => 'imap',  
  1424. 'application/inf' => 'inf',  
  1425. 'application/x-internett-signup' => 'ins',  
  1426. 'application/x-ip2' => 'ip',  
  1427. 'video/x-isvideo' => 'isu',  
  1428. 'audio/it' => 'it',  
  1429. 'application/x-inventor' => 'iv',  
  1430. 'i-world/i-vrml' => 'ivr',  
  1431. 'application/x-livescreen' => 'ivy',  
  1432. 'audio/x-jam' => 'jam',  
  1433. 'text/x-java-source' => 
  1434. array( 
  1435. 0 => 'jav',  
  1436. 1 => 'java',  
  1437. ),  
  1438. 'application/x-java-commerce' => 'jcm',  
  1439. 'image/jpeg' => 
  1440. array( 
  1441. 0 => 'jfif',  
  1442. 1 => 'jfif-tbnl',  
  1443. 2 => 'jpe',  
  1444. 3 => 'jpeg',  
  1445. 4 => 'jpg',  
  1446. ),  
  1447. 'image/pjpeg' => 
  1448. array( 
  1449. 0 => 'jfif',  
  1450. 1 => 'jpe',  
  1451. 2 => 'jpeg',  
  1452. 3 => 'jpg',  
  1453. ),  
  1454. 'image/x-jps' => 'jps',  
  1455. 'application/x-javascript' => 'js',  
  1456. 'image/jutvision' => 'jut',  
  1457. 'audio/midi' => 
  1458. array( 
  1459. 0 => 'kar',  
  1460. 1 => 'mid',  
  1461. 2 => 'midi',  
  1462. ),  
  1463. 'music/x-karaoke' => 'kar',  
  1464. 'application/x-ksh' => 'ksh',  
  1465. 'text/x-script.ksh' => 'ksh',  
  1466. 'audio/nspaudio' => 
  1467. array( 
  1468. 0 => 'la',  
  1469. 1 => 'lma',  
  1470. ),  
  1471. 'audio/x-nspaudio' => 
  1472. array( 
  1473. 0 => 'la',  
  1474. 1 => 'lma',  
  1475. ),  
  1476. 'audio/x-liveaudio' => 'lam',  
  1477. 'application/x-latex' => 
  1478. array( 
  1479. 0 => 'latex',  
  1480. 1 => 'ltx',  
  1481. ),  
  1482. 'application/lha' => 'lha',  
  1483. 'application/x-lha' => 'lha',  
  1484. 'application/x-lisp' => 'lsp',  
  1485. 'text/x-script.lisp' => 'lsp',  
  1486. 'text/x-la-asf' => 'lsx',  
  1487. 'application/x-lzh' => 'lzh',  
  1488. 'application/lzx' => 'lzx',  
  1489. 'application/x-lzx' => 'lzx',  
  1490. 'text/x-m' => 'm',  
  1491. 'video/mpeg' => 
  1492. array( 
  1493. 0 => 'm1v',  
  1494. 1 => 'm2v',  
  1495. 2 => 'mp2',  
  1496. 3 => 'mp3',  
  1497. 4 => 'mpa',  
  1498. 5 => 'mpe',  
  1499. 6 => 'mpeg',  
  1500. 7 => 'mpg',  
  1501. ),  
  1502. 'audio/mpeg' => 
  1503. array( 
  1504. 0 => 'm2a',  
  1505. 1 => 'mp2',  
  1506. 2 => 'mpa',  
  1507. 3 => 'mpg',  
  1508. 4 => 'mpga',  
  1509. ),  
  1510. 'audio/x-mpequrl' => 'm3u',  
  1511. 'application/x-troff-man' => 'man',  
  1512. 'application/x-navimap' => 'map',  
  1513. 'application/mbedlet' => 'mbd',  
  1514. 'application/x-magic-cap-package-1.0' => 'mc$',  
  1515. 'application/mcad' => 'mcd',  
  1516. 'application/x-mathcad' => 'mcd',  
  1517. 'image/vasa' => 'mcf',  
  1518. 'text/mcf' => 'mcf',  
  1519. 'application/netmc' => 'mcp',  
  1520. 'application/x-troff-me' => 'me',  
  1521. 'message/rfc822' => 
  1522. array( 
  1523. 0 => 'mht',  
  1524. 1 => 'mhtml',  
  1525. 2 => 'mime',  
  1526. ),  
  1527. 'application/x-midi' => 
  1528. array( 
  1529. 0 => 'mid',  
  1530. 1 => 'midi',  
  1531. ),  
  1532. 'audio/x-mid' => 
  1533. array( 
  1534. 0 => 'mid',  
  1535. 1 => 'midi',  
  1536. ),  
  1537. 'audio/x-midi' => 
  1538. array( 
  1539. 0 => 'mid',  
  1540. 1 => 'midi',  
  1541. ),  
  1542. 'music/crescendo' => 
  1543. array( 
  1544. 0 => 'mid',  
  1545. 1 => 'midi',  
  1546. ),  
  1547. 'x-music/x-midi' => 
  1548. array( 
  1549. 0 => 'mid',  
  1550. 1 => 'midi',  
  1551. ),  
  1552. 'application/x-frame' => 'mif',  
  1553. 'application/x-mif' => 'mif',  
  1554. 'www/mime' => 'mime',  
  1555. 'audio/x-vnd.audioexplosion.mjuicemediafile' => 'mjf',  
  1556. 'video/x-motion-jpeg' => 'mjpg',  
  1557. 'application/base64' => 
  1558. array( 
  1559. 0 => 'mm',  
  1560. 1 => 'mme',  
  1561. ),  
  1562. 'application/x-meme' => 'mm',  
  1563. 'audio/mod' => 'mod',  
  1564. 'audio/x-mod' => 'mod',  
  1565. 'video/quicktime' => 
  1566. array( 
  1567. 0 => 'moov',  
  1568. 1 => 'mov',  
  1569. 2 => 'qt',  
  1570. ),  
  1571. 'video/x-sgi-movie' => 
  1572. array( 
  1573. 0 => 'movie',  
  1574. 1 => 'mv',  
  1575. ),  
  1576. 'audio/x-mpeg' => 'mp2',  
  1577. 'video/x-mpeg' => 
  1578. array( 
  1579. 0 => 'mp2',  
  1580. 1 => 'mp3',  
  1581. ),  
  1582. 'video/x-mpeq2a' => 'mp2',  
  1583. 'audio/mpeg3' => 'mp3',  
  1584. 'audio/x-mpeg-3' => 'mp3',  
  1585. 'application/x-project' => 
  1586. array( 
  1587. 0 => 'mpc',  
  1588. 1 => 'mpt',  
  1589. 2 => 'mpv',  
  1590. 3 => 'mpx',  
  1591. ),  
  1592. 'application/vnd.ms-project' => 'mpp',  
  1593. 'application/marc' => 'mrc',  
  1594. 'application/x-troff-ms' => 'ms',  
  1595. 'application/x-vnd.audioexplosion.mzz' => 'mzz',  
  1596. 'image/naplps' => 
  1597. array( 
  1598. 0 => 'nap',  
  1599. 1 => 'naplps',  
  1600. ),  
  1601. 'application/vnd.nokia.configuration-message' => 'ncm',  
  1602. 'image/x-niff' => 
  1603. array( 
  1604. 0 => 'nif',  
  1605. 1 => 'niff',  
  1606. ),  
  1607. 'application/x-mix-transfer' => 'nix',  
  1608. 'application/x-conference' => 'nsc',  
  1609. 'application/x-navidoc' => 'nvd',  
  1610. 'application/oda' => 'oda',  
  1611. 'application/x-omc' => 'omc',  
  1612. 'application/x-omcdatamaker' => 'omcd',  
  1613. 'application/x-omcregerator' => 'omcr',  
  1614. 'text/x-pascal' => 'p',  
  1615. 'application/pkcs10' => 'p10',  
  1616. 'application/x-pkcs10' => 'p10',  
  1617. 'application/pkcs-12' => 'p12',  
  1618. 'application/x-pkcs12' => 'p12',  
  1619. 'application/x-pkcs7-signature' => 'p7a',  
  1620. 'application/pkcs7-mime' => 
  1621. array( 
  1622. 0 => 'p7c',  
  1623. 1 => 'p7m',  
  1624. ),  
  1625. 'application/x-pkcs7-mime' => 
  1626. array( 
  1627. 0 => 'p7c',  
  1628. 1 => 'p7m',  
  1629. ),  
  1630. 'application/x-pkcs7-certreqresp' => 'p7r',  
  1631. 'application/pkcs7-signature' => 'p7s',  
  1632. 'application/pro_eng' => 
  1633. array( 
  1634. 0 => 'part',  
  1635. 1 => 'prt',  
  1636. ),  
  1637. 'text/pascal' => 'pas',  
  1638. 'image/x-portable-bitmap' => 'pbm',  
  1639. 'application/vnd.hp-pcl' => 'pcl',  
  1640. 'application/x-pcl' => 'pcl',  
  1641. 'image/x-pict' => 'pct',  
  1642. 'image/x-pcx' => 'pcx',  
  1643. 'chemical/x-pdb' => 
  1644. array( 
  1645. 0 => 'pdb',  
  1646. 1 => 'xyz',  
  1647. ),  
  1648. 'application/pdf' => 'pdf',  
  1649. 'audio/make.my.funk' => 'pfunk',  
  1650. 'image/x-portable-graymap' => 'pgm',  
  1651. 'image/x-portable-greymap' => 'pgm',  
  1652. 'image/pict' => 
  1653. array( 
  1654. 0 => 'pic',  
  1655. 1 => 'pict',  
  1656. ),  
  1657. 'application/x-newton-compatible-pkg' => 'pkg',  
  1658. 'application/vnd.ms-pki.pko' => 'pko',  
  1659. 'text/x-script.perl' => 'pl',  
  1660. 'application/x-pixclscript' => 'plx',  
  1661. 'image/x-xpixmap' => 
  1662. array( 
  1663. 0 => 'pm',  
  1664. 1 => 'xpm',  
  1665. ),  
  1666. 'text/x-script.perl-module' => 'pm',  
  1667. 'application/x-pagemaker' => 
  1668. array( 
  1669. 0 => 'pm4',  
  1670. 1 => 'pm5',  
  1671. ),  
  1672. 'image/png' => 
  1673. array( 
  1674. 0 => 'png',  
  1675. 1 => 'x-png',  
  1676. ),  
  1677. 'application/x-portable-anymap' => 'pnm',  
  1678. 'image/x-portable-anymap' => 'pnm',  
  1679. 'application/mspowerpoint' => 
  1680. array( 
  1681. 0 => 'pot',  
  1682. 1 => 'pps',  
  1683. 2 => 'ppt',  
  1684. 3 => 'ppz',  
  1685. ),  
  1686. 'application/vnd.ms-powerpoint' => 
  1687. array( 
  1688. 0 => 'pot',  
  1689. 1 => 'ppa',  
  1690. 2 => 'pps',  
  1691. 3 => 'ppt',  
  1692. 4 => 'pwz',  
  1693. ),  
  1694. 'model/x-pov' => 'pov',  
  1695. 'image/x-portable-pixmap' => 'ppm',  
  1696. 'application/powerpoint' => 'ppt',  
  1697. 'application/x-mspowerpoint' => 'ppt',  
  1698. 'application/x-freelance' => 'pre',  
  1699. 'paleovu/x-pv' => 'pvu',  
  1700. 'text/x-script.phyton' => 'py',  
  1701. 'applicaiton/x-bytecode.python' => 'pyc',  
  1702. 'audio/vnd.qcelp' => 'qcp',  
  1703. 'image/x-quicktime' => 
  1704. array( 
  1705. 0 => 'qif',  
  1706. 1 => 'qti',  
  1707. 2 => 'qtif',  
  1708. ),  
  1709. 'video/x-qtc' => 'qtc',  
  1710. 'audio/x-pn-realaudio' => 
  1711. array( 
  1712. 0 => 'ra',  
  1713. 1 => 'ram',  
  1714. 2 => 'rm',  
  1715. 3 => 'rmm',  
  1716. 4 => 'rmp',  
  1717. ),  
  1718. 'audio/x-pn-realaudio-plugin' => 
  1719. array( 
  1720. 0 => 'ra',  
  1721. 1 => 'rmp',  
  1722. 2 => 'rpm',  
  1723. ),  
  1724. 'audio/x-realaudio' => 'ra',  
  1725. 'application/x-cmu-raster' => 'ras',  
  1726. 'image/cmu-raster' => 
  1727. array( 
  1728. 0 => 'ras',  
  1729. 1 => 'rast',  
  1730. ),  
  1731. 'image/x-cmu-raster' => 'ras',  
  1732. 'text/x-script.rexx' => 'rexx',  
  1733. 'image/vnd.rn-realflash' => 'rf',  
  1734. 'image/x-rgb' => 'rgb',  
  1735. 'application/vnd.rn-realmedia' => 'rm',  
  1736. 'audio/mid' => 'rmi',  
  1737. 'application/ringing-tones' => 'rng',  
  1738. 'application/vnd.nokia.ringing-tone' => 'rng',  
  1739. 'application/vnd.rn-realplayer' => 'rnx',  
  1740. 'application/x-troff' => 
  1741. array( 
  1742. 0 => 'roff',  
  1743. 1 => 't',  
  1744. 2 => 'tr',  
  1745. ),  
  1746. 'image/vnd.rn-realpix' => 'rp',  
  1747. 'text/richtext' => 
  1748. array( 
  1749. 0 => 'rt',  
  1750. 1 => 'rtf',  
  1751. 2 => 'rtx',  
  1752. ),  
  1753. 'text/vnd.rn-realtext' => 'rt',  
  1754. 'application/rtf' => 
  1755. array( 
  1756. 0 => 'rtf',  
  1757. 1 => 'rtx',  
  1758. ),  
  1759. 'application/x-rtf' => 'rtf',  
  1760. 'video/vnd.rn-realvideo' => 'rv',  
  1761. 'audio/s3m' => 's3m',  
  1762. 'application/x-tbook' => 
  1763. array( 
  1764. 0 => 'sbk',  
  1765. 1 => 'tbk',  
  1766. ),  
  1767. 'application/x-lotusscreencam' => 'scm',  
  1768. 'text/x-script.guile' => 'scm',  
  1769. 'text/x-script.scheme' => 'scm',  
  1770. 'video/x-scm' => 'scm',  
  1771. 'application/sdp' => 'sdp',  
  1772. 'application/x-sdp' => 'sdp',  
  1773. 'application/sounder' => 'sdr',  
  1774. 'application/sea' => 'sea',  
  1775. 'application/x-sea' => 'sea',  
  1776. 'application/set' => 'set',  
  1777. 'text/sgml' => 
  1778. array( 
  1779. 0 => 'sgm',  
  1780. 1 => 'sgml',  
  1781. ),  
  1782. 'text/x-sgml' => 
  1783. array( 
  1784. 0 => 'sgm',  
  1785. 1 => 'sgml',  
  1786. ),  
  1787. 'application/x-sh' => 'sh',  
  1788. 'application/x-shar' => 
  1789. array( 
  1790. 0 => 'sh',  
  1791. 1 => 'shar',  
  1792. ),  
  1793. 'text/x-script.sh' => 'sh',  
  1794. 'text/x-server-parsed-html' => 
  1795. array( 
  1796. 0 => 'shtml',  
  1797. 1 => 'ssi',  
  1798. ),  
  1799. 'audio/x-psid' => 'sid',  
  1800. 'application/x-sit' => 'sit',  
  1801. 'application/x-stuffit' => 'sit',  
  1802. 'application/x-koan' => 
  1803. array( 
  1804. 0 => 'skd',  
  1805. 1 => 'skm',  
  1806. 2 => 'skp',  
  1807. 3 => 'skt',  
  1808. ),  
  1809. 'application/x-seelogo' => 'sl',  
  1810. 'application/smil' => 
  1811. array( 
  1812. 0 => 'smi',  
  1813. 1 => 'smil',  
  1814. ),  
  1815. 'audio/x-adpcm' => 'snd',  
  1816. 'application/solids' => 'sol',  
  1817. 'application/x-pkcs7-certificates' => 'spc',  
  1818. 'text/x-speech' => 
  1819. array( 
  1820. 0 => 'spc',  
  1821. 1 => 'talk',  
  1822. ),  
  1823. 'application/futuresplash' => 'spl',  
  1824. 'application/x-sprite' => 
  1825. array( 
  1826. 0 => 'spr',  
  1827. 1 => 'sprite',  
  1828. ),  
  1829. 'application/x-wais-source' => 
  1830. array( 
  1831. 0 => 'src',  
  1832. 1 => 'wsrc',  
  1833. ),  
  1834. 'application/streamingmedia' => 'ssm',  
  1835. 'application/vnd.ms-pki.certstore' => 'sst',  
  1836. 'application/step' => 
  1837. array( 
  1838. 0 => 'step',  
  1839. 1 => 'stp',  
  1840. ),  
  1841. 'application/sla' => 'stl',  
  1842. 'application/vnd.ms-pki.stl' => 'stl',  
  1843. 'application/x-navistyle' => 'stl',  
  1844. 'application/x-sv4cpio' => 'sv4cpio',  
  1845. 'application/x-sv4crc' => 'sv4crc',  
  1846. 'application/x-world' => 
  1847. array( 
  1848. 0 => 'svr',  
  1849. 1 => 'wrl',  
  1850. ),  
  1851. 'x-world/x-svr' => 'svr',  
  1852. 'application/x-shockwave-flash' => 'swf',  
  1853. 'application/x-tar' => 'tar',  
  1854. 'application/toolbook' => 'tbk',  
  1855. 'application/x-tcl' => 'tcl',  
  1856. 'text/x-script.tcl' => 'tcl',  
  1857. 'text/x-script.tcsh' => 'tcsh',  
  1858. 'application/x-tex' => 'tex',  
  1859. 'application/x-texinfo' => 
  1860. array( 
  1861. 0 => 'texi',  
  1862. 1 => 'texinfo',  
  1863. ),  
  1864. 'application/plain' => 'text',  
  1865. 'application/gnutar' => 'tgz',  
  1866. 'image/tiff' => 
  1867. array( 
  1868. 0 => 'tif',  
  1869. 1 => 'tiff',  
  1870. ),  
  1871. 'image/x-tiff' => 
  1872. array( 
  1873. 0 => 'tif',  
  1874. 1 => 'tiff',  
  1875. ),  
  1876. 'audio/tsp-audio' => 'tsi',  
  1877. 'application/dsptype' => 'tsp',  
  1878. 'audio/tsplayer' => 'tsp',  
  1879. 'text/tab-separated-values' => 'tsv',  
  1880. 'text/x-uil' => 'uil',  
  1881. 'text/uri-list' => 
  1882. array( 
  1883. 0 => 'uni',  
  1884. 1 => 'unis',  
  1885. 2 => 'uri',  
  1886. 3 => 'uris',  
  1887. ),  
  1888. 'application/i-deas' => 'unv',  
  1889. 'application/x-ustar' => 'ustar',  
  1890. 'multipart/x-ustar' => 'ustar',  
  1891. 'text/x-uuencode' => 
  1892. array( 
  1893. 0 => 'uu',  
  1894. 1 => 'uue',  
  1895. ),  
  1896. 'application/x-cdlink' => 'vcd',  
  1897. 'text/x-vcalendar' => 'vcs',  
  1898. 'application/vda' => 'vda',  
  1899. 'video/vdo' => 'vdo',  
  1900. 'application/groupwise' => 'vew',  
  1901. 'video/vivo' => 
  1902. array( 
  1903. 0 => 'viv',  
  1904. 1 => 'vivo',  
  1905. ),  
  1906. 'video/vnd.vivo' => 
  1907. array( 
  1908. 0 => 'viv',  
  1909. 1 => 'vivo',  
  1910. ),  
  1911. 'application/vocaltec-media-desc' => 'vmd',  
  1912. 'application/vocaltec-media-file' => 'vmf',  
  1913. 'audio/voc' => 'voc',  
  1914. 'audio/x-voc' => 'voc',  
  1915. 'video/vosaic' => 'vos',  
  1916. 'audio/voxware' => 'vox',  
  1917. 'audio/x-twinvq-plugin' => 
  1918. array( 
  1919. 0 => 'vqe',  
  1920. 1 => 'vql',  
  1921. ),  
  1922. 'audio/x-twinvq' => 'vqf',  
  1923. 'application/x-vrml' => 'vrml',  
  1924. 'model/vrml' => 
  1925. array( 
  1926. 0 => 'vrml',  
  1927. 1 => 'wrl',  
  1928. 2 => 'wrz',  
  1929. ),  
  1930. 'x-world/x-vrml' => 
  1931. array( 
  1932. 0 => 'vrml',  
  1933. 1 => 'wrl',  
  1934. 2 => 'wrz',  
  1935. ),  
  1936. 'x-world/x-vrt' => 'vrt',  
  1937. 'application/x-visio' => 
  1938. array( 
  1939. 0 => 'vsd',  
  1940. 1 => 'vst',  
  1941. 2 => 'vsw',  
  1942. ),  
  1943. 'application/wordperfect6.0' => 
  1944. array( 
  1945. 0 => 'w60',  
  1946. 1 => 'wp5',  
  1947. ),  
  1948. 'application/wordperfect6.1' => 'w61',  
  1949. 'audio/wav' => 'wav',  
  1950. 'audio/x-wav' => 'wav',  
  1951. 'application/x-qpro' => 'wb1',  
  1952. 'image/vnd.wap.wbmp' => 'wbmp',  
  1953. 'application/vnd.xara' => 'web',  
  1954. 'application/x-123' => 'wk1',  
  1955. 'windows/metafile' => 'wmf',  
  1956. 'text/vnd.wap.wml' => 'wml',  
  1957. 'application/vnd.wap.wmlc' => 'wmlc',  
  1958. 'text/vnd.wap.wmlscript' => 'wmls',  
  1959. 'application/vnd.wap.wmlscriptc' => 'wmlsc',  
  1960. 'application/wordperfect' => 
  1961. array( 
  1962. 0 => 'wp',  
  1963. 1 => 'wp5',  
  1964. 2 => 'wp6',  
  1965. 3 => 'wpd',  
  1966. ),  
  1967. 'application/x-wpwin' => 'wpd',  
  1968. 'application/x-lotus' => 'wq1',  
  1969. 'application/mswrite' => 'wri',  
  1970. 'application/x-wri' => 'wri',  
  1971. 'text/scriplet' => 'wsc',  
  1972. 'application/x-wintalk' => 'wtk',  
  1973. 'image/x-xbitmap' => 'xbm',  
  1974. 'image/x-xbm' => 'xbm',  
  1975. 'image/xbm' => 'xbm',  
  1976. 'video/x-amt-demorun' => 'xdr',  
  1977. 'xgl/drawing' => 'xgz',  
  1978. 'image/vnd.xiff' => 'xif',  
  1979. 'application/excel' => 
  1980. array( 
  1981. 0 => 'xl',  
  1982. 1 => 'xla',  
  1983. 2 => 'xlb',  
  1984. 3 => 'xlc',  
  1985. 4 => 'xld',  
  1986. 5 => 'xlk',  
  1987. 6 => 'xll',  
  1988. 7 => 'xlm',  
  1989. 8 => 'xls',  
  1990. 9 => 'xlt',  
  1991. 10 => 'xlv',  
  1992. 11 => 'xlw',  
  1993. ),  
  1994. 'application/x-excel' => 
  1995. array( 
  1996. 0 => 'xla',  
  1997. 1 => 'xlb',  
  1998. 2 => 'xlc',  
  1999. 3 => 'xld',  
  2000. 4 => 'xlk',  
  2001. 5 => 'xll',  
  2002. 6 => 'xlm',  
  2003. 7 => 'xls',  
  2004. 8 => 'xlt',  
  2005. 9 => 'xlv',  
  2006. 10 => 'xlw',  
  2007. ),  
  2008. 'application/x-msexcel' => 
  2009. array( 
  2010. 0 => 'xla',  
  2011. 1 => 'xls',  
  2012. 2 => 'xlw',  
  2013. ),  
  2014. 'application/vnd.ms-excel' => 
  2015. array( 
  2016. 0 => 'xlb',  
  2017. 1 => 'xlc',  
  2018. 2 => 'xll',  
  2019. 3 => 'xlm',  
  2020. 4 => 'xls',  
  2021. 5 => 'xlw',  
  2022. ),  
  2023. 'audio/xm' => 'xm',  
  2024. 'application/xml' => 'xml',  
  2025. 'text/xml' => 'xml',  
  2026. 'xgl/movie' => 'xmz',  
  2027. 'application/x-vnd.ls-xpix' => 'xpix',  
  2028. 'image/xpm' => 'xpm',  
  2029. 'video/x-amt-showrun' => 'xsr',  
  2030. 'image/x-xwd' => 'xwd',  
  2031. 'image/x-xwindowdump' => 'xwd',  
  2032. 'application/x-compress' => 'z',  
  2033. 'application/x-zip-compressed' => 'zip',  
  2034. 'application/zip' => 'zip',  
  2035. 'multipart/x-zip' => 'zip',  
  2036. 'text/x-script.zsh' => 'zsh',  
  2037. ); 
  2038. */ 
  2039. public function get_type_by_filename($filename) { 
  2040. $ext = substr(strrchr($filename, '.'), 1); 
  2041. $mime = $this->get_type_by_ext($ext); 
  2042. if (is_array($mime)) { 
  2043. return $mime[0]; 
  2044. return $mime; 
  2045.  
  2046. public function get_type_by_ext($ext) { 
  2047.  
  2048. $ext = strtolower($ext); 
  2049. if (!isset($this->type_by_ext[$ext])) { 
  2050. return false; 
  2051.  
  2052. return $this->type_by_ext[$ext]; 
  2053.  
  2054. /** 
  2055. public function get_ext_by_type($type) { 
  2056.   
  2057. $type = strtolower($type); 
  2058. if (!isset($this->ext_by_type[$type])) { 
  2059. return false; 
  2060.   
  2061. return $this->ext_by_type[$type]; 
  2062. */