MediaWiki
REL1_20
|
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 ($uriPath) | |
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.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. http://www.gnu.org/copyleft/gpl.html
Definition in file thumb.php.
wfExtractThumbParams | ( | $ | uriPath | ) |
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.
$uriPath | String Thumbnail request URI path |
Definition at line 296 of file thumb.php.
References $matches, $params, $size, RepoGroup\singleton(), wfExpandUrl(), wfParseUrl(), and wfRunHooks().
Referenced by wfThumbHandle404().
wfStreamThumb | ( | array $ | params | ) |
Stream a thumbnail specified by parameters.
$params | Array |
Definition at line 98 of file thumb.php.
References $response, $title, User\getGroupPermissions(), MWException\getHTML(), RequestContext\getMain(), HttpStatus\getMessage(), Title\makeTitleSafe(), File\RENDER_NOW, RepoGroup\singleton(), File\THUMB_FULL_NAME, wfExpandUrl(), wfLocalFile(), wfMessage(), 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 360 of file thumb.php.
References $url, echo, and wfHostname().
Referenced by wfStreamThumb(), and wfThumbHandle404().
wfThumbHandle404 | ( | ) |
Handle a thumbnail request via thumbnail file URL.
Definition at line 63 of file thumb.php.
References $params, wfExtractThumbParams(), wfParseUrl(), wfStreamThumb(), and wfThumbError().
Handle a thumbnail request via query parameters.
Definition at line 50 of file thumb.php.
References $params, and wfStreamThumb().