syntax error, unexpected ','
/mnt/devel/Atrium/atriumstudio/vendor/onionCMS/Core/Controllers/PublicBaseController.php
http://www.atriumarchitekti.loc/sk/uvod (GET)
Mozilla/5.0 (X11; Linux x86_64; rv:131.0) Gecko/20100101 Firefox/131.0
78 setcookie('language', $languageCode, time() + (10 * 365 * 24 * 60 * 60), $cookiePath, $cookieDomain);79 }80 }81 }828384 public function after()85 {86 if (is_object($this->view) === false) {87 return;88 }8990 $this->view['title'] = strip_tags($this->title);91 $this->view['description'] = strip_tags($this->description);92 $keywords = trim($this->keywords, ',');93 $this->view['keywords'] = strip_tags($keywords);94 $this->view['websiteName'] = strip_tags($this->websiteName);95 $this->view['websiteLongName'] = strip_tags($this->websiteLongName);9697 var_dump($_COOKIE, $this->consentCookie), $this->xxx;98 exit;99 $this->view["consent_cookie"] = $this->consentCookie;100 $this->view["consent_cookie_allowed"] = $this->consentCookieAllowed;101102 if (\Onion\Utils\Visitor::isMobile() === true) {103 $this->view['mobile'] = 'mobile';104 }105106 parent::after();107 }
23 namespace onionCMS\Modules\Pages\Controllers;45 class PageController extends \onionCMS\Core\Controllers\PublicBaseController6 {7 public function index()8 {9 $language = $this->services->onionCMS->language;1011 $where = array();12 $where[] = array('main', true);13 $where[] = array('pages_contents.language', $language['id']);14 $where[] = array('pages_contents.language.show', true);1516 try {17 $pageModel = $this->services->getFactory('pageModel')->create($where);1819 } catch (\Onion\Database\ModelException $e) {20 $where = array();21 $where[] = array('pages_contents.language', $language['id']);22 $pageModel = $this->services->pageModel->fetchMultiple($where, array('id', 'ASC'), 1)->fetch();23 }2425 $resource = array(26 'languageCode' => $language['code'],27 'pageUrl' => $pageModel['url']28 );2930 $url = $this->app->router->createUrl('page', $resource);31 $this->app->redirect($url);
array ( 0 => 'onionCMS\\Core\\Controllers\\PublicBaseController', )
462 if (isset($thirdParty[$className]) === TRUE) {463 require(ONION_DIR.'/ThirdParty/'.$thirdParty[$className]);464 return;465 }466467 $className = ltrim($className, '\\');468 $fileName = '';469 $namespace = '';470 if ($lastNsPos = strrpos($className, '\\')) {471 $namespace = substr($className, 0, $lastNsPos);472 $className = substr($className, $lastNsPos + 1);473 $fileName = str_replace('\\', DIRECTORY_SEPARATOR, $namespace).DIRECTORY_SEPARATOR;474 }475 $fileName .= str_replace('_', DIRECTORY_SEPARATOR, $className).'.php';476477 if (file_exists(LIBS_DIR.'/'.$fileName) === false) {478 return false;479 }480481 require(LIBS_DIR.'/'.$fileName);482 }483 }
array ( 0 => '/mnt/devel/Atrium/atriumstudio/vendor/onionCMS/Modules/Pages/Controllers/PageController.php', )
141 $view['url'] = $this->request->url;142 $view['resource'] = $this->request->resource;143 $view['resourceArray'] = $this->request->resourceArray;144 $view['routeName'] = $this->route['name'];145 $view['root'] = $this->request->root;146 $view['configuration'] = $this->configuration;147148 if ($this->controllerName === null) {149 $this->controllerName = $this->currentRoute->controller;150 }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);
array ( 0 => 'onionCMS\\Modules\\Pages\\Controllers\\PageController', )
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:131.0) Gecko/20100101 Firefox/131.0', 'HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/png,image/svg+xml,*/*;q=0.8', 'HTTP_ACCEPT_LANGUAGE' => 'sk,cs;q=0.8,en-US;q=0.5,en;q=0.3', 'HTTP_ACCEPT_ENCODING' => 'gzip, deflate', 'HTTP_REFERER' => 'http://www.atriumarchitekti.loc/sk/uvod', 'HTTP_CONNECTION' => 'keep-alive', 'HTTP_COOKIE' => 'consent_cookie=%7B%22preferences%22%3Atrue%2C%22statistics%22%3Atrue%7D; qazfdrtygdfxsw=acbav3ib6uaef69ck8177g1eqdmikfehdflorcajpk8mpv6ph0g513to2so8fifnbmci2b987v24pe8nlmb3rdabdgvm3dn9rqipcv3; language=sk', 'HTTP_UPGRADE_INSECURE_REQUESTS' => '1', 'HTTP_PRIORITY' => 'u=0, i', 'HTTP_PRAGMA' => 'no-cache', 'HTTP_CACHE_CONTROL' => 'no-cache', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'SERVER_SIGNATURE' => '<address>Apache/2.4.25 (Debian) Server at www.atriumarchitekti.loc Port 80</address> ', 'SERVER_SOFTWARE' => 'Apache/2.4.25 (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' => '56902', 'REDIRECT_URL' => '/sk/uvod', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/sk/uvod', 'SCRIPT_NAME' => '/index.php', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => 1728758138.155, 'REQUEST_TIME' => 1728758138, )
array ( )