Lines Matching +full:check +full:- +full:pass -(+path:inc +path:lang) -(+path:lib +path:plugins +path:lang) -(+path:lib +path:tpl +path:dokuwiki +path:lang)
18 * through x-sendfile
23 * @param int $cache remaining cache time in seconds (-1 for $conf['cache'], 0 for no-cache)
25 * @param string $orig original file to send - the file name will be used for the Content-Disposition
36 header("Content-Type: $mime");
42 if ($cache == -1) {
50 $expires = 0; // 1970-01-01
58 header('Cache-Control: public, proxy-revalidate, no-transform, max-age=' . $maxage);
62 header('Cache-Control: private, no-transform, max-age=' . $maxage);
67 header('Cache-Control: no-cache, no-transform');
81 header('Content-Disposition: attachment;' . rfc2231_encode(
86 header('Content-Disposition: inline;' . rfc2231_encode(
92 //use x-sendfile header to pass the delivery to compatible webservers
101 echo "Could not read $file - bad permissions?";
121 function rfc2231_encode($name, $value, $charset = 'utf-8', $lang = 'en')
124 '/[\x00-\x20*\'%()<>@,;:\\\\"\/[\]?=\x80-\xFF]/',
136 * Check for media for preconditions and return correct status code
156 //check token for external image and additional for resized and cached images
157 if (media_get_token($media, $width, $height) !== $INPUT->str('tok')) {
163 //download failed - redirect to original URL
171 // check token for resized images
172 if (($width || $height) && media_get_token($media, $width, $height) !== $INPUT->str('tok')) {
176 //check permissions (namespace only)
183 //check file existance
207 return -1; //cache endless