file_get_contents(): Filename cannot be empty
/mnt/devel/Atrium/atriumstudio/vendor/onionCMS/Modules/PhotoManager/Controllers/PhotoController.php
Mozilla/5.0 (X11; Linux x86_64; rv:127.0) Gecko/20100101 Firefox/127.0
23 }2425 $where = array();26 $where[] = array('file', $file);27 $where[] = array('photos_descriptions.language', $this->services->onionCMS->language['id']);2829 try {30 $photoModel = $this->services->getFactory('photoModel')->create($where);31 } catch (\Onion\Database\ModelException $e) {32 $this->app->notFound(__('Fotografia neexistuje!'));33 }3435 $cachedFileData = $photoModel->createCachedFile($type, $width, $height, $watermark);3637 $this->app->keepFlash();3839 $this->app->response->cacheLifetime = 31536000;40 $this->app->response->addHeader('Content-Type', $cachedFileData['mime']);41 $this->app->response->encoding = null;42 $this->view = file_get_contents($cachedFileData['cache_file']);43 }44 }
23 }2425 $where = array();26 $where[] = array('file', $file);27 $where[] = array('photos_descriptions.language', $this->services->onionCMS->language['id']);2829 try {30 $photoModel = $this->services->getFactory('photoModel')->create($where);31 } catch (\Onion\Database\ModelException $e) {32 $this->app->notFound(__('Fotografia neexistuje!'));33 }3435 $cachedFileData = $photoModel->createCachedFile($type, $width, $height, $watermark);3637 $this->app->keepFlash();3839 $this->app->response->cacheLifetime = 31536000;40 $this->app->response->addHeader('Content-Type', $cachedFileData['mime']);41 $this->app->response->encoding = null;42 $this->view = file_get_contents($cachedFileData['cache_file']);43 }44 }
array ( 0 => '', )
151152 if ($this->actionName === null) {153 $this->actionName = $this->currentRoute->action;154 }155 preg_match('/([A-Za-z0-9]+)Controller/', $this->controllerName, $match);156 if (isset($match[1]) === true) {157 $view->setTemplate(APP_DIR.'/Templates/'.$match[1].'.html');158 }159160 $this->controller = new $this->controllerName($this->container);161162 $parameters = $this->currentRoute->getResource();163164 $this->runHooks('system.hooks.afterCreateController');165166 call_user_func_array(array($this->controller, 'before'), $parameters);167168 $this->runHooks('system.hooks.beforeControllerRun');169170 call_user_func_array(array($this->controller, $this->actionName), $parameters);171172 $this->runHooks('system.hooks.afterControllerRun');173174 call_user_func_array(array($this->controller, 'after'), $parameters);175176 if (is_object($this->controller->view) === true) {177 $view['flash'] = $this->flash['current'];178179 $this->runHooks('system.hooks.beforeRenderView');180
array ( 0 => array ( 0 => 'object (onionCMS\\Modules\\PhotoManager\\Controllers\\PhotoController)', 1 => 'send', ), 1 => array ( 'file' => '72d69a26915248faef34a3767a0917d3e24ef9bb', 'type' => 'thumb', 'size' => '480x480', ), )
132 WWW_DIR.'/js/vendor/cookie.js',133 WWW_DIR.'/js/vendor/scroll-top.js',134 ),135 'less' => array(136 )137 ),138 'after' => array(139 'js' => array(140 WWW_DIR.'/js/main.js',141 ),142 'less' => array(143 WWW_DIR.'/less/main.less'144 )145 )146 )147 );148149 $app = new \Onion\Application($configuration);150151 $app->run();152 exit;
array ( )
13 // absolute filesystem path to the libraries14 define('LIBS_DIR', realpath(WWW_DIR.'/../vendor'));1516 // absolute filesystem path to the web root17 define('ONION_DIR', LIBS_DIR.'/Onion');1819 // absolute filesystem path to the application root20 define('APP_DIR', WWW_DIR.'/../app');2122 // absolute filesystem path to the temporary files23 define('TEMP_DIR', realpath(WWW_DIR.'/../temp'));2425 // absolute filesystem path to the cache26 define('CACHE_DIR', realpath(WWW_DIR.'/../cache'));2728 define('ONIONCMS_DIR', realpath(ONION_DIR.'/../onionCMS'));2930 // load bootstrap file31 if ($_SERVER["SERVER_ADDR"] === "127.0.0.1") {32 require ONIONCMS_DIR.'/bootstrap.dev.php';33 } else {34 require ONIONCMS_DIR.'/bootstrap.php';35 }
array ( 0 => '/mnt/devel/Atrium/atriumstudio/vendor/onionCMS/bootstrap.dev.php', )
array ( 'REDIRECT_STATUS' => '200', 'HTTP_HOST' => 'www.atriumarchitekti.loc', 'HTTP_USER_AGENT' => 'Mozilla/5.0 (X11; Linux x86_64; rv:127.0) Gecko/20100101 Firefox/127.0', 'HTTP_ACCEPT' => 'image/avif,image/webp,*/*', 'HTTP_ACCEPT_LANGUAGE' => 'sk,cs;q=0.8,en-US;q=0.5,en;q=0.3', 'HTTP_ACCEPT_ENCODING' => 'gzip, deflate', 'HTTP_CONNECTION' => 'keep-alive', 'HTTP_REFERER' => 'http://www.atriumarchitekti.loc/sk/architektura/byvanie', 'HTTP_COOKIE' => 'language=sk; cookieconsent_dismissed=yes; ws56trt87dfgxzaq=cVFZTEdEL25uVk1JM1ZpSkgzQzRrSkFDSW1aN2VlY2xXOWdlR0JGTVg3ZjlYU1JnQmhYK2xGVEZBTk1WcVRVQ0MzTkNXUEFyMGJlZ3l5OElEZnA3OTBjL0lQaVAzMHQrRUI4MXlHUW5lTDlGdFdINkowdHRIYUZGNU1NR3R4WjFvcDVac3IrR1lITy9qSjR6RTRGS2JyMmVDdTVrU01xcEpJTU9sSDdMeGxLUnhES0hqeFQvdVE3REFGT1BGc3JiZGt3WTZsWHEyeGwwZmthQUI5dmhRbXhheWIxdDI1MitYUFZnVkF6amx2Tk5ITGdMcmFIQnc0TjZzQVFCQitPMGFBYTFacW53Q3RBPTFmYmZkYTg4; qazfdrtygdfxsw=a1s3bv3rr2mkgko88kojjhdm58', 'HTTP_PRIORITY' => 'u=4', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'SERVER_SIGNATURE' => '<address>Apache/2.4.38 (Debian) Server at www.atriumarchitekti.loc Port 80</address> ', 'SERVER_SOFTWARE' => 'Apache/2.4.38 (Debian)', 'SERVER_NAME' => 'www.atriumarchitekti.loc', 'SERVER_ADDR' => '127.0.0.1', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '127.0.0.1', 'DOCUMENT_ROOT' => '/mnt/devel/Atrium/atriumstudio/www_root', 'REQUEST_SCHEME' => 'http', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/mnt/devel/Atrium/atriumstudio/www_root', 'SERVER_ADMIN' => 'webmaster@localhost', 'SCRIPT_FILENAME' => '/mnt/devel/Atrium/atriumstudio/www_root/index.php', 'REMOTE_PORT' => '36582', 'REDIRECT_URL' => '/files/photos/cache/72d69a26915248faef34a3767a0917d3e24ef9bb/thumb/480x480', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/files/photos/cache/72d69a26915248faef34a3767a0917d3e24ef9bb/thumb/480x480', 'SCRIPT_NAME' => '/index.php', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => 1718821959.084, 'REQUEST_TIME' => 1718821959, )
array ( )