Call to undefined function Onion\Utils\create_function()
/srv/http/dev/sprevadzaniekosice.sk/vendor/Onion/Utils/Strings.php
https://nat-88-212-45-6.antik.sk/sprevadzaniekosice.sk/public_html/ (GET)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.43
99 }100101 public static function splitByUpperChars($string)102 {103 return preg_split('/([A-Z]+[a-z]*)/', $string, -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);104 }105106 public static function fromCamelCase($str)107 {108 $str[0] = strtolower($str[0]);109 $func = create_function('$c', 'return "_".strtolower($c[1]);');110 return preg_replace_callback('/([A-Z])/', $func, $str);111 }112113 public static function toCamelCase($str, $capitalise_first_char = false)114 {115 if($capitalise_first_char) {116 $str[0] = strtoupper($str[0]);117 }118 $func = create_function('$c', 'return strtoupper($c[1]);');119 return preg_replace_callback('/_([a-z])/', $func, $str);120 }121122 public static function randomString($length = 9, $strength = 0)123 {124 $vowels = 'aeiouy';125 $consonants = 'bdghjmnpqrstvz';126 if ($strength & 1) {127 $consonants .= 'BDGHJLMNPQRSTVWXZ';128 }
113 'text/css' => 'css',114115 'text/csv' => 'csv',116117 'text/javascript' => 'js',118 'application/javascript' => 'js',119120 'text/plain' => 'txt',121 );122123124 public $xmlRootElement = 'root';125126127 public function __construct(Request $request)128 {129 $this->request = $request;130131 // Zatiaľ mime nastavovať na HTML, XMl robí veľa problémov132 if ($this->request->mime === 'application/xhtml+xml'133 OR $this->request->mime === 'application/xml') {134135 $this->responseType = 'text/html';136137 } else {138 if ($this->request->mime[0] === '*') {139 $this->responseType = 'text/html';140141 } else {142 $this->responseType = $this->request->mime;
array ( )
7475 /**76 * Konštruktor77 *78 * @param array associatívne pole s nastaveniami79 * @return void80 */81 public function __construct($configuration)82 {83 foreach ($configuration['php'] as $directive => $value) {84 ini_set($directive, $value);85 }8687 spl_autoload_register(array($this, 'loader'));8889 $this->container = new \Onion\DI\Container;90 $this->container->addService('services', $this->container);9192 $this->request = new \Onion\Application\Request;93 $this->response = new \Onion\Application\Response($this->request);9495 $this->container->addService('request', $this->request);96 $this->container->addService('response', $this->response);9798 $routeFactory = new \Onion\DI\Factory($this->container, '\Onion\Application\Router\Route');99 $this->container->addService('router', '\Onion\Application\Router', array($this->request, $routeFactory));100 $this->router = $this->container->getFactory('router')->create();101102 $this->configure($configuration);103 $this->container->addService('app', $this);
array ( )
126 WWW_DIR . '/js/skel.min.js',127 WWW_DIR . '/js/util.js',128 WWW_DIR . '/js/main.js',129 ),130 'less' => array(131 WWW_DIR.'/css/main.less',132 )133 ),134 'after' => array(135 'js' => array(136 ),137 'css' => array(138 ),139 'less' => array(140 )141 )142 )143 );144145 $app = new \Onion\Application($configuration);146147 $app->run();148 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 => '/srv/http/dev/sprevadzaniekosice.sk/vendor/onionCMS/bootstrap.php', )
array ( 'SCRIPT_URL' => '/sprevadzaniekosice.sk/public_html/', 'SCRIPT_URI' => 'https://nat-88-212-45-6.antik.sk/sprevadzaniekosice.sk/public_html/', 'HTTPS' => 'on', 'SSL_TLS_SNI' => 'nat-88-212-45-6.antik.sk', 'HTTP_HOST' => 'nat-88-212-45-6.antik.sk', 'HTTP_USER_AGENT' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.43', 'HTTP_ACCEPT_ENCODING' => 'gzip, deflate', 'HTTP_REFERER' => 'https://nat-88-212-45-6.antik.sk/sprevadzaniekosice.sk/public_html', 'HTTP_ACCEPT' => '*/*', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache/2.4.63 (Unix) OpenSSL/3.4.1 PHP/8.4.5', 'SERVER_NAME' => 'nat-88-212-45-6.antik.sk', 'SERVER_ADDR' => '192.168.1.10', 'SERVER_PORT' => '443', 'REMOTE_ADDR' => '192.168.1.1', 'DOCUMENT_ROOT' => '/srv/http/dev', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/srv/http/dev', 'SERVER_ADMIN' => 'webmaster@webstranky.net', 'SCRIPT_FILENAME' => '/srv/http/dev/sprevadzaniekosice.sk/public_html/index.php', 'REMOTE_PORT' => '52813', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/sprevadzaniekosice.sk/public_html/', 'SCRIPT_NAME' => '/sprevadzaniekosice.sk/public_html/index.php', 'PHP_SELF' => '/sprevadzaniekosice.sk/public_html/index.php', 'REQUEST_TIME_FLOAT' => 1745195842.104383, 'REQUEST_TIME' => 1745195842, )