MediaWiki  REL1_19
thumb.php File Reference

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.

Detailed Description

PHP script to stream out an image thumbnail.

Definition in file thumb.php.


Enumeration Type Documentation

Definition at line 9 of file thumb.php.


Function Documentation

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.

Parameters:
$uriString Thumbnail request URI path
Returns:
Array|null associative params array or null

Definition at line 238 of file thumb.php.

References $matches, $size, RepoGroup\singleton(), wfParseUrl(), and wfRunHooks().

Referenced by wfThumbHandle404().

Here is the call graph for this function:

Here is the caller graph for this function:

wfStreamThumb ( array $  params)

Stream a thumbnail specified by parameters.

Parameters:
$paramsArray
Returns:
void

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().

Here is the call graph for this function:

Here is the caller graph for this function:

wfThumbError ( status,
msg 
)

Output a thumbnail generation error message.

Parameters:
$statusinteger
$msgstring
Returns:
void

Definition at line 297 of file thumb.php.

References $url, $wgShowHostnames, echo, and wfHostname().

Referenced by wfStreamThumb(), and wfThumbHandle404().

Here is the call graph for this function:

Here is the caller graph for this function:

Handle a thumbnail request via thumbnail file URL.

Returns:
void

Definition at line 48 of file thumb.php.

References wfExtractThumbParams(), wfParseUrl(), wfStreamThumb(), and wfThumbError().

Here is the call graph for this function:

Handle a thumbnail request via query parameters.

Returns:
void

Definition at line 35 of file thumb.php.

References wfStreamThumb().

Here is the call graph for this function: