[ Index ]
 

Code source de XOOPS 2.0.17.1

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/htdocs/class/ -> mimetypes.inc.php (source)

   1  <?php
   2  // $Id: mimetypes.inc.php 1070 2007-10-01 02:18:40Z phppp $

   3  /**

   4  * Extension to mimetype lookup table

   5  *

   6  * This file is provided as an helper for objects who need to perform filename to mimetype translations.

   7  * Common types have been provided, but feel free to add your own one if you need it.

   8  * <br /><br />

   9  * See the enclosed file LICENSE for licensing information.

  10  * If you did not receive this file, get it at http://www.fsf.org/copyleft/gpl.html

  11  *

  12  * @copyright    The Xoops project http://www.xoops.org/

  13  * @license      http://www.fsf.org/copyleft/gpl.html GNU public license

  14  * @author       Skalpa Keo <skalpa@xoops.org>

  15  * @since        2.0.9.3

  16  */
  17  
  18  return array(
  19       "hqx"        => "application/mac-binhex40",
  20       "doc"        => "application/msword",
  21       "dot"        => "application/msword",
  22       "bin"        => "application/octet-stream",
  23       "lha"        => "application/octet-stream",
  24       "lzh"        => "application/octet-stream",
  25       "exe"        => "application/octet-stream",
  26       "class"    => "application/octet-stream",
  27       "so"        => "application/octet-stream",
  28       "dll"        => "application/octet-stream",
  29       "pdf"        => "application/pdf",
  30       "ai"        => "application/postscript",
  31       "eps"        => "application/postscript",
  32       "ps"        => "application/postscript",
  33       "smi"        => "application/smil",
  34       "smil"        => "application/smil",
  35       "wbxml"    => "application/vnd.wap.wbxml",
  36       "wmlc"        => "application/vnd.wap.wmlc",
  37       "wmlsc"    => "application/vnd.wap.wmlscriptc",
  38       "xla"        => "application/vnd.ms-excel",
  39       "xls"        => "application/vnd.ms-excel",
  40       "xlt"        => "application/vnd.ms-excel",
  41       "ppt"        => "application/vnd.ms-powerpoint",
  42       "csh"        => "application/x-csh",
  43       "dcr"        => "application/x-director",
  44       "dir"        => "application/x-director",
  45       "dxr"        => "application/x-director",
  46       "spl"        => "application/x-futuresplash",
  47       "gtar"        => "application/x-gtar",
  48       "php"        => "application/x-httpd-php",
  49       "php3"        => "application/x-httpd-php",
  50       "php4"        => "application/x-httpd-php",
  51       "php5"        => "application/x-httpd-php",
  52       "phtml"    => "application/x-httpd-php",
  53       "js"        => "application/x-javascript",
  54       "sh"        => "application/x-sh",
  55       "swf"        => "application/x-shockwave-flash",
  56       "sit"        => "application/x-stuffit",
  57       "tar"        => "application/x-tar",
  58       "tcl"        => "application/x-tcl",
  59       "xhtml"    => "application/xhtml+xml",
  60       "xht"        => "application/xhtml+xml",
  61       "xhtml"    => "application/xml",
  62       "ent"        => "application/xml-external-parsed-entity",
  63       "dtd"        => "application/xml-dtd",
  64       "mod"        => "application/xml-dtd",
  65       "gz"        => "application/x-gzip",
  66       "zip"        => "application/zip",
  67       "au"        => "audio/basic",
  68       "snd"        => "audio/basic",
  69       "mid"        => "audio/midi",
  70       "midi"        => "audio/midi",
  71       "kar"        => "audio/midi",
  72       "mp1"        => "audio/mpeg",
  73       "mp2"        => "audio/mpeg",
  74       "mp3"        => "audio/mpeg",
  75       "aif"        => "audio/x-aiff",
  76       "aiff"        => "audio/x-aiff",
  77       "m3u"        => "audio/x-mpegurl",
  78       "ram"        => "audio/x-pn-realaudio",
  79       "rm"        => "audio/x-pn-realaudio",
  80       "rpm"        => "audio/x-pn-realaudio-plugin",
  81       "ra"        => "audio/x-realaudio",
  82       "wav"        => "audio/x-wav",
  83       "bmp"        => "image/bmp",
  84       "gif"        => "image/gif",
  85       "jpeg"        => "image/jpeg",
  86       "jpg"        => "image/jpeg",
  87       "jpe"        => "image/jpeg",
  88       "png"        => "image/png",
  89       "tiff"        => "image/tiff",
  90       "tif"        => "image/tif",
  91       "wbmp"        => "image/vnd.wap.wbmp",
  92       "pnm"        => "image/x-portable-anymap",
  93       "pbm"        => "image/x-portable-bitmap",
  94       "pgm"        => "image/x-portable-graymap",
  95       "ppm"        => "image/x-portable-pixmap",
  96       "xbm"        => "image/x-xbitmap",
  97       "xpm"        => "image/x-xpixmap",
  98       "ics"        => "text/calendar",
  99       "ifb"        => "text/calendar",
 100       "css"        => "text/css",
 101       "html"        => "text/html",
 102       "htm"        => "text/html",
 103       "asc"        => "text/plain",
 104       "txt"        => "text/plain",
 105       "rtf"        => "text/rtf",
 106       "sgml"        => "text/x-sgml",
 107       "sgm"        => "text/x-sgml",
 108       "tsv"        => "text/tab-seperated-values",
 109       "wml"        => "text/vnd.wap.wml",
 110       "wmls"        => "text/vnd.wap.wmlscript",
 111       "xsl"        => "text/xml",
 112       "mpeg"        => "video/mpeg",
 113       "mpg"        => "video/mpeg",
 114       "mpe"        => "video/mpeg",
 115       "qt"        => "video/quicktime",
 116       "mov"        => "video/quicktime",
 117       "avi"        => "video/x-msvideo",
 118  );
 119  
 120  ?>


Généré le : Sun Nov 25 11:44:32 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics