Lines Matching +full:x +full:- +full:age

33         $this->common = new PreserveFilenames_Common();
35 $controller->register_hook('MEDIA_UPLOAD_FINISH', 'AFTER', $this, '_saveMeta');
36 $controller->register_hook('MEDIA_DELETE_FILE', 'AFTER', $this, '_deleteMeta');
37 $controller->register_hook('MEDIA_SENDFILE', 'BEFORE', $this, '_sendFile');
38 … $controller->register_hook('PARSER_HANDLER_DONE', 'BEFORE', $this, '_replaceLinkTitle');
39 … $controller->register_hook('RENDERER_CONTENT_POSTPROCESS', 'AFTER', $this, '_replaceLinkURL');
40 … $controller->register_hook('MEDIAMANAGER_STARTED', 'AFTER', $this, '_exportToJSINFO');
41 … $controller->register_hook('MEDIAMANAGER_CONTENT_OUTPUT', 'BEFORE', $this, '_showMediaList');
42 … $controller->register_hook('AJAX_CALL_UNKNOWN', 'BEFORE', $this, '_showMediaListAjax');
43 …$controller->register_hook('ACTION_ACT_PREPROCESS', 'BEFORE', $this, '_replaceSnippetDownlo…
53 $id = $event->data[2];
69 $filename_safe = $this->common->_sanitizeFileName($filename_orig);
93 $id = $event->data['id'];
111 $d = $event->data;
112 $event->preventDefault();
118 header("Content-Type: $mime");
121 if ($cache == -1) {
125 …header('Cache-Control: public, proxy-revalidate, no-transform, max-age=' . max($conf['cachetime'],…
131 …header('Cache-Control: public, proxy-revalidate, no-transform, max-age=' . max($fmtime - time() + …
135 header('Cache-Control: must-revalidate, no-transform, post-check=0, pre-check=0');
142 // retrieve original filename and send Content-Disposition header
143 $filename = $this->_getOriginalFileName($MEDIA);
146 $filename = utf8_decodeFN($this->common->_correctBasename($d['file']));
149 header($this->common->_buildContentDispositionHeader($dl, $filename));
151 // use x-sendfile header to pass the delivery to compatible webservers
163 print "Could not read $file - bad permissions?";
168 * Replaces titles of non-labeled internal media links with their original filenames
180 $calls =& $event->data->calls;
186 $last = count($calls) - 1;
190 // basename() bug in fetching its auto-filled linktext.
191 // For more details please see common->_correctBasename().
206 $filename = $this->_getOriginalFileName($src);
211 // prefetch auto-filled linktext
217 && ($caption = $jpeg->getTitle())
221 $linktext = $this->common->_correctBasename(noNS($src));
242 if ($event->data[0] !== 'xhtml') {
247 $event->data[1] = preg_replace_callback(
256 /x',
258 $event->data[1]
262 $event->data[1] = preg_replace_callback(
265 $event->data[1]
363 if ($event->data['do'] !== 'filelist') {
367 $event->preventDefault();
370 $this->_listMedia($NS, $AUTH, $JUMPTO);
381 if ($event->data !== 'medialist_preservefilenames') {
385 $event->preventDefault();
391 $this->_listMedia($ns, $auth, $JUMPTO);
420 $filename = $this->_getOriginalFileName($item['id']);
440 … return empty($meta['filename']) ? false : $this->common->_sanitizeFileName($meta['filename']);
448 * common->_correctBasename().