Server IP : 184.154.167.98 / Your IP : 3.133.153.224 Web Server : Apache System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 User : puertode ( 1767) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/puertode/public_html/nextcloud/apps/gallery/lib/Controller/ |
Upload File : |
<?php /** * Nextcloud - Gallery * * This file is licensed under the Affero General Public License version 3 or * later. See the COPYING file. * * @author Olivier Paroz <galleryapps@oparoz.com> * * @copyright Olivier Paroz 2017 */ namespace OCA\Gallery\Controller; /** * Class PreviewPublicController * * Note: Type casting only works if the "@param" parameters are also included in this class as * their not yet inherited * * @package OCA\Gallery\Controller */ class PreviewPublicController extends PreviewController { /** * @PublicPage * @UseSession * * Generates thumbnails for public galleries * * The session needs to be maintained open or previews can't be generated * for files located on encrypted storage * * @inheritDoc * * @param string $ids the ID of the files of which we need thumbnail previews of * @param bool $square * @param float $scale */ public function getThumbnails($ids, $square, $scale) { return parent::getThumbnails($ids, $square, $scale); } /** * @PublicPage * @UseSession * @NoCSRFRequired * * Shows a large preview of a file * * The session needs to be maintained open or previews can't be generated * for files located on encrypted storage * * @inheritDoc * * @param int $fileId the ID of the file of which we need a large preview of * @param int $width * @param int $height */ public function getPreview($fileId, $width, $height) { return parent::getPreview($fileId, $width, $height); } }