Blame view
sources/apps/reader/ajax/thumbnail.php
260 Bytes
|
42e4f8d60
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
<?php
OCP\JSON::checkLoggedIn();
OCP\JSON::checkAppEnabled('reader');
require_once('reader/lib/thumbnail.php');
$img = $_GET['filepath'];
$image = thumb($img);
if ($image) {
OCP\Response::enableCaching(3600 * 24); // 24 hour
$image->show();
}
?>
|