filemtime(): stat failed for /home/klingger/public_html/studiopl/public_html/templates/!Index.html
/home/klingger/public_html/studiopl/vendor/Onion/Templating/View.php
http://klingger.webstranky.net/~klingger/studiopl/public_html/sk/uvod (GET)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36
141 $operation = $tmp[1];142 }143144 $s['selector'] = $selector;145 $s['operation'] = $operation;146 $s['content'] = trim($snippets[2][$key]);147148 $ajaxTemplate[] = $s;149 }150151 return $ajaxTemplate;152 }153154 public function compile($template = null)155 {156 if ($template === null) {157 $templateName = str_replace($this->templatesDir, '', $this->templateFile);158 $templateName = str_replace(DIR_SEPARATOR, '_', trim($templateName, DIR_SEPARATOR));159160 $templateTime = filemtime($this->templateFile);161162 $hash = sha1((string) $this->hash.$_SERVER['HTTP_HOST'].$templateName.$templateTime);163164 $template = $this->services->cache->fetch($hash, 'template');165166 if ($template !== false) {167 return $template;168 }169170 $template = file_get_contents($this->templateFile);
141 $operation = $tmp[1];142 }143144 $s['selector'] = $selector;145 $s['operation'] = $operation;146 $s['content'] = trim($snippets[2][$key]);147148 $ajaxTemplate[] = $s;149 }150151 return $ajaxTemplate;152 }153154 public function compile($template = null)155 {156 if ($template === null) {157 $templateName = str_replace($this->templatesDir, '', $this->templateFile);158 $templateName = str_replace(DIR_SEPARATOR, '_', trim($templateName, DIR_SEPARATOR));159160 $templateTime = filemtime($this->templateFile);161162 $hash = sha1((string) $this->hash.$_SERVER['HTTP_HOST'].$templateName.$templateTime);163164 $template = $this->services->cache->fetch($hash, 'template');165166 if ($template !== false) {167 return $template;168 }169170 $template = file_get_contents($this->templateFile);
array ( 0 => '/home/klingger/public_html/studiopl/public_html/templates/!Index.html', )
72 return $this;73 }7475 public function setData($data, $merge = true)76 {77 if ($merge === false) {78 $this->data = array();79 }8081 foreach ($data as $variable => $value) {82 $this->__set($variable, $value);83 }84 }8586 public function render($ajax = false, $template = null)87 {88 if ($template === null) {89 $this['__TEMPLATE__'] = pathinfo($this->templateFile, PATHINFO_BASENAME);90 }91 $template = $this->compile($template);9293 foreach ($this->data as $var => $val) {94 $this->$var = $val;95 }9697 if (DEBUG === true) {98 $tempFile = TEMP_DIR.'/'.uniqid();99 file_put_contents($tempFile, $template);100101 ob_start();
array ( 0 => 'NULL', )
162 $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');180181 $body = $view->render($this->request->isAjax());182183 $this->response->setBody($body);184 } else {185 $this->runHooks('system.hooks.beforeRenderView');186187 $this->response->setBody($this->controller->view);188 }189190 $_SESSION['onion.flash'] = $this->flash['next'];191
array ( 0 => 'false', )
130 WWW_DIR.'/js/jquery.dropotron.min.js',131 WWW_DIR.'/js/skel.min.js',132 //WWW_DIR.'/js/respond.min.js',133 WWW_DIR.'/js/util.js',134 WWW_DIR.'/js/main.js',135 ),136 'less' => array(137 //WWW_DIR.'/less/main.less'138 ),139 'css' => array(140 WWW_DIR.'/scss/main.css',141 //WWW_DIR.'/scss/paginator.scss'142 )143 )144 )145 );146147 $app = new \Onion\Application($configuration);148149 $app->run();150 exit;
array ( )
1213 // 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 require ONIONCMS_DIR.'/bootstrap.php';
array ( 0 => '/home/klingger/public_html/studiopl/vendor/onionCMS/bootstrap.php', )
array ( 'REDIRECT_STATUS' => '200', 'HTTP_HOST' => 'klingger.webstranky.net', 'HTTP_CONNECTION' => 'keep-alive', 'HTTP_CACHE_CONTROL' => 'max-age=0', 'HTTP_UPGRADE_INSECURE_REQUESTS' => '1', 'HTTP_USER_AGENT' => 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36', 'HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', 'HTTP_REFERER' => 'http://klingger.webstranky.net/~klingger/studiopl/', 'HTTP_ACCEPT_ENCODING' => 'gzip, deflate', 'HTTP_ACCEPT_LANGUAGE' => 'sk-SK,sk;q=0.9,cs;q=0.8,en-US;q=0.7,en;q=0.6', 'HTTP_COOKIE' => 'qazfdrtygdfxsw=6qfp22qtb8usl8ie0bk58lr4pt; XDEBUG_SESSION=VSCODE', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache/2.4.41 (Unix) PHP/7.4.1', 'SERVER_NAME' => 'klingger.webstranky.net', 'SERVER_ADDR' => '192.168.1.10', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '192.168.1.10', 'DOCUMENT_ROOT' => '/etc/httpd/docs/dummy-host.example.com', 'REQUEST_SCHEME' => 'http', 'CONTEXT_PREFIX' => '/~klingger', 'CONTEXT_DOCUMENT_ROOT' => '/home/klingger/public_html', 'SERVER_ADMIN' => 'webmaster@dummy-host.example.com', 'SCRIPT_FILENAME' => '/home/klingger/public_html/studiopl/public_html/index.php', 'REMOTE_PORT' => '57778', 'REDIRECT_URL' => '/~klingger/studiopl/public_html/sk/uvod', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/~klingger/studiopl/public_html/sk/uvod', 'SCRIPT_NAME' => '/~klingger/studiopl/public_html/index.php', 'PHP_SELF' => '/~klingger/studiopl/public_html/index.php', 'REQUEST_TIME_FLOAT' => 1578815475.694, 'REQUEST_TIME' => 1578815475, )
array ( )