/home
/evuc
/live
/releases
/20220124095935
/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] [2002] Permission denied"
/home
/evuc
/live
/releases
/20220124095935
/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] [2002] Permission denied"
/home
/evuc
/live
/releases
/20220124095935
/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
"mysql:host=localhost;dbname=evuc_live;encoding=utf8;adapter=mysql"
"evuclive"
"oaphaegeeB6rahQu"
array:1 [
12 => true
]
/home
/evuc
/live
/releases
/20220124095935
/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
/evuc
/live
/releases
/20220124095935
/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
/evuc
/live
/releases
/20220124095935
/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
/evuc
/live
/releases
/20220124095935
/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 = null, $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') {
Arguments
/home
/evuc
/live
/releases
/20220124095935
/buxus
/application
/models
/App
/SeoUrlCustom.php
$request_uri_clean = $this->cleanUrl($request_uri);
$this->request_uri = '/' . $request_uri_clean;
if (empty($request_uri_clean)) { // There is only web URL without any others strings
if (count($this->domainHomePageIds)) {
if (isset($this->domainHomePageIds[$this->host_name])) {
return new Buxus\SeoUrlLegacy\SeoUrlResult($this->domainHomePageIds[$this->host_name]);
}
}
if ($this->host_name == $this->getWebHostName()) {
return new Buxus\SeoUrlLegacy\SeoUrlResult($this->getHomePageId());
}
}
if (empty($request_uri_clean)) { // The request url is not defined
$url_parts = array();
$seo_url_result = null;
} else { // The request URL is defined
// Without page_id
$seo_url_result = $this->caseOnlySeoUrl($this->request_protocol, $this->host_name, $this->request_uri);
if (!is_null($seo_url_result)) {
return $seo_url_result;
}
$url_parts = explode('/', $request_uri_clean);
// use standard page_id url resolution only if we are in the default language as language URLs have the same domain and same page_id
if (empty($this->default_language) || $this->default_language == \Trans::getActiveLanguage()) {
$seo_url_result = $this->caseStandardSeoUrl();
}
}
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 Buxus\SeoUrlLegacy\SeoUrlResult($this->error_404_page_id, null, true);
}
}
return $seo_url_result;
Arguments
"https://"
"www.e-vuc.sk"
"/tsk/zdravotnictvo/ambulantne-zdravotnicke-zariadenia/povazska-bystrica/ambulancia-anesteziologie-a-intenzivnej-mediciny-mudr.-renata-piackova-povazska-bystrica-nemocnica-s-poliklinikou-povazska-bystrica-so-sidlom-v-povazskej-bystrici"
/home
/evuc
/live
/releases
/20220124095935
/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;
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;
}
\Buxus\Event\BuxusEvent::fire(new \Buxus\Event\PageNotFoundEvent($request_uri));
Arguments
"https://"
"www.e-vuc.sk"
"/tsk/zdravotnictvo/ambulantne-zdravotnicke-zariadenia/povazska-bystrica/ambulancia-anesteziologie-a-intenzivnej-mediciny-mudr.-renata-piackova-povazska-bystrica-nemocnica-s-poliklinikou-povazska-bystrica-so-sidlom-v-povazskej-bystrici.html?iframe=1+++++++++++++++++&page_id=62716"
/home
/evuc
/live
/releases
/20220124095935
/buxus
/application
/models
/App
/SeoUrlCustom.php
header('HTTP/1.1 301 Moved Permanently');
header('Location: ' . F::pUrl(\Buxus\Util\PageIds::getObjednavkaErecept(), array('zid' => $bx_page_id)));
exit();
}
}
}
//URL ma tvar .sk/fINTERNY_KOD, cize napr. .sk/f12345 pre lekarne
list($trash, $interne_id) = explode('/f', $request_uri, 2);
$interne_id = (int)$interne_id;
if ($interne_id > 0) {
$bx_page_id = H::existujeZdravotnickeZariadenie($interne_id, PTCI::LEKAREN_ID);
if ($bx_page_id > 0 && self::isEvuc()) {
header('HTTP/1.1 301 Moved Permanently');
header('Location: ' . F::pUrl($bx_page_id));
exit();
}
}
return parent::getPageId($server_port, $host_name, $request_uri, $redirect_to_404);
}
/**
* Return the request protocol
*
* @param int $server_port
*
* @return string
*/
protected function getProtocol($server_port)
{
if (!empty($this->forced_protocol)) {
return $this->forced_protocol;
}
$force_protocol = config('app.force_protocol', false);
if ($force_protocol) {
return $force_protocol;
}
Arguments
"80"
"www.e-vuc.sk"
"/tsk/zdravotnictvo/ambulantne-zdravotnicke-zariadenia/povazska-bystrica/ambulancia-anesteziologie-a-intenzivnej-mediciny-mudr.-renata-piackova-povazska-bystrica-nemocnica-s-poliklinikou-povazska-bystrica-so-sidlom-v-povazskej-bystrici.html?iframe=1+++++++++++++++++&page_id=62716"
true
/home
/evuc
/live
/releases
/20220124095935
/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);
}
}
Arguments
"80"
"www.e-vuc.sk"
"/tsk/zdravotnictvo/ambulantne-zdravotnicke-zariadenia/povazska-bystrica/ambulancia-anesteziologie-a-intenzivnej-mediciny-mudr.-renata-piackova-povazska-bystrica-nemocnica-s-poliklinikou-povazska-bystrica-so-sidlom-v-povazskej-bystrici.html?iframe=1+++++++++++++++++&page_id=62716"
/home
/evuc
/live
/releases
/20220124095935
/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;
Arguments
"getPageId"
array:3 [
0 => "80"
1 => "www.e-vuc.sk"
2 => "/tsk/zdravotnictvo/ambulantne-zdravotnicke-zariadenia/povazska-bystrica/ambulancia-anesteziologie-a-intenzivnej-mediciny-mudr.-renata-piackova-povazska-bystrica-nemocnica-s-poliklinikou-povazska-bystrica-so-sidlom-v-povazskej-bystrici.html?iframe=1+++++++++++++++++&page_id=62716"
]
/home
/evuc
/live
/releases
/20220124095935
/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/evuc/live/releases/20220124095935/vendor/buxus/core/src/handler/generate_page.php"
/home
/evuc
/live
/releases
/20220124095935
/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']);
Arguments
"/tsk/zdravotnictvo/ambulantne-zdravotnicke-zariadenia/povazska-bystrica/ambulancia-anesteziologie-a-intenzivnej-mediciny-mudr.-renata-piackova-povazska-bystrica-nemocnica-s-poliklinikou-povazska-bystrica-so-sidlom-v-povazskej-bystrici.html?iframe=1+++++++++++++++++&page_id=62716"