/home/slovart/test/releases/20250428132458/vendor/zendframework/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php
$dsn,
$this->_config['username'],
$this->_config['password'],
$this->_config['driver_options']
);
$this->_profiler->queryEnd($q);
// set the PDO connection to perform case-folding on array keys, or not
$this->_connection->setAttribute(PDO::ATTR_CASE, $this->_caseFolding);
// always use exceptions.
$this->_connection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
} catch (PDOException $e) {
/**
* @see Zend_Db_Adapter_Exception
*/
require_once 'Zend/Db/Adapter/Exception.php';
throw new Zend_Db_Adapter_Exception($e->getMessage(), $e->getCode(), $e);
}
}
/**
* Test if a connection is active
*
* @return boolean
*/
public function isConnected()
{
return ((bool) ($this->_connection instanceof PDO));
}
/**
* Force the connection to close.
*
* @return void
*/
public function closeConnection()
Arguments
"SQLSTATE[HY000] [1045] Access denied for user 'ZLEslovarttestdbu'@'localhost' (using password: YES)"
/home/slovart/test/releases/20250428132458/vendor/zendframework/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php
* @see Zend_Db_Adapter_Exception
*/
require_once 'Zend/Db/Adapter/Exception.php';
throw new Zend_Db_Adapter_Exception('The ' . $this->_pdoType . ' driver is not currently installed');
}
// create PDO connection
$q = $this->_profiler->queryStart('connect', Zend_Db_Profiler::CONNECT);
// add the persistence flag if we find it in our config array
if (isset($this->_config['persistent']) && ($this->_config['persistent'] == true)) {
$this->_config['driver_options'][PDO::ATTR_PERSISTENT] = true;
}
try {
$this->_connection = new PDO(
$dsn,
$this->_config['username'],
$this->_config['password'],
$this->_config['driver_options']
);
$this->_profiler->queryEnd($q);
// set the PDO connection to perform case-folding on array keys, or not
$this->_connection->setAttribute(PDO::ATTR_CASE, $this->_caseFolding);
// always use exceptions.
$this->_connection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
} catch (PDOException $e) {
/**
* @see Zend_Db_Adapter_Exception
*/
require_once 'Zend/Db/Adapter/Exception.php';
throw new Zend_Db_Adapter_Exception($e->getMessage(), $e->getCode(), $e);
}
}
Arguments
"SQLSTATE[HY000] [1045] Access denied for user 'ZLEslovarttestdbu'@'localhost' (using password: YES)"
/home/slovart/test/releases/20250428132458/vendor/zendframework/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php
* @see Zend_Db_Adapter_Exception
*/
require_once 'Zend/Db/Adapter/Exception.php';
throw new Zend_Db_Adapter_Exception('The ' . $this->_pdoType . ' driver is not currently installed');
}
// create PDO connection
$q = $this->_profiler->queryStart('connect', Zend_Db_Profiler::CONNECT);
// add the persistence flag if we find it in our config array
if (isset($this->_config['persistent']) && ($this->_config['persistent'] == true)) {
$this->_config['driver_options'][PDO::ATTR_PERSISTENT] = true;
}
try {
$this->_connection = new PDO(
$dsn,
$this->_config['username'],
$this->_config['password'],
$this->_config['driver_options']
);
$this->_profiler->queryEnd($q);
// set the PDO connection to perform case-folding on array keys, or not
$this->_connection->setAttribute(PDO::ATTR_CASE, $this->_caseFolding);
// always use exceptions.
$this->_connection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
} catch (PDOException $e) {
/**
* @see Zend_Db_Adapter_Exception
*/
require_once 'Zend/Db/Adapter/Exception.php';
throw new Zend_Db_Adapter_Exception($e->getMessage(), $e->getCode(), $e);
}
}
/home/slovart/test/releases/20250428132458/vendor/zendframework/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php
/**
* Creates a PDO object and connects to the database.
*
* @return void
* @throws Zend_Db_Adapter_Exception
*/
protected function _connect()
{
if ($this->_connection) {
return;
}
if (!empty($this->_config['charset'])
&& version_compare(PHP_VERSION, '5.3.6', '<')
) {
$initCommand = "SET NAMES '" . $this->_config['charset'] . "'";
$this->_config['driver_options'][1002] = $initCommand; // 1002 = PDO::MYSQL_ATTR_INIT_COMMAND
}
parent::_connect();
}
/**
* @return string
*/
public function getQuoteIdentifierSymbol()
{
return "`";
}
/**
* Returns a list of the tables in the database.
*
* @return array
*/
public function listTables()
{
return $this->fetchCol('SHOW TABLES');
}
/home/slovart/test/releases/20250428132458/vendor/buxus/legacy-base/buxus/includes/classes/db/buxus_db_adapter_mysql.php
<?php
require_once 'includes/classes/db/buxus_db_adapter.php';
require_once 'includes/classes/db/buxus_db_statement_pdo.php';
class BuxusDB_Adapter_Mysql extends Zend_Db_Adapter_Pdo_Mysql implements BuxusDB_Adapter {
/**
* Default class name for a DB statement.
*
* @var string
*/
protected $_defaultStmtClass = 'BuxusDB_Statement_PDO';
protected function _connect() {
if ($this->_connection) {
return;
}
parent::_connect();
if (array_key_exists("encoding", $this->_config)) {
$this->_connection->query("SET CHARACTER SET '" . $this->_config['encoding'] . "'");
$this->_connection->query("SET NAMES '" . $this->_config['encoding'] . "'");
}
// $this->_connection->query("SET SESSION sql_mode = 'STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'");
}
public static function affectedRows($result)
{
return($result->rowCount());
}
public function quoteString($str)
{
if(empty($str)) {
return('NULL');
}
else {
return($this->quote($str));
}
/home/slovart/test/releases/20250428132458/vendor/zendframework/zendframework1/library/Zend/Db/Adapter/Abstract.php
return $value;
} elseif (is_float($value)) {
return sprintf('%F', $value);
}
return "'" . addcslashes($value, "\000\n\r\\'\"\032") . "'";
}
/**
* Safely quotes a value for an SQL statement.
*
* If an array is passed as the value, the array values are quoted
* and then returned as a comma-separated string.
*
* @param mixed $value The value to quote.
* @param mixed $type OPTIONAL the SQL datatype name, or constant, or null.
* @return mixed An SQL-safe quoted value (or string of separated values).
*/
public function quote($value, $type = null)
{
$this->_connect();
if ($value instanceof Zend_Db_Select) {
return '(' . $value->assemble() . ')';
}
if ($value instanceof Zend_Db_Expr) {
return $value->__toString();
}
if (is_array($value)) {
foreach ($value as &$val) {
$val = $this->quote($val, $type);
}
return implode(', ', $value);
}
if ($type !== null && array_key_exists($type = strtoupper($type), $this->_numericDataTypes)) {
$quotedValue = '0';
switch ($this->_numericDataTypes[$type]) {
case Zend_Db::INT_TYPE: // 32-bit integer
/home/slovart/test/releases/20250428132458/vendor/buxus/seourl-legacy/src/SeoUrl.php
return null;
}
/**
* Case, when SEO URL is without page_id
*
* @param string $protocol
* @param string $host_name
* @param string $request_uri
* @return SeoUrlResult
*/
protected function caseOnlySeoUrl($protocol, $host_name, $request_uri)
{
$conditions = array();
if (!is_null($protocol) && (!$this->ignore_protocol)) { // The protocol is defined
$conditions[] = "protocol = " . \BuxusDB::get()->quote($protocol);
}
if (!$this->generate_relative_urls) {
$conditions[] = "domain = " . \BuxusDB::get()->quote($host_name);
}
$conditions[] = "path = " . \BuxusDB::get()->quote($request_uri);
$query = "
SELECT
page_id,
lang,
parameters
FROM
tblSeoUrl
WHERE
" . implode(" AND ", $conditions);
$result = \BuxusDB::get()->fetchRow($query);
if (empty($result)) { // The URL is not fount
return null;
}
// fix for bad parameters
if ($result['parameters'] == 'NULL') {
/home/slovart/test/releases/20250428132458/vendor/buxus/seourl-legacy/src/SeoUrl.php
*
* @param array $url_parts
* @param string $originalRequestUri
* @return SeoUrlResult
*/
protected function specialCases($url_parts, $originalRequestUri)
{
// Quick call
if ($this->enable_quick_call) { // The quick call is enabled
$seo_url_result = $this->caseQuickCall($url_parts);
if (!is_null($seo_url_result)) { // The page was detected
return $seo_url_result;
}
}
// Generat virtual host name
$virtual_host_name = $this->host_name;
// Without page_id
$seo_url_result = $this->caseOnlySeoUrl($this->request_protocol, $virtual_host_name, $this->request_uri);
if (!is_null($seo_url_result)) {
return $seo_url_result;
}
$seo_url_result = $this->externalPluginSourceCaseBeforeArchive(
$this->request_protocol,
$virtual_host_name,
$originalRequestUri
);
if (!is_null($seo_url_result)) {
return $seo_url_result;
}
// Old SEO URL
$seo_url_result = $this->caseArchivedSeoUrl(
$this->request_protocol,
$virtual_host_name,
$this->request_uri
);
if (!is_null($seo_url_result)) {
/home/slovart/test/releases/20250428132458/vendor/buxus/seourl-legacy/src/SeoUrl.php
/**
* @var SeoUrlResult $seo_url_result
*/
$seo_url_result = new SeoUrlResult(
$seo_url_result->getPageId(),
$seo_url_result->getParameters(),
$seo_url_result->isError404(),
$seo_url_result->isRedirect(),
$seo_url_result->isDeleted(),
\Trans::getActiveLanguage()
);
break;
}
}
}
}
}
if (is_null($seo_url_result)) { // The page_id was not detected
$seo_url_result = $this->specialCases($url_parts, $request_uri);
if (is_null($seo_url_result)) { // The page_id was not detected
return new SeoUrlResult($this->error_404_page_id, null, true);
}
}
return $seo_url_result;
}
/**
* Return the page id of request. It is call from "generate_page.php"
*
* @param int $server_port
* @param string $host_name
* @param string $request_uri
* @param bool $redirect_to_404
* @return int
* @throws \Exception
*/
public function getPageId($server_port, $host_name, $request_uri, $redirect_to_404 = true)
/home/slovart/test/releases/20250428132458/vendor/buxus/seourl-legacy/src/SeoUrl.php
* Return the page id of request. It is call from "generate_page.php"
*
* @param int $server_port
* @param string $host_name
* @param string $request_uri
* @param bool $redirect_to_404
* @return int
* @throws \Exception
*/
public function getPageId($server_port, $host_name, $request_uri, $redirect_to_404 = true)
{
if ($this->ignore_protocol) {
$real_protocol = $this->getProtocol($server_port);
$protocol = $this->default_protocol;
} else {
$protocol = $this->getProtocol($server_port);
}
// Find the SEO URL result
$seo_url_result = $this->getSeoUrlResult($protocol, $host_name, $request_uri);
$page_id = $seo_url_result->getPageId();
$result_language = $seo_url_result->getLanguage();
if (empty($result_language)) {
if (!empty($this->default_language)) {
$result_language = $this->default_language;
} else {
$result_language = config('translate.default_language');
}
}
$this->resolved_language = $result_language;
// reset active language in case it was alredy resolved before
\Trans::resetActiveLanguage();
if (!empty($this->seo_page_types)) { // The web has defined SEO URL
if ($seo_url_result->isError404() || $seo_url_result->isDeleted()) { // The error 404 occurred
if (!$redirect_to_404) {
return false;
}
/home/slovart/test/releases/20250428132458/vendor/illuminate/support/Facades/Facade.php
}
/**
* Handle dynamic, static calls to the object.
*
* @param string $method
* @param array $args
* @return mixed
*
* @throws \RuntimeException
*/
public static function __callStatic($method, $args)
{
$instance = static::getFacadeRoot();
if (! $instance) {
throw new RuntimeException('A facade root has not been set.');
}
return $instance->$method(...$args);
}
}
/home/slovart/test/releases/20250428132458/vendor/buxus/core/src/handler/generate_page.php
require_once 'includes/generate_page.inc.php';
require_once 'includes/generate_functions.php';
require_once 'includes/mail_functions.inc.php';
require_once 'project_includes/captcha/captcha.config.php';
require_once 'includes/constants.inc.php';
if (GetSystemOption('C_include_buxus_functions') == '1') {
require_once 'includes/functions.external.inc.php';
}
// set gzhandler
if (GetSystemOption('C_gzhandler_buxus')) {
ob_start('ob_gzhandler');
}
// SEO URL
global $page_id;
$page_id = \Buxus\SeoUrlLegacy\Facades\SeoUrl::getPageId($_SERVER['SERVER_PORT'], $_SERVER['SERVER_NAME'], $_SERVER['REQUEST_URI']);
if (!((is_numeric($page_id)) && ($page_id > 0))) {
//ak nie je nastaveny page_id, hladame page_name
$page_name = (isset($_GET['page_name']) ? $_GET['page_name'] : '');
if (!empty($page_name)) {
//funckia skonci, ak nenajde, alebo najde viac
$page_id = GetPageIdByPageName($page_name);
} else {
if (!showCustomError('404')) {
header('HTTP/1.0 404 Not Found');
echo 'Wrong page ID specified.';
}
exit;
}
} else {
$wrong_page_id = C_True;
}
$_REQUEST['page_id'] = $page_id;
/home/slovart/test/releases/20250428132458/vendor/buxus/core/src/Buxus/Router/BuxusRouter.php
echo '<html><head><title>maintenance</title></head><body>This BUXUS application is undergoing maintenance. Please try again later</body></html>';
} else {
include $template_path;
}
}
public function dispatch($request_uri) {
if ($this->app->isDownForMaintenance()) {
$this->display503();
exit;
}
$script = $this->getScript($request_uri);
foreach ($this->auto_scripts as $auto_script) {
include($auto_script);
}
if (!empty($script)) {
include($script);
}
if ($this->default_script != $script) {
include($this->default_script);
}
header('HTTP/1.0 404 Not Found');
echo '404 Not Found';
exit;
}
}
Arguments
"/home/slovart/test/releases/20250428132458/vendor/buxus/core/src/handler/generate_page.php"
/home/slovart/test/releases/20250428132458/public/buxus.php
<?php
define('BASE_BUXUS_DIR', realpath(__DIR__ . '/../'));
require_once __DIR__ . '/../vendor/autoload.php';
require_once CORE_BUXUS_DIR . '/src/buxus_bootstrap.php';
require_once '../vendor/buxus/legacy-base/buxus/includes/database.php';
$router = app('buxus-router');
$router->dispatch($_SERVER['REQUEST_URI']);