fix for displaying powerpoint in IE as requested many times

This commit is contained in:
ak703 2005-03-20 09:11:21 +00:00
parent 4610377a66
commit 78cd9ae4b6

View File

@ -1719,6 +1719,16 @@
}
$viewable = array('','text/plain','text/csv','text/html','text/text');
//hack for powerpoint (NDEE 070804)
//manage some special mimetypes here
$extension = strstr($this->file,'.');
if($extension="ppt")
{
$mime_type="x-application/powerpoint";
}
// END
if(in_array($mime_type,$viewable) && !$_GET['download'])
{