[ Index ]

PHP Cross Reference of Akelos Framework

title

Body

[close]

/utils/ -> mime_types.php (source)

   1  <?php
   2  /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
   3  
   4  // +----------------------------------------------------------------------+
   5  // | Akelos Framework - http://www.akelos.org                             |
   6  // +----------------------------------------------------------------------+
   7  // | Copyright (c) 2002-2006, Akelos Media, S.L.  & Bermi Ferrer Martinez |
   8  // | Released under the GNU Lesser General Public License, see LICENSE.txt|
   9  // +----------------------------------------------------------------------+
  10  
  11  /**
  12   * @package ActiveSupport
  13   * @subpackage Utils
  14   * @author Bermi Ferrer <bermi a.t akelos c.om>
  15   * @copyright Copyright (c) 2002-2006, Akelos Media, S.L. http://www.akelos.org
  16   * @license GNU Lesser General Public License <http://www.gnu.org/copyleft/lesser.html>
  17   */
  18  
  19  $mime_types = array(
  20  '323 ' => 'text/h323',
  21  'acutc' => 'application/vnd.acucorp',
  22  'acx' => 'application/internet-property-stream',
  23  'ai' => 'application/postscript',
  24  'aif' => 'audio/x-aiff',
  25  'aifc' => 'audio/x-aiff',
  26  'aiff' => 'audio/x-aiff',
  27  'ami' => 'application/vnd.amiga.amu',
  28  'ani' => 'application/octet-stream',
  29  'asc' => 'application/pgp',
  30  'asf' => 'video/x-ms-asf',
  31  'asr' => 'video/x-ms-asf',
  32  'asx' => 'video/x-ms-asf',
  33  'atc' => 'application/vnd.acucorp',
  34  'au' => 'audio/basic',
  35  'avi' => 'video/x-msvideo',
  36  'axs' => 'application/olescript',
  37  'bak' => 'application/x-trash',
  38  'bas' => 'text/plain',
  39  'bat' => 'application/x-msdos-program',
  40  'bck' => 'application/VMSBACKUP',
  41  'bcpio' => 'application/x-bcpio',
  42  'bin' => 'application/octet-stream',
  43  'bleep' => 'application/bleeper',
  44  'bmp' => 'image/bmp',
  45  'book' => 'application/x-maker',
  46  'bpd' => 'application/vnd.hbci',
  47  'bz2' => 'application/x-bzip2',
  48  'c' => 'text/plain',
  49  'c++' => 'text/plain',
  50  'cat' => 'application/vnd.ms-pkiseccat',
  51  'cc' => 'text/plain',
  52  'ccc' => 'text/vnd.net2phone.commcenter.command',
  53  'cdf' => 'application/x-cdf',
  54  'cdy' => 'application/vnd.cinderella',
  55  'cer' => 'application/x-x509-ca-cert',
  56  'chrt' => 'application/vnd.kde.kchart',
  57  'cil' => 'application/vnd.ms-artgalry',
  58  'class' => 'application/octet-stream',
  59  'clp' => 'application/x-msclip',
  60  'cls' => 'text/x-tex',
  61  'cmx' => 'image/x-cmx',
  62  'cod' => 'image/cis-cod',
  63  'com' => 'application/x-msdos-program',
  64  'cpio' => 'application/x-cpio',
  65  'cpp' => 'text/x-c++src',
  66  'cpt' => 'application/mac-compactpro',
  67  'crd' => 'application/x-mscardfile',
  68  'crl' => 'application/pkix-crl',
  69  'crt' => 'application/x-x509-ca-cert',
  70  'cs' => 'text/plain',
  71  'csh' => 'application/x-csh',
  72  'csm' => 'application/cu-seeme',
  73  'css' => 'text/css',
  74  'csv' => 'text/csv',
  75  'cu' => 'application/cu-seeme',
  76  'curl' => 'application/vnd.curl',
  77  'cw' => 'application/prs.cww',
  78  'cww' => 'application/prs.cww',
  79  'cxx' => 'text/x-c++src',
  80  'dcr' => 'application/x-director',
  81  'deb' => 'application/x-debian-package',
  82  'der' => 'application/x-x509-ca-cert',
  83  'dfac' => 'application/vnd.dreamfactory',
  84  'diff' => 'text/diff',
  85  'dir' => 'application/x-director',
  86  'dl' => 'video/dl',
  87  'dll' => 'application/x-msdownload',
  88  'dms' => 'application/octet-stream',
  89  'doc' => 'application/msword',
  90  'dot' => 'application/msword',
  91  'dvi' => 'application/x-dvi',
  92  'dxr' => 'application/x-director',
  93  'ecelp4800' => 'audio/vnd.nuera.ecelp4800',
  94  'ecelp7470' => 'audio/vnd.nuera.ecelp7470',
  95  'ecelp9600' => 'audio/vnd.nuera.ecelp9600',
  96  'emm' => 'application/vnd.ibm.electronic-media',
  97  'eol' => 'audio/vnd.digital-winds',
  98  'eps' => 'application/postscript',
  99  'etx' => 'text/x-setext',
 100  'evy' => 'application/envoy',
 101  'exe' => 'application/octet-stream',
 102  'ez' => 'application/andrew-inset',
 103  'fb' => 'application/x-maker',
 104  'fbdoc' => 'application/x-maker',
 105  'fif' => 'application/fractals',
 106  'fli' => 'video/fli',
 107  'flo' => 'application/vnd.micrografx.flo',
 108  'flr' => 'x-world/x-vrml',
 109  'flw' => 'application/vnd.kde.kivio',
 110  'fm' => 'application/x-maker',
 111  'frame' => 'application/x-maker',
 112  'frm' => 'application/x-maker',
 113  'fsc' => 'application/vnd.fsc.weblauch',
 114  'gf' => 'application/x-tex-gf',
 115  'gif' => 'image/gif',
 116  'gl' => 'video/gl',
 117  'gsf' => 'application/x-font',
 118  'gsm' => 'audio/x-gsm',
 119  'gtar' => 'application/x-gtar',
 120  'gz' => 'application/x-gzip',
 121  'h' => 'text/plain',
 122  'h++' => 'text/plain',
 123  'hbc' => 'application/vnd.hbci',
 124  'hbci' => 'application/vnd.hbci',
 125  'hdf' => 'application/x-hdf',
 126  'hh' => 'text/plain',
 127  'hlp' => 'application/winhlp',
 128  'hpgl' => 'application/vnd.hp-HPGL',
 129  'hpp' => 'text/plain',
 130  'hqx' => 'application/mac-binhex40',
 131  'hta' => 'application/hta',
 132  'htc' => 'text/x-component',
 133  'htke' => 'application/vnd.kenameapp',
 134  'htm' => 'text/html',
 135  'html' => 'text/html',
 136  'htt' => 'text/webviewhtml',
 137  'hxx' => 'text/plain',
 138  'ica' => 'application/x-ica',
 139  'ice' => 'x-conference/x-cooltalk',
 140  'ico' => 'image/x-icon',
 141  'ics' => 'text/calendar',
 142  'ief' => 'image/ief',
 143  'ifb' => 'text/calendar',
 144  'iges' => 'model/iges',
 145  'igs' => 'model/iges',
 146  'igx' => 'application/vnd.micrografx.igx',
 147  'iii' => 'application/x-iphone',
 148  'imagemap' => 'application/imagemap',
 149  'imap' => 'application/imagemap',
 150  'ins' => 'application/x-internet-signup',
 151  'irp' => 'application/vnd.irepository.package+xml',
 152  'isp' => 'application/x-internet-signup',
 153  'jad' => 'text/vnd.sun.j2me.app-descriptor',
 154  'jar' => 'application/x-jar',
 155  'java' => 'text/x-java-source',
 156  'jfif' => 'image/pipeg',
 157  'jisp' => 'application/vnd.jisp',
 158  'jpe' => 'image/jpeg',
 159  'jpeg' => 'image/jpeg',
 160  'jpg' => 'image/jpeg',
 161  'js' => 'application/x-javascript',
 162  'json' => 'application/json',
 163  'kar' => 'audio/midi',
 164  'karbon' => 'application/vnd.kde.karbon',
 165  'kfo' => 'application/vnd.kde.kformula',
 166  'kom' => 'application/vnd.hbci',
 167  'kon' => 'application/vnd.kde.kontour',
 168  'ksp' => 'application/vnd.kde.kspread',
 169  'kwd' => 'application/vnd.kde.kword',
 170  'kwt' => 'application/vnd.kde.kword',
 171  'latex' => 'application/x-latex',
 172  'lbd' => 'application/vnd.llamagraphics.life-balance.desktop',
 173  'les' => 'application/vnd.hhe.lesson-player',
 174  'lha' => 'application/octet-stream',
 175  'log' => 'text/plain',
 176  'lrm' => 'application/vnd.ms-lrm',
 177  'lsf' => 'video/x-la-asf',
 178  'lsx' => 'video/x-la-asf',
 179  'ltx' => 'text/x-tex',
 180  'lvp' => 'audio/vnd.lucent.voice',
 181  'lzh' => 'application/octet-stream',
 182  'm13' => 'application/x-msmediaview',
 183  'm14' => 'application/x-msmediaview',
 184  'm3u' => 'audio/x-mpegurl',
 185  'maker' => 'application/x-maker',
 186  'man' => 'application/x-troff-man',
 187  'mcd' => 'application/mathcad',
 188  'mda' => 'application/vnd.ms-access',
 189  'mdb' => 'application/x-msaccess',
 190  'mde' => 'application/vnd.ms-access',
 191  'mdf' => 'application/access',
 192  'me' => 'application/x-troff-me',
 193  'mesh' => 'model/mesh',
 194  'mht' => 'message/rfc822',
 195  'mhtml' => 'message/rfc822',
 196  'mid' => 'audio/mid',
 197  'midi' => 'audio/midi',
 198  'mif' => 'application/x-mif',
 199  'mml' => 'text/mathml',
 200  'mny' => 'application/x-msmoney',
 201  'moc' => 'text/x-moc',
 202  'mov' => 'video/quicktime',
 203  'movie' => 'video/x-sgi-movie',
 204  'mp2' => 'video/mpeg',
 205  'mp3' => 'audio/mpeg',
 206  'mpa' => 'video/mpeg',
 207  'mpc' => 'application/vnd.mophun.certificate',
 208  'mpe' => 'video/mpeg',
 209  'mpeg' => 'video/mpeg',
 210  'mpega' => 'audio/mpeg',
 211  'mpg' => 'video/mpeg',
 212  'mpga' => 'audio/mpeg',
 213  'mpm' => 'application/vnd.blueice.multipass',
 214  'mpn' => 'application/vnd.mophun.application',
 215  'mpp' => 'application/vnd.ms-project',
 216  'mpv2' => 'video/mpeg',
 217  'ms' => 'application/x-troff-ms',
 218  'mseq' => 'application/vnd.mseq',
 219  'msh' => 'model/mesh',
 220  'mvb' => 'application/x-msmediaview',
 221  'mxu' => 'video/vnd.mpegurl',
 222  'nc' => 'application/x-netcdf',
 223  'nim' => 'video/vnd.nokia.interleaved-multimedia',
 224  'nws' => 'message/rfc822',
 225  'o' => 'application/x-object',
 226  'oda' => 'application/oda',
 227  'old' => 'application/x-trash',
 228  'oprc' => 'application/vnd.palm',
 229  'p' => 'text/x-pascal',
 230  'p10' => 'application/pkcs10',
 231  'p12' => 'application/x-pkcs12',
 232  'p7b' => 'application/x-pkcs7-certificates',
 233  'p7c' => 'application/x-pkcs7-mime',
 234  'p7m' => 'application/x-pkcs7-mime',
 235  'p7r' => 'application/x-pkcs7-certreqresp',
 236  'p7s' => 'application/x-pkcs7-signature',
 237  'pac' => 'application/x-ns-proxy-autoconfig',
 238  'pas' => 'text/x-pascal',
 239  'patch' => 'text/diff',
 240  'pbm' => 'image/x-portable-bitmap',
 241  'pcf' => 'application/x-font',
 242  'pcf.Z' => 'application/x-font',
 243  'pdb' => 'application/vnd.palm',
 244  'pdf' => 'application/pdf',
 245  'pfa' => 'application/x-font',
 246  'pfb' => 'application/x-font',
 247  'pfr' => 'application/font-tdpfr',
 248  'pfx' => 'application/x-pkcs12',
 249  'pgb' => 'image/vnd.glocalgraphics.pgb',
 250  'pgm' => 'image/x-portable-graymap',
 251  'pgn' => 'application/x-chess-pgn',
 252  'pgp' => 'application/pgp-signature',
 253  'php' => 'application/x-httpd-php',
 254  'php3' => 'application/x-httpd-php3',
 255  'php3p' => 'application/x-httpd-php3-preprocessed',
 256  'phps' => 'application/x-httpd-php3-source',
 257  'pht' => 'application/x-httpd-php',
 258  'phtml' => 'application/x-httpd-php',
 259  'pk' => 'application/x-tex-pk',
 260  'pkd' => 'application/vnd.hbci',
 261  'pko' => 'application/ynd.ms-pkipko',
 262  'pl' => 'application/x-perl',
 263  'plb' => 'application/vnd.3gpp.pic-bw-large',
 264  'plj' => 'audio/vnd.everad.plj',
 265  'plt' => 'application/vnd.hp-HPGL',
 266  'pm' => 'application/x-perl',
 267  'pm5' => 'application/pagemaker',
 268  'pma' => 'application/x-perfmon',
 269  'pmc' => 'application/x-perfmon',
 270  'pml' => 'application/x-perfmon',
 271  'pmr' => 'application/x-perfmon',
 272  'pmw' => 'application/x-perfmon',
 273  'png' => 'image/png',
 274  'pnm' => 'image/x-portable-anymap',
 275  'po' => 'text/plain',
 276  'pot' => 'application/vnd.ms-powerpoint',
 277  'pot,' => 'application/vnd.ms-powerpoint',
 278  'ppm' => 'image/x-portable-pixmap',
 279  'pps' => 'application/vnd.ms-powerpoint',
 280  'ppt' => 'application/vnd.ms-powerpoint',
 281  'pqa' => 'application/vnd.palm',
 282  'prc' => 'application/vnd.palm',
 283  'prf' => 'application/pics-rules',
 284  'ps' => 'application/postscript',
 285  'ps-z' => 'application/postscript',
 286  'psb' => 'application/vnd.3gpp.pic-bw-small',
 287  'pt5' => 'application/pagemaker',
 288  'pti' => 'application/vnd.pvi.ptid1',
 289  'ptid' => 'application/vnd.pvi.ptid1',
 290  'pub' => 'application/x-mspublisher',
 291  'pvb' => 'application/vnd.3gpp.pic-bw-var',
 292  'qt' => 'video/quicktime',
 293  'qtl' => 'application/quicktimeplayer',
 294  'qwd' => 'application/vnd.Quark.QuarkXPress',
 295  'qwt' => 'application/vnd.Quark.QuarkXPress',
 296  'qxb' => 'application/vnd.Quark.QuarkXPress',
 297  'qxd' => 'application/vnd.Quark.QuarkXPress',
 298  'qxl' => 'application/vnd.Quark.QuarkXPress',
 299  'qxt' => 'application/vnd.Quark.QuarkXPress',
 300  'ra' => 'audio/x-pn-realaudio',
 301  'ram' => 'audio/x-pn-realaudio',
 302  'rar' => 'application/x-rar-compressed',
 303  'ras' => 'image/x-cmu-raster',
 304  'rct' => 'application/prs.nprend',
 305  'rdz' => 'application/vnd.data-vision.rdz',
 306  'rgb' => 'image/x-rgb',
 307  'rm' => 'audio/x-pn-realaudio',
 308  'rmi' => 'audio/mid',
 309  'rnd' => 'application/prs.nprend',
 310  'roff' => 'application/x-troff',
 311  'rpm' => 'audio/x-pn-realaudio-plugin',
 312  'rss' => 'application/rss+xml',
 313  'rtf' => 'application/rtf',
 314  'rtx' => 'text/richtext',
 315  'sav' => 'application/x-spss',
 316  'sbs' => 'application/x-spss',
 317  'sc' => 'application/vnd.ibm.secure-container',
 318  'scd' => 'application/x-msschedule',
 319  'sct' => 'text/scriptlet',
 320  'setpay' => 'application/set-payment-initiation',
 321  'setreg' => 'application/set-registration-initiation',
 322  'sgm' => 'text/sgml',
 323  'sgml' => 'text/sgml',
 324  'sh' => 'application/x-sh',
 325  'shar' => 'application/x-shar',
 326  'shtml' => 'text/html',
 327  'sik' => 'application/x-trash',
 328  'silo' => 'model/mesh',
 329  'sit' => 'application/x-stuffit',
 330  'skd' => 'application/x-koan',
 331  'skm' => 'application/x-koan',
 332  'skp' => 'application/x-koan',
 333  'skt' => 'application/x-koan',
 334  'smi' => 'application/smil',
 335  'smil' => 'application/smil',
 336  'sms' => 'application/vnd.3gpp.sms',
 337  'snd' => 'audio/basic',
 338  'so' => 'application/octet-stream',
 339  'soc' => 'application/sgml-open-catalog',
 340  'spc' => 'application/x-pkcs7-certificates',
 341  'spl' => 'application/futuresplash',
 342  'spo' => 'application/x-spss',
 343  'spp' => 'application/x-spss',
 344  'sps' => 'application/x-spss',
 345  'src' => 'application/x-wais-source',
 346  'sst' => 'application/vnd.ms-pkicertstore',
 347  'stc' => 'application/vnd.sun.xml.calc.template',
 348  'std' => 'application/vnd.sun.xml.draw.template',
 349  'sti' => 'application/vnd.sun.xml.impress.template',
 350  'stk' => 'application/hyperstudio',
 351  'stl' => 'application/vnd.ms-pkistl',
 352  'stm' => 'text/html',
 353  'stw' => 'application/vnd.sun.xml.writer.template',
 354  'sty' => 'text/x-tex',
 355  'sv4cpio' => 'application/x-sv4cpio',
 356  'sv4crc' => 'application/x-sv4crc',
 357  'swf' => 'application/x-shockwave-flash',
 358  'swfl' => 'application/x-shockwave-flash',
 359  'sxc' => 'application/vnd.sun.xml.calc',
 360  'sxd' => 'application/vnd.sun.xml.draw',
 361  'sxg' => 'application/vnd.sun.xml.writer.global',
 362  'sxi' => 'application/vnd.sun.xml.impress',
 363  'sxm' => 'application/vnd.sun.xml.math',
 364  'sxw' => 'application/vnd.sun.xml.writer',
 365  't' => 'application/x-troff',
 366  'tar' => 'application/x-tar',
 367  'tbk' => 'application/toolbook',
 368  'tbz' => 'application/x-gtar',
 369  'tbz2' => 'application/x-gtar',
 370  'tcl' => 'application/x-tcl',
 371  'tex' => 'application/x-tex',
 372  'texi' => 'application/x-texinfo',
 373  'texinfo' => 'application/x-texinfo',
 374  'tgz' => 'application/x-compressed',
 375  'tif' => 'image/tiff',
 376  'tiff' => 'image/tiff',
 377  'tk' => 'text/x-tcl',
 378  'tr' => 'application/x-troff',
 379  'trm' => 'application/x-msterminal',
 380  'tsp' => 'application/dsptype',
 381  'tsv' => 'text/tab-separated-values',
 382  'txt' => 'text/plain',
 383  'uls' => 'text/iuls',
 384  'upa' => 'application/vnd.hbci',
 385  'ustar' => 'application/x-ustar',
 386  'vbk' => 'audio/vnd.nortel.vbk',
 387  'vbs' => 'text/plain',
 388  'vcd' => 'application/x-cdlink',
 389  'vcf' => 'text/x-vcard',
 390  'vcs' => 'text/calendar',
 391  'vfb' => 'text/calendar',
 392  'vis' => 'application/vnd.visionary',
 393  'vrm' => 'x-world/x-vrml',
 394  'vrml' => 'x-world/x-vrml',
 395  'vsc' => 'application/vnd.vidsoft.vidconference',
 396  'vsd' => 'application/vnd.visio',
 397  'wav' => 'audio/x-wav',
 398  'wax' => 'audio/x-ms-wax',
 399  'wbmp' => 'image/vnd.wap.wbmp',
 400  'wbxml' => 'application/vnd.wap.wbxml',
 401  'wcm' => 'application/vnd.ms-works',
 402  'wdb' => 'application/vnd.ms-works',
 403  'wk' => 'application/x-123',
 404  'wks' => 'application/vnd.ms-works',
 405  'wm' => 'video/x-ms-wm',
 406  'wma' => 'audio/x-ms-wma',
 407  'wmd' => 'application/x-ms-wmd',
 408  'wmf' => 'application/x-msmetafile',
 409  'wml' => 'text/vnd.wap.wml',
 410  'wmlc' => 'application/vnd.wap.wmlc',
 411  'wmls' => 'text/vnd.wap.wmlscript',
 412  'wmlsc' => 'application/vnd.wap.wmlscriptc',
 413  'wmv' => 'video/x-ms-wmv',
 414  'wmx' => 'video/x-ms-wmx',
 415  'wmz' => 'application/x-ms-wmz',
 416  'wp' => 'application/wordperfect',
 417  'wp5' => 'application/wordperfect5.1',
 418  'wp6' => 'application/wordperfect6.1',
 419  'wpd' => 'application/wordperfectd',
 420  'wpl' => 'application/vnd.ms-wpl',
 421  'wps' => 'application/vnd.ms-works',
 422  'wrd' => 'application/msword',
 423  'wri' => 'application/x-mswrite',
 424  'wrl' => 'x-world/x-vrml',
 425  'wrz' => 'x-world/x-vrml',
 426  'wvx' => 'video/x-ms-wvx',
 427  'wz' => 'application/x-Wingz',
 428  'x_b' => 'model/vnd.parasolid.transmit.binary',
 429  'x_t' => 'model/vnd.parasolid.transmit.text',
 430  'xaf' => 'x-world/x-vrml',
 431  'xbm' => 'image/x-xbitmap',
 432  'xfdf' => 'application/vnd.adobe.xfdf',
 433  'xht' => 'application/xhtml+xml',
 434  'xhtml' => 'application/xhtml+xml',
 435  'xla' => 'application/vnd.ms-excel',
 436  'xlc' => 'application/vnd.ms-excel',
 437  'xlm' => 'application/vnd.ms-excel',
 438  'xls' => 'application/vnd.ms-excel',
 439  'xlt' => 'application/vnd.ms-excel',
 440  'xlw' => 'application/vnd.ms-excel',
 441  'xml' => 'application/xml',
 442  'xmt_bin' => 'model/vnd.parasolid.transmit.binary',
 443  'xmt_txt' => 'model/vnd.parasolid.transmit.text',
 444  'xof' => 'x-world/x-vrml',
 445  'xpm' => 'image/x-xpixmap',
 446  'xsl' => 'text/xml',
 447  'xul' => 'application/vnd.mozilla.xul+xml',
 448  'xwd' => 'image/x-xwindowdump',
 449  'xyz' => 'chemical/x-xyz',
 450  'z' => 'application/x-compress',
 451  'zip' => 'application/zip'
 452  
 453  );
 454  
 455  ?>


Generated: Mon Oct 27 12:43:49 2008 Cross-referenced by PHPXref 0.6