Home
last modified time | relevance | path

Searched refs:mime (Results 1 – 14 of 14) sorted by relevance

/dokuwiki/inc/Action/
H A DSitemap.php38 $mime = 'application/x-gzip';
40 $mime = 'application/xml; charset=utf-8';
50 header('Content-Type: ' . $mime);
/dokuwiki/inc/File/
H A DMediaFile.php12 protected $mime; variable in dokuwiki\\File\\MediaFile
30 list($this->ext, $this->mime, $this->downloadable) = mimetype($this->path, false);
58 if (!$this->mime) return 'application/octet-stream';
59 return $this->mime;
111 return (substr($this->mime, 0, 6) === 'image/');
/dokuwiki/inc/Subscriptions/
H A DMediaSubscriptionSender.php26 list($mime, /* $ext */) = mimetype($id);
29 'MIME' => $mime,
/dokuwiki/inc/
H A DMailer.class.php77 * @param string $mime Mimetype of the attached file
88 'mime' => $mime,
98 * @param string $mime Mimetype of the attached file
104 list(, $ext) = explode('/', $mime);
110 'mime' => $mime,
128 list(, $mime) = mimetype($media);
133 $this->attachFile($file, $mime, '', 'autoembed'.$embeds);
440 $mime = '';
454 $mime .= '--'.$this->boundary.MAILHEADER_EOL;
463 $mime .= MAILHEADER_EOL; //end of headers
[all …]
H A Dfetch.functions.php17 * @param string $mime mime type of the file
28 function sendFile($file, $mime, $dl, $cache, $public = false, $orig = null, $csp=[]) { argument
31 header("Content-Type: $mime");
91 http_rangeRequest($fp, filesize($file), $mime);
H A Dhttputils.php100 * @param int $mime - MIME type of the file
104 function http_rangeRequest($fh,$size,$mime){ argument
141 header("Content-Type: $mime",true);
145 header("Content-Type: $mime",true);
158 echo "Content-Type: $mime".HTTP_HEADER_LF;
H A Dconfutils.php58 static $mime = null;
59 if ( !$mime ) {
60 $mime = retrieveConfig('mime','confToHash');
61 $mime = array_filter($mime);
63 return $mime;
H A Dmedia.php297 list($ext,$mime) = mimetype($id);
312 'mime' => $mime,
421 list($ext, $mime) = mimetype($id);
423 $file['mime'] = $mime;
618 * @param string $mime mimetype
621 function media_contentcheck($file,$mime){ argument
633 if(substr($mime,0,6) == 'image/'){
643 }elseif(substr($mime,0,5) == 'text/'){
660 * @param string $mime mime type
767 list(, $mime) = mimetype($image);
[all …]
H A Dtemplate.php1442 list(, $mime) = mimetype($image);
1443 if($mime == 'image/jpeg') {
/dokuwiki/vendor/simplepie/simplepie/library/SimplePie/
H A DEnclosure.php976 $mime = explode('/', $type, 2);
977 $mime = $mime[0];
982 if ($mime === 'video')
1005 if ($mime === 'audio')
1009 elseif ($mime === 'video')
1036 elseif ($mime === 'audio')
1042 if ($mime === 'audio')
1046 elseif ($mime === 'video')
H A DMisc.php1850 public static function parse_mime($mime) argument
1852 if (($pos = strpos($mime, ';')) === false)
1854 return trim($mime);
1857 return trim(substr($mime, 0, $pos));
/dokuwiki/inc/parser/
H A Dxhtml.php1181 list($ext, $mime) = mimetype($src, false);
1192 … } elseif(($mime == 'application/x-shockwave-flash' || media_supportedav($mime)) && $render) {
1264 list($ext, $mime) = mimetype($src, false);
1268 … } elseif(($mime == 'application/x-shockwave-flash' || media_supportedav($mime)) && $render) {
1628 list($ext, $mime) = mimetype($src);
1629 if(substr($mime, 0, 5) == 'image') {
1678 } elseif(media_supportedav($mime, 'video') || media_supportedav($mime, 'audio')) {
1693 if(media_supportedav($mime, 'video')) {
1697 if(media_supportedav($mime, 'audio')) {
1883 foreach($files as $mime => $file) {
[all …]
/dokuwiki/vendor/marcusschwarz/lesserphp/
H A Dlessc.inc.php1063 $mime = ($value[0] === 'list') ? $value[2][0][2] : null;
1071 if(is_null($mime)) {
1074 $mime = explode('; ', $finfo->file($fullpath));
1075 $mime = $mime[0];
1077 $mime = mime_content_type($fullpath);
1081 if(!is_null($mime)) // fallback if the mime type is still unknown
1082 $url = sprintf('data:%s;base64,%s', $mime, base64_encode(file_get_contents($fullpath)));
/dokuwiki/vendor/simplepie/simplepie/library/
H A DSimplePie.php1781 * @param string $mime MIME type to serve the page as
1783 public function handle_content_type($mime = 'text/html') argument
1787 $header = "Content-type: $mime;";