Home
last modified time | relevance | path

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

/dokuwiki/vendor/splitbrain/lesserphp/src/Functions/
H A DMisc.php64 $mime = ($value[0] === 'list') ? $value[2][0][2] : null;
72 if (is_null($mime)) {
75 $mime = explode('; ', $finfo->file($fullpath));
76 $mime = $mime[0];
78 $mime = mime_content_type($fullpath);
82 if (!is_null($mime)) // fallback if the mime type is still unknown
83 … $url = sprintf('data:%s;base64,%s', $mime, base64_encode(file_get_contents($fullpath)));
/dokuwiki/inc/Action/
H A DSitemap.php41 $mime = 'application/x-gzip';
43 $mime = 'application/xml; charset=utf-8';
53 header('Content-Type: ' . $mime);
/dokuwiki/inc/File/
H A DMediaFile.php13 protected $mime; variable in dokuwiki\\File\\MediaFile
32 [$this->ext, $this->mime, $this->downloadable] = mimetype($this->path, false);
66 if (!$this->mime) return 'application/octet-stream';
67 return $this->mime;
119 return (str_starts_with($this->mime, 'image/'));
/dokuwiki/inc/Subscriptions/
H A DMediaSubscriptionSender.php23 [$mime, /* ext */] = mimetype($id);
26 'MIME' => $mime,
/dokuwiki/inc/
H A DMailer.class.php79 * @param string $mime Mimetype of the attached file
83 public function attachFile($path, $mime, $name = '', $embed = '') argument
91 'mime' => $mime,
101 * @param string $mime Mimetype of the attached file
105 public function attachContent($data, $mime, $name = '', $embed = '') argument
108 [, $ext] = explode('/', $mime);
114 'mime' => $mime,
133 [, $mime] = mimetype($media);
138 $this->attachFile($file, $mime, '', 'autoembed' . $embeds);
459 $mime = '';
[all …]
H A Dfetch.functions.php21 * @param string $mime mime type of the file
32 function sendFile($file, $mime, $dl, $cache, $public = false, $orig = null, $csp = []) argument
36 header("Content-Type: $mime");
98 http_rangeRequest($fp, filesize($file), $mime);
H A Dhttputils.php96 * @param int $mime - MIME type of the file
100 function http_rangeRequest($fh, $size, $mime) argument
140 header("Content-Type: $mime", true);
144 header("Content-Type: $mime", true);
157 echo "Content-Type: $mime" . HTTP_HEADER_LF;
H A Dconfutils.php62 static $mime = null;
63 if (!$mime) {
64 $mime = retrieveConfig('mime', 'confToHash');
65 $mime = array_filter($mime);
67 return $mime;
H A Dmedia.php315 [$ext, $mime] = mimetype($id);
329 ['name' => $path, 'mime' => $mime, 'ext' => $ext],
447 [$ext, $mime] = mimetype($id);
449 $file['mime'] = $mime;
645 * @param string $mime mimetype
648 function media_contentcheck($file, $mime) argument
661 if (str_starts_with($mime, 'image/')) {
663 if ($mime == 'image/gif' && $info[2] != 1) {
665 } elseif ($mime == 'image/jpeg' && $info[2] != 2) {
667 } elseif ($mime == 'image/png' && $info[2] != 3) {
[all …]
H A Dtemplate.php1533 [, $mime] = mimetype($image);
1534 if ($mime == 'image/jpeg') {
/dokuwiki/vendor/simplepie/simplepie/src/
H A DEnclosure.php936 $mime = explode('/', $type, 2);
937 $mime = $mime[0];
941 if ($mime === 'video') {
955 if ($mime === 'audio') {
957 } elseif ($mime === 'video') {
972 } elseif ($mime === 'audio') {
977 if ($mime === 'audio') {
979 } elseif ($mime === 'video') {
H A DMisc.php1794 public static function parse_mime($mime) argument
1796 if (($pos = strpos($mime, ';')) === false) {
1797 return trim($mime);
1800 return trim(substr($mime, 0, $pos));
H A DSimplePie.php1972 * @param string $mime MIME type to serve the page as
1974 public function handle_content_type($mime = 'text/html') argument
1977 $header = "Content-type: $mime;";
/dokuwiki/inc/parser/
H A Dxhtml.php1206 [$ext, $mime] = mimetype($src, false);
1207 if (str_starts_with($mime, 'image') && $render) {
1217 … } elseif (($mime == 'application/x-shockwave-flash' || media_supportedav($mime)) && $render) {
1300 [$ext, $mime] = mimetype($src, false);
1301 if (str_starts_with($mime, 'image') && $render) {
1304 … } elseif (($mime == 'application/x-shockwave-flash' || media_supportedav($mime)) && $render) {
1683 [$ext, $mime] = mimetype($src);
1684 if (str_starts_with($mime, 'image')) {
1735 } elseif (media_supportedav($mime, 'video') || media_supportedav($mime, 'audio')) {
1750 if (media_supportedav($mime, 'video')) {
[all …]
/dokuwiki/
H A D.gitignore25 !/conf/mime.conf
H A Dcomposer.lock583 "ext-fileinfo": "For mime type guessing of embedded files"