mysqli::mysqli() [mysqli.mysqli]: (42000/1044): Access denied for user 'ad000500'@'localhost' to database 'ad000501db'
/home/sw015200/vendor/Onion/Database/MySQL.php
https://www.atriumarchitekti.sk/ (GET)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.6312.87 Safari/537.36
209 }210211 /**212 * Pripojenie k databázovému serveru213 *214 * @return void215 */216 private function connect()217 {218 $hash = sha1($this->host.$this->user.$this->password.$this->database);219220 if (isset($this->connections[$hash]) === true) {221 $this->mysqli = $this->connections[$hash];222223 if (@$this->mysqli->ping() === true) {224 return;225 }226 }227228 $mysqli = new \mysqli($this->host, $this->user, $this->password, $this->database, $this->port, $this->socket);229230 if ($mysqli->connect_error === false) {231 throw new \Onion\Database\DatabaseException($mysqli->connect_error, $mysqli->connect_errno);232 }233234 if ($mysqli->set_charset('utf8') === false) {235 throw new \Onion\Database\DatabaseException($mysqli->connect_error, $mysqli->connect_errno);236 }237238 $this->mysqli = $mysqli;
209 }210211 /**212 * Pripojenie k databázovému serveru213 *214 * @return void215 */216 private function connect()217 {218 $hash = sha1($this->host.$this->user.$this->password.$this->database);219220 if (isset($this->connections[$hash]) === true) {221 $this->mysqli = $this->connections[$hash];222223 if (@$this->mysqli->ping() === true) {224 return;225 }226 }227228 $mysqli = new \mysqli($this->host, $this->user, $this->password, $this->database, $this->port, $this->socket);229230 if ($mysqli->connect_error === false) {231 throw new \Onion\Database\DatabaseException($mysqli->connect_error, $mysqli->connect_errno);232 }233234 if ($mysqli->set_charset('utf8') === false) {235 throw new \Onion\Database\DatabaseException($mysqli->connect_error, $mysqli->connect_errno);236 }237238 $this->mysqli = $mysqli;
array ( 0 => 'localhost', 1 => 'ad000500', 2 => 'todtoikeo', 3 => 'ad000501db', 4 => '3306', 5 => '', )
233234 if ($mysqli->set_charset('utf8') === false) {235 throw new \Onion\Database\DatabaseException($mysqli->connect_error, $mysqli->connect_errno);236 }237238 $this->mysqli = $mysqli;239240 $this->connections[$hash] = $mysqli;241 }242243 /**244 * Nastavenie mena tabuľky s ktorou sa bude pracovať a nastavenie jej väzieb245 * s inými tabuľkami a jej stĺpcov a zresetovanie ostatných parametrov objektu246 *247 * @param string meno tabuľky248 * @return object Database pre fluent interface249 */250 public function table($table)251 {252 $this->connect();253254 $this->table = $table;255256 if ($this->relations === null) {257 $this->relations = $this->getRelations();258 }259260 if (isset($this->relations[$table]) === true) {261 $this->tableRelations = $this->relations[$table];262
array ( )
23 namespace onionCMS\Core\Libs;45 class Configuration6 {7 private $db;8910 private $keys;111213 private $indexModuleGroupKey = array();141516 public function __construct($db)17 {18 $this->db = $db;1920 $this->keys = $this->db21 ->table('configuration')22 ->orderBy('module', 'ASC')23 ->orderBy('group', 'ASC')24 ->orderBy('order', 'ASC')25 ->columns(26 'module as module_id',27 'module.name as module',28 'group',29 'key',30 'value',31 'type',
array ( 0 => 'configuration', )
51 $arg = $this->services->getService($parts[0]);52 if (count($parts) > 1) {53 eval('$arg = $arg->'.$parts[1].';');54 }55 } elseif (substr($dep, 0, 8) === 'factory@') {56 $arg = $this->services->getService($dep);5758 } else {59 $arg = $dep;60 }61 $arguments[] = $arg;62 } else {63 $arguments[] = $dep;64 }65 }6667 if (method_exists($this->class, '__construct') === false) {68 $object = new $this->class;69 } else {70 $object = $rc->newInstanceArgs($arguments);71 }7273 foreach ($this->properties as $property => $value) {74 if ($dep instanceof ServiceBuilder) {75 $value = $value->create();7677 } elseif (is_string($value) === true) {78 if (isset($dep[0]) === true79 AND $dep[0] === '@') {80
array ( 0 => array ( 0 => 'object (Onion\\Database\\MySQL)', ), )
69 }707172 public function getService($name, $deps = null)73 {74 if (substr($name, 0, 8) === 'factory@') {75 $name = substr($name, 8);76 return $this->factory[$name];77 }7879 if (isset($this->objects[$name]) === false) {80 throw new \InvalidArgumentException('Service "'.$name.'" is not registered!');81 }8283 if (is_array($deps) === true) {84 return call_user_func_array(array($this->factory[$name], 'create'), $deps);85 }8687 if ($this->objects[$name] instanceof \Onion\DI\Factory) {88 $this->objects[$name] = $this->objects[$name]->create();89 }9091 return $this->objects[$name];92 }939495 public function serviceExists($name)96 {97 return isset($this->objects[$name]);98 }
array ( )
84 return call_user_func_array(array($this->factory[$name], 'create'), $deps);85 }8687 if ($this->objects[$name] instanceof \Onion\DI\Factory) {88 $this->objects[$name] = $this->objects[$name]->create();89 }9091 return $this->objects[$name];92 }939495 public function serviceExists($name)96 {97 return isset($this->objects[$name]);98 }99100101 public function __get($name)102 {103 return $this->getService($name);104 }105 }
array ( 0 => 'configuration', )
403 $_SESSION['logged_as_admin'] = true;404 }405406 if ($this->app->user->isLoggedIn() === false407 or $this->app->user->isInGroup($this->app->currentRoute->groups) === false) {408409 $this->app->actionName = 'form';410 if ($this->isAdminUrl === true) {411 $this->app->controllerName = '\onionCMS\Core\Controllers\AdminLoginController';412 } else {413 $this->app->controllerName = 'Login';414 }415 }416417 }418419420 public function loadConfiguration()421 {422 foreach ($this->services->configuration->getKeys() as $key) {423 $i = array();424 $i[] = strtolower($key['module']);425 if (empty($key['group']) === false) {426 $i[] = $key['group'];427 }428 $i[] = $key['key'];429 $i = implode('.', $i);430431 $this->app->configuration[$i] = $key['value'];432 }
array ( 0 => 'configuration', )
23 public $commonAssets;2425 public $printAssets;2627 public $modulesLibs = array();2829 public function __construct($services)30 {31 $this->services = $services;32 $this->app = $services->app;3334 $this->cache = $services->cache;3536 spl_autoload_register(array($this, 'loader'));37 }383940 public function init()41 {42 $this->loadConfiguration();4344 // Nastavenie hlavičky pre IE45 $this->app->response->addHeader('X-UA-Compatible', 'IE=edge,chrome=1');4647 $this->languages = $this->services->db48 ->table('languages')49 ->where('show', true)50 ->select()51 ->fetchAssoc('code');52
array ( )
404 and is_object($hook[0]) === false405 ) {406407 if ($hook[0][0] === '@') {408 $serviceName = substr($hook[0], 1);409 $hook[0] = $this->container->$serviceName;410 } else {411 $hook[0] = new $hook[0]($this);412 }413 }414415 $parameters = (array) $this->parameters;416 if (empty($hook[2]) === false) {417 $parameters = array_merge((array) $hook[2], $parameters);418 }419420 if (is_string($hook) === true) {421 call_user_func_array($hook, $parameters);422 } else {423 call_user_func_array(array($hook[0], $hook[1]), $parameters);424 }425 }426 }427428429 /**430 * Presmerovanie požiadavky431 *432 * @param string|null adresa kam presmerovať, ak je null presmeruje sa na aktuálnu adresu433 * @param int HTTP kód
array ( 0 => array ( 0 => 'object (onionCMS\\Core\\Libs\\onionCMS)', 1 => 'init', ), 1 => array ( ), )
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);104105 $escape = new \Onion\Templating\Escape;106 $this->container->addService('escape', $escape);107 $view = new \Onion\Templating\View($this->container);108 $this->container->addService('view', $view);109110 $this->container->addServices($configuration['system.services']);111 }112113 /**114 * Spustenie aplikácie115 */116 public function run()117 {118 $this->runHooks('system.hooks.onStart');119120 $this->currentRoute = $this->router->findCurrentRoute();121122 if ($this->currentRoute === null) {123 $this->notFound('Not found!');124 }125126 $this->startSession();127128 $this->runHooks('system.hooks.beforeCreateController');
array ( 0 => 'system.hooks.onStart', )
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 ( )
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/sw015200/vendor/onionCMS/bootstrap.php', )
array ( 'SCRIPT_URL' => '/', 'SCRIPT_URI' => 'https://www.atriumarchitekti.sk/', 'HTTP_AUTHORIZATION' => '', 'HTTPS' => 'on', 'SSL_TLS_SNI' => 'www.atriumarchitekti.sk', 'HTTP_HOST' => 'www.atriumarchitekti.sk', 'HTTP_CONNECTION' => 'keep-alive', 'HTTP_SEC_CH_UA' => '".Not/A)Brand";v="99", "Google Chrome";v="123", "Chromium";v="123"', 'HTTP_SEC_CH_UA_MOBILE' => '?0', 'HTTP_SEC_CH_UA_PLATFORM' => '"macOS"', 'HTTP_UPGRADE_INSECURE_REQUESTS' => '1', 'HTTP_USER_AGENT' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.6312.87 Safari/537.36', 'HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', 'HTTP_SEC_FETCH_SITE' => 'none', 'HTTP_SEC_FETCH_MODE' => 'navigate', 'HTTP_SEC_FETCH_USER' => '?1', 'HTTP_SEC_FETCH_DEST' => 'document', 'HTTP_ACCEPT_ENCODING' => 'gzip, deflate, br', 'HTTP_ACCEPT_LANGUAGE' => 'en-US,en;q=0.9', 'PATH' => '/sbin:/usr/sbin:/bin:/usr/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'www.atriumarchitekti.sk', 'SERVER_ADDR' => '93.184.77.83', 'SERVER_PORT' => '443', 'REMOTE_ADDR' => '104.28.254.73', 'DOCUMENT_ROOT' => '/home/sw015200/www_root', 'SERVER_ADMIN' => 'webmaster@sw015200.hh', 'SCRIPT_FILENAME' => '/home/sw015200/www_root/index.php', 'REMOTE_PORT' => '52407', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/', 'SCRIPT_NAME' => '/index.php', 'PHP_SELF' => '/index.php', 'REQUEST_TIME' => 1739795396, )