MediaWiki
REL1_19
|
PHP script to stream out an image thumbnail. More...
Go to the source code of this file.
Enumerations | |
enum | MW_NO_OUTPUT_COMPRESSION |
Functions | |
wfExtractThumbParams ($uri) | |
Extract the required params for thumb.php from the thumbnail request URI. | |
wfStreamThumb (array $params) | |
Stream a thumbnail specified by parameters. | |
wfThumbError ($status, $msg) | |
Output a thumbnail generation error message. | |
wfThumbHandle404 () | |
Handle a thumbnail request via thumbnail file URL. | |
wfThumbHandleRequest () | |
Handle a thumbnail request via query parameters. |
PHP script to stream out an image thumbnail.
Definition in file thumb.php.
wfExtractThumbParams | ( | $ | uri | ) |
Extract the required params for thumb.php from the thumbnail request URI.
At least 'width' and 'f' should be set if the result is an array.
$uri | String Thumbnail request URI path |
Definition at line 238 of file thumb.php.
References $matches, $size, RepoGroup\singleton(), wfParseUrl(), and wfRunHooks().
Referenced by wfThumbHandle404().
wfStreamThumb | ( | array $ | params | ) |
Stream a thumbnail specified by parameters.
$params | Array |
Definition at line 80 of file thumb.php.
References $title, User\getGroupPermissions(), MWException\getHTML(), Title\makeTitleSafe(), File\RENDER_NOW, RepoGroup\singleton(), wfLocalFile(), wfMsg(), wfMsgHtml(), wfProfileIn(), wfProfileOut(), wfRestoreWarnings(), wfSuppressWarnings(), wfThumbError(), and wfTimestamp().
Referenced by wfThumbHandle404(), and wfThumbHandleRequest().
wfThumbError | ( | $ | status, |
$ | msg | ||
) |
Output a thumbnail generation error message.
$status | integer |
$msg | string |
Definition at line 297 of file thumb.php.
References $url, $wgShowHostnames, echo, and wfHostname().
Referenced by wfStreamThumb(), and wfThumbHandle404().
wfThumbHandle404 | ( | ) |
Handle a thumbnail request via thumbnail file URL.
Definition at line 48 of file thumb.php.
References wfExtractThumbParams(), wfParseUrl(), wfStreamThumb(), and wfThumbError().
Handle a thumbnail request via query parameters.
Definition at line 35 of file thumb.php.
References wfStreamThumb().