Location: PHPKode > projects > NetOffice > netoffice/includes/mimetypes.php
<?php // $Revision: 1.5 $
/* vim: set expandtab ts=4 sw=4 sts=4: */

/**
 * $Id: mimetypes.php,v 1.5 2004/01/04 17:21:48 madbear Exp $
 * 
 * Copyright (c) 2003 by the NetOffice developers
 * 
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 */
// Exension to MIME-Type mapping, pretty much the same as mime.types from Apache
$mimetypes['fla'] = 'application/application/x-shockwave-flash';
$mimetypes["ez"] = "application/andrew-inset";
$mimetypes["csm"] = "application/cu-seeme";
$mimetypes["cu"] = "application/cu-seeme";
$mimetypes["xls"] = "application/vnd.ms-excel";
$mimetypes["hqx"] = "application/mac-binhex40";
$mimetypes["cpt"] = "application/mac-compactpro";
$mimetypes["doc"] = "application/msword";
$mimetypes["dot"] = "application/msword";
$mimetypes["wrd"] = "application/msword";
$mimetypes["bin"] = "application/octet-stream";
$mimetypes["dms"] = "application/octet-stream";
$mimetypes["lha"] = "application/octet-stream";
$mimetypes["lzh"] = "application/octet-stream";
$mimetypes["exe"] = "application/octet-stream";
$mimetypes["class"] = "application/octet-stream";
$mimetypes["oda"] = "application/oda";
$mimetypes["pdf"] = "application/pdf";
$mimetypes["pgp"] = "application/pgp";
$mimetypes["ai"] = "application/postscript";
$mimetypes["eps"] = "application/postscript";
$mimetypes["ps"] = "application/postscript";
$mimetypes["ppt"] = "application/vnd.ms-powerpoint";
$mimetypes["rtf"] = "application/rtf";
$mimetypes["wp5"] = "application/wordperfect5.1";
$mimetypes["wk"] = "application/x-123";
$mimetypes["wz"] = "application/x-Wingz";
$mimetypes["bcpio"] = "application/x-bcpio";
$mimetypes["vcd"] = "application/x-cdlink";
$mimetypes["pgn"] = "application/x-chess-pgn";
$mimetypes["z"] = "application/x-compress";
$mimetypes["Z"] = "application/x-compress";
$mimetypes["cpio"] = "application/x-cpio";
$mimetypes["csh"] = "application/x-csh";
$mimetypes["deb"] = "application/x-debian-package";
$mimetypes["dcr"] = "application/x-director";
$mimetypes["dir"] = "application/x-director";
$mimetypes["dxr"] = "application/x-director";
$mimetypes["dvi"] = "application/x-dvi";
$mimetypes["gtar"] = "application/x-gtar";
$mimetypes["tgz"] = "application/x-gtar";
$mimetypes["gz"] = "application/x-gzip";
$mimetypes["hdf"] = "application/x-hdf";
$mimetypes["phtml"] = "application/x-httpd-php";
$mimetypes["pht"] = "application/x-httpd-php";
$mimetypes["php"] = "application/x-httpd-php";
$mimetypes["js"] = "application/x-javascript";
$mimetypes["skp"] = "application/x-koan";
$mimetypes["skd"] = "application/x-koan";
$mimetypes["skt"] = "application/x-koan";
$mimetypes["skm"] = "application/x-koan";
$mimetypes["latex"] = "application/x-latex";
$mimetypes["frm"] = "application/x-maker";
$mimetypes["maker"] = "application/x-maker";
$mimetypes["frame"] = "application/x-maker";
$mimetypes["fm"] = "application/x-maker";
$mimetypes["fb"] = "application/x-maker";
$mimetypes["book"] = "application/x-maker";
$mimetypes["fbdoc"] = "application/x-maker";
$mimetypes["mif"] = "application/x-mif";
$mimetypes["com"] = "application/x-msdos-program";
$mimetypes["exe"] = "application/x-msdos-program";
$mimetypes["bat"] = "application/x-msdos-program";
$mimetypes["nc"] = "application/x-netcdf";
$mimetypes["cdf"] = "application/x-netcdf";
$mimetypes["pac"] = "application/x-ns-proxy-autoconfig";
$mimetypes["pl"] = "application/x-perl";
$mimetypes["pm"] = "application/x-perl";
$mimetypes["sh"] = "application/x-sh";
$mimetypes["shar"] = "application/x-shar";
$mimetypes["sit"] = "application/x-stuffit";
$mimetypes["sv4cpio"] = "application/x-sv4cpio";
$mimetypes["sv4crc"] = "application/x-sv4crc";
$mimetypes["tar"] = "application/x-tar";
$mimetypes["tcl"] = "application/x-tcl";
$mimetypes["tex"] = "application/x-tex";
$mimetypes["texinfo"] = "application/x-texinfo";
$mimetypes["texi"] = "application/x-texinfo";
$mimetypes["t"] = "application/x-troff";
$mimetypes["tr"] = "application/x-troff";
$mimetypes["roff"] = "application/x-troff";
$mimetypes["man"] = "application/x-troff-man";
$mimetypes["me"] = "application/x-troff-me";
$mimetypes["ms"] = "application/x-troff-ms";
$mimetypes["ustar"] = "application/x-ustar";
$mimetypes["src"] = "application/x-wais-source";
$mimetypes["zip"] = "application/zip";
$mimetypes["au"] = "audio/basic";
$mimetypes["snd"] = "audio/basic";
$mimetypes["mid"] = "audio/midi";
$mimetypes["midi"] = "audio/midi";
$mimetypes["kar"] = "audio/midi";
$mimetypes["mpga"] = "audio/mpeg";
$mimetypes["mp2"] = "audio/mpeg";
$mimetypes["mp3"] = "audio/mpeg";
$mimetypes["aif"] = "audio/x-aiff";
$mimetypes["aifc"] = "audio/x-aiff";
$mimetypes["aiff"] = "audio/x-aiff";
$mimetypes["ram"] = "audio/x-pn-realaudio";
$mimetypes["ra"] = "audio/x-realaudio";
$mimetypes["wav"] = "audio/x-wav";
$mimetypes["pdb"] = "chemical/x-pdb";
$mimetypes["xyz"] = "chemical/x-pdb";
$mimetypes["gif"] = "image/gif";
$mimetypes["ief"] = "image/ief";
$mimetypes["jpeg"] = "image/jpeg";
$mimetypes["jpg"] = "image/jpeg";
$mimetypes["jpe"] = "image/jpeg";
$mimetypes["png"] = "image/png";
$mimetypes["tiff"] = "image/tiff";
$mimetypes["tif"] = "image/tiff";
$mimetypes["ras"] = "image/x-cmu-raster";
$mimetypes["pnm"] = "image/x-portable-anymap";
$mimetypes["pbm"] = "image/x-portable-bitmap";
$mimetypes["pgm"] = "image/x-portable-graymap";
$mimetypes["ppm"] = "image/x-portable-pixmap";
$mimetypes["rgb"] = "image/x-rgb";
$mimetypes["xbm"] = "image/x-xbitmap";
$mimetypes["xpm"] = "image/x-xpixmap";
$mimetypes["xwd"] = "image/x-xwindowdump";
$mimetypes["igs"] = "model/iges";
$mimetypes["iges"] = "model/iges";
$mimetypes["msh"] = "model/mesh";
$mimetypes["mesh"] = "model/mesh";
$mimetypes["silo"] = "model/mesh";
$mimetypes["wrl"] = "model/vrml";
$mimetypes["vrml"] = "model/vrml";
$mimetypes["css"] = "text/css";
$mimetypes["html"] = "text/html";
$mimetypes["htm"] = "text/html";
$mimetypes["asc"] = "text/plain";
$mimetypes["txt"] = "text/plain";
$mimetypes["c"] = "text/plain";
$mimetypes["cc"] = "text/plain";
$mimetypes["h"] = "text/plain";
$mimetypes["hh"] = "text/plain";
$mimetypes["cpp"] = "text/plain";
$mimetypes["hpp"] = "text/plain";
$mimetypes["java"] = "text/plain";
$mimetypes["rtx"] = "text/richtext";
$mimetypes["tsv"] = "text/tab-separated-values";
$mimetypes["etx"] = "text/x-setext";
$mimetypes["sgml"] = "text/x-sgml";
$mimetypes["sgm"] = "text/x-sgml";
$mimetypes["vcs"] = "text/x-vCalendar";
$mimetypes["vcf"] = "text/x-vCard";
$mimetypes["xml"] = "text/xml";
$mimetypes["dtd"] = "text/xml";
$mimetypes["dl"] = "video/dl";
$mimetypes["fli"] = "video/fli";
$mimetypes["gl"] = "video/gl";
$mimetypes["mp2"] = "video/mpeg";
$mimetypes["mpe"] = "video/mpeg";
$mimetypes["mpeg"] = "video/mpeg";
$mimetypes["mpg"] = "video/mpeg";
$mimetypes["qt"] = "video/quicktime";
$mimetypes["mov"] = "video/quicktime";
$mimetypes["avi"] = "video/x-msvideo";
$mimetypes["movie"] = "video/x-sgi-movie";
$mimetypes["ice"] = "x-conference/x-cooltalk";

?>
Return current item: NetOffice