����JFIF��x�x����'
Server IP : 66.29.137.217 / Your IP : 18.117.115.50 Web Server : LiteSpeed System : Linux premium294.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : gltevjme ( 1095) PHP Version : 7.0.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/gltevjme/ideyshare.name.ng/ner2/ucloud/themes/evolution/controllers/ |
Upload File : |
<?php namespace Themes\Evolution\Controllers; use App\Controllers\FileController AS CoreFileController; use App\Controllers\AccountController; use App\Models\File; use App\Helpers\ThemeHelper; class FileController extends CoreFileController { /** * File password page not needed in this theme. * * @return type */ public function filePassword() { // pickup request for later $request = $this->getRequest(); // in this theme the permissions is handled by the folder $file = File::loadOneByShortUrl($request->query->get('file')); if(!$file) { // on failure return $this->redirect(ThemeHelper::getLoadedInstance()->getAccountWebRoot()); } // redirect to folder, which then prompts for the password $folder = $file->getFolderData(); if(!$folder) { // on failure return $this->redirect(ThemeHelper::getLoadedInstance()->getAccountWebRoot()); } return $this->redirect($folder->getFolderUrl()); } /** * Dedicated file info page not needed in this theme. * * @return type */ public function fileInfo($shortUrl) { // load file $file = File::loadOneByShortUrl($shortUrl); if(!$file) { // on failure return $this->redirect(ThemeHelper::getLoadedInstance()->getAccountWebRoot()); } // call file render page via account controller $accountController = new AccountController(); return $accountController->index($file->id, true); } }