Línea 733... |
Línea 733... |
733 |
* @param bool $is_stream Set to True if $path contains file contents
|
733 |
* @param bool $is_stream Set to True if $path contains file contents
|
734 |
* @param bool $skip_suffix Set to True if the config/mimetypes.php map should be ignored
|
734 |
* @param bool $skip_suffix Set to True if the config/mimetypes.php map should be ignored
|
735 |
*
|
735 |
*
|
736 |
* @return string
|
736 |
* @return string
|
737 |
* @author Till Klampaeckel <till@php.net>
|
737 |
* @author Till Klampaeckel <till@php.net>
|
738 |
* @see http://de2.php.net/manual/en/ref.fileinfo.php
|
738 |
* @see https://www.php.net/manual/en/ref.fileinfo.php
|
739 |
* @see http://de2.php.net/mime_content_type
|
739 |
* @see https://www.php.net/mime_content_type
|
740 |
*/
|
740 |
*/
|
741 |
public static function file_content_type($path, $name, $failover = 'application/octet-stream', $is_stream = false, $skip_suffix = false)
|
741 |
public static function file_content_type($path, $name, $failover = 'application/octet-stream', $is_stream = false, $skip_suffix = false)
|
742 |
{
|
742 |
{
|
743 |
$mime_type = null;
|
743 |
$mime_type = null;
|
744 |
$config = rcube::get_instance()->config;
|
744 |
$config = rcube::get_instance()->config;
|