PageRenderTime 26ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/oc-includes/osclass/mimes.php

https://code.google.com/
PHP | 114 lines | 95 code | 3 blank | 16 comment | 0 complexity | ead8eab2e47b04369baeec3c66ed453d MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1
  1. <?php
  2. /**
  3. * OSClass รข&#x20AC;&#x201C; software for creating and publishing online classified advertising platforms
  4. *
  5. * Copyright (C) 2010 OSCLASS
  6. *
  7. * This program is free software: you can redistribute it and/or modify it under the terms
  8. * of the GNU Affero General Public License as published by the Free Software Foundation,
  9. * either version 3 of the License, or (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
  12. * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  13. * See the GNU Affero General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU Affero General Public
  16. * License along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. $mimes = array( 'hqx' => 'application/mac-binhex40',
  19. 'cpt' => 'application/mac-compactpro',
  20. 'csv' => array('text/x-comma-separated-values', 'text/comma-separated-values', 'application/octet-stream', 'application/vnd.ms-excel', 'text/x-csv', 'text/csv', 'application/csv', 'application/excel', 'application/vnd.msexcel'),
  21. 'bin' => 'application/macbinary',
  22. 'dms' => 'application/octet-stream',
  23. 'lha' => 'application/octet-stream',
  24. 'lzh' => 'application/octet-stream',
  25. 'exe' => array('application/octet-stream', 'application/x-msdownload'),
  26. 'class' => 'application/octet-stream',
  27. 'psd' => 'application/x-photoshop',
  28. 'so' => 'application/octet-stream',
  29. 'sea' => 'application/octet-stream',
  30. 'dll' => 'application/octet-stream',
  31. 'oda' => 'application/oda',
  32. 'pdf' => array('application/pdf', 'application/x-download'),
  33. 'ai' => 'application/postscript',
  34. 'eps' => 'application/postscript',
  35. 'ps' => 'application/postscript',
  36. 'smi' => 'application/smil',
  37. 'smil' => 'application/smil',
  38. 'mif' => 'application/vnd.mif',
  39. 'xls' => array('application/excel', 'application/vnd.ms-excel', 'application/msexcel'),
  40. 'ppt' => array('application/powerpoint', 'application/vnd.ms-powerpoint'),
  41. 'wbxml' => 'application/wbxml',
  42. 'wmlc' => 'application/wmlc',
  43. 'dcr' => 'application/x-director',
  44. 'dir' => 'application/x-director',
  45. 'dxr' => 'application/x-director',
  46. 'dvi' => 'application/x-dvi',
  47. 'gtar' => 'application/x-gtar',
  48. 'gz' => 'application/x-gzip',
  49. 'php' => 'application/x-httpd-php',
  50. 'php4' => 'application/x-httpd-php',
  51. 'php3' => 'application/x-httpd-php',
  52. 'phtml' => 'application/x-httpd-php',
  53. 'phps' => 'application/x-httpd-php-source',
  54. 'js' => 'application/x-javascript',
  55. 'swf' => 'application/x-shockwave-flash',
  56. 'sit' => 'application/x-stuffit',
  57. 'tar' => 'application/x-tar',
  58. 'rar' => 'application/x-rar',
  59. 'tgz' => array('application/x-tar', 'application/x-gzip-compressed'),
  60. 'xhtml' => 'application/xhtml+xml',
  61. 'xht' => 'application/xhtml+xml',
  62. 'zip' => array('application/x-zip', 'application/zip', 'application/x-zip-compressed'),
  63. 'mid' => 'audio/midi',
  64. 'midi' => 'audio/midi',
  65. 'mpga' => 'audio/mpeg',
  66. 'mp2' => 'audio/mpeg',
  67. 'mp3' => array('audio/mpeg', 'audio/mpg', 'audio/mpeg3', 'audio/mp3'),
  68. 'aif' => 'audio/x-aiff',
  69. 'aiff' => 'audio/x-aiff',
  70. 'aifc' => 'audio/x-aiff',
  71. 'ram' => 'audio/x-pn-realaudio',
  72. 'rm' => 'audio/x-pn-realaudio',
  73. 'rpm' => 'audio/x-pn-realaudio-plugin',
  74. 'ra' => 'audio/x-realaudio',
  75. 'rv' => 'video/vnd.rn-realvideo',
  76. 'wav' => 'audio/x-wav',
  77. 'bmp' => 'image/bmp',
  78. 'gif' => 'image/gif',
  79. 'jpeg' => array('image/jpeg', 'image/pjpeg'),
  80. 'jpg' => array('image/jpeg', 'image/pjpeg'),
  81. 'jpe' => array('image/jpeg', 'image/pjpeg'),
  82. 'png' => array('image/png', 'image/x-png'),
  83. 'tiff' => 'image/tiff',
  84. 'tif' => 'image/tiff',
  85. 'css' => 'text/css',
  86. 'html' => 'text/html',
  87. 'htm' => 'text/html',
  88. 'shtml' => 'text/html',
  89. 'txt' => 'text/plain',
  90. 'text' => 'text/plain',
  91. 'log' => array('text/plain', 'text/x-log'),
  92. 'rtx' => 'text/richtext',
  93. 'rtf' => 'text/rtf',
  94. 'xml' => 'text/xml',
  95. 'xsl' => 'text/xml',
  96. 'mpeg' => 'video/mpeg',
  97. 'mpg' => 'video/mpeg',
  98. 'mpe' => 'video/mpeg',
  99. 'qt' => 'video/quicktime',
  100. 'mov' => 'video/quicktime',
  101. 'avi' => 'video/x-msvideo',
  102. 'movie' => 'video/x-sgi-movie',
  103. 'doc' => 'application/msword',
  104. 'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
  105. 'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
  106. 'word' => array('application/msword', 'application/octet-stream'),
  107. 'xl' => 'application/excel',
  108. 'eml' => 'message/rfc822',
  109. 'json' => array('application/json', 'text/json')
  110. );
  111. ?>