/home/pttours/live-new/releases/20260707123508/vendor/buxus/pages/src/Buxus/Page/PageIdsBase.php
}
}
/**
* @var PageTagsManagerInterface $manager
*/
try {
$manager = app('buxus:page-tags:manager');
$page_id = $manager->getPageId($page_tag, self::$page_tags);
if (empty($page_id) && !$skip_db_fallback) {
// fallback and Read page_id from database
$page_id = $manager->getPageIdFromDB($page_tag);
}
} catch (\Exception $e) {
$page_id = null;
}
if (empty($page_id)) { // The page does not exist
if ($throw_exception) { // The exception should by throw
throw new \Exception('The page with tag "' . $page_tag . '" does not exist.');
}
return null;
}
return $page_id;
}
}
Arguments
"The page with tag "Onas" does not exist."
/home/pttours/live-new/releases/20260707123508/vendor/buxus/pages/src/Buxus/Page/PageIdsBase.php
// phpcs:disable
if (file_exists(Constants::C_BUXUS_PAGE_TAG_FILE())) {
include_once(Constants::C_BUXUS_PAGE_TAG_FILE());
} else {
if (!class_exists('BuxusPageTagsBase', false )) {
eval('class BuxusPageTagsBase {
protected static $page_tags = array ();
};');
}
}
// phpcs:enable
class PageIdsBase extends \BuxusPageTagsBase
{
public static function __callStatic($func, $params)
{
if (preg_match('@^get(.+)$@', $func, $matches)) {
array_unshift($params, $matches[1]);
return call_user_func_array(array(get_called_class(), 'getPageId'), $params);
}
throw new \Exception('method does not exist ' . static::class . '::' . $func);
}
/**
* Generates the list of all defined page_tag-s and writes them to the page_tags file
*/
public static function generatePageTagsList()
{
/**
* @var PageTagsManagerInterface $manager
*/
$manager = app('buxus:page-tags:manager');
self::$page_tags = $manager->generatePageTags(Constants::C_BUXUS_PAGE_TAG_FILE());
}
public static function removePageTagsFile()
{
/**
* @var PageTagsManagerInterface $manager
/home/pttours/live-new/releases/20260707123508/vendor/buxus/pages/src/Buxus/Page/PageIdsBase.php
// phpcs:disable
if (file_exists(Constants::C_BUXUS_PAGE_TAG_FILE())) {
include_once(Constants::C_BUXUS_PAGE_TAG_FILE());
} else {
if (!class_exists('BuxusPageTagsBase', false )) {
eval('class BuxusPageTagsBase {
protected static $page_tags = array ();
};');
}
}
// phpcs:enable
class PageIdsBase extends \BuxusPageTagsBase
{
public static function __callStatic($func, $params)
{
if (preg_match('@^get(.+)$@', $func, $matches)) {
array_unshift($params, $matches[1]);
return call_user_func_array(array(get_called_class(), 'getPageId'), $params);
}
throw new \Exception('method does not exist ' . static::class . '::' . $func);
}
/**
* Generates the list of all defined page_tag-s and writes them to the page_tags file
*/
public static function generatePageTagsList()
{
/**
* @var PageTagsManagerInterface $manager
*/
$manager = app('buxus:page-tags:manager');
self::$page_tags = $manager->generatePageTags(Constants::C_BUXUS_PAGE_TAG_FILE());
}
public static function removePageTagsFile()
{
/**
* @var PageTagsManagerInterface $manager
/home/pttours/live-new/releases/20260707123508/buxus/application/controllers/IndexController.php
/**
* Action which generate navigator of page
*/
public function pageNavigatorAction()
{
$this->view->menu = new PageNavigator();
if (H::isAmpPageSet()){
$this->render('amp/page-navigator');
}
}
public function aboutUsAction()
{
if (GetProperty('page_id') == PageIds::getProcPloutSNami()) {
H::permanentlyRedirect(F::pUrl(PageIds::getOnas()));
}
if (\BuxusMVC::page()->getPageTypeId() == \Buxus\Util\PageTypeID::ARTICLE_ID()) {
H::permanentlyRedirect(F::pUrl(PageIds::getOnas()));
}
$this->setPage();
$menu_items = F::children(PageIds::getProcPloutSNami());
$list_base = new \App\ListBase();
foreach ($menu_items as $item) {
$list_base->addItem($item['page_id']);
if ($item['page_id'] == $this->view->page_properties->getId()) {
$list_base->getItem($item['page_id'])->setSelected();
}
}
$list_base->setFirstLast();
$this->view->menu_items = $list_base;
$sections = $this->view->page_properties->getSubpages();
/* @var \App\ListBase $sections */
$sections->chunkItems(2);
$sections = $sections->getItems();
$this->view->first_section = $sections[0];
/home/pttours/live-new/releases/20260707123508/vendor/illuminate/container/BoundMethod.php
class BoundMethod
{
/**
* Call the given Closure / class@method and inject its dependencies.
*
* @param \Illuminate\Container\Container $container
* @param callable|string $callback
* @param array $parameters
* @param string|null $defaultMethod
* @return mixed
*/
public static function call($container, $callback, array $parameters = [], $defaultMethod = null)
{
if (static::isCallableWithAtSign($callback) || $defaultMethod) {
return static::callClass($container, $callback, $parameters, $defaultMethod);
}
return static::callBoundMethod($container, $callback, function () use ($container, $callback, $parameters) {
return call_user_func_array(
$callback, static::getMethodDependencies($container, $callback, $parameters)
);
});
}
/**
* Call a string reference to a class using Class@method syntax.
*
* @param \Illuminate\Container\Container $container
* @param string $target
* @param array $parameters
* @param string|null $defaultMethod
* @return mixed
*
* @throws \InvalidArgumentException
*/
protected static function callClass($container, $target, array $parameters = [], $defaultMethod = null)
{
$segments = explode('@', $target);
// We will assume an @ sign is used to delimit the class name from the method
/home/pttours/live-new/releases/20260707123508/vendor/illuminate/container/BoundMethod.php
class BoundMethod
{
/**
* Call the given Closure / class@method and inject its dependencies.
*
* @param \Illuminate\Container\Container $container
* @param callable|string $callback
* @param array $parameters
* @param string|null $defaultMethod
* @return mixed
*/
public static function call($container, $callback, array $parameters = [], $defaultMethod = null)
{
if (static::isCallableWithAtSign($callback) || $defaultMethod) {
return static::callClass($container, $callback, $parameters, $defaultMethod);
}
return static::callBoundMethod($container, $callback, function () use ($container, $callback, $parameters) {
return call_user_func_array(
$callback, static::getMethodDependencies($container, $callback, $parameters)
);
});
}
/**
* Call a string reference to a class using Class@method syntax.
*
* @param \Illuminate\Container\Container $container
* @param string $target
* @param array $parameters
* @param string|null $defaultMethod
* @return mixed
*
* @throws \InvalidArgumentException
*/
protected static function callClass($container, $target, array $parameters = [], $defaultMethod = null)
{
$segments = explode('@', $target);
// We will assume an @ sign is used to delimit the class name from the method
/home/pttours/live-new/releases/20260707123508/vendor/illuminate/container/BoundMethod.php
* @param callable $callback
* @param mixed $default
* @return mixed
*/
protected static function callBoundMethod($container, $callback, $default)
{
if (! is_array($callback)) {
return $default instanceof Closure ? $default() : $default;
}
// Here we need to turn the array callable into a Class@method string we can use to
// examine the container and see if there are any method bindings for this given
// method. If there are, we can call this method binding callback immediately.
$method = static::normalizeMethod($callback);
if ($container->hasMethodBinding($method)) {
return $container->callMethodBinding($method, $callback[0]);
}
return $default instanceof Closure ? $default() : $default;
}
/**
* Normalize the given callback into a Class@method string.
*
* @param callable $callback
* @return string
*/
protected static function normalizeMethod($callback)
{
$class = is_string($callback[0]) ? $callback[0] : get_class($callback[0]);
return "{$class}@{$callback[1]}";
}
/**
* Get all dependencies for a given method.
*
* @param \Illuminate\Container\Container
* @param callable|string $callback
/home/pttours/live-new/releases/20260707123508/vendor/illuminate/container/BoundMethod.php
/**
* Call the given Closure / class@method and inject its dependencies.
*
* @param \Illuminate\Container\Container $container
* @param callable|string $callback
* @param array $parameters
* @param string|null $defaultMethod
* @return mixed
*/
public static function call($container, $callback, array $parameters = [], $defaultMethod = null)
{
if (static::isCallableWithAtSign($callback) || $defaultMethod) {
return static::callClass($container, $callback, $parameters, $defaultMethod);
}
return static::callBoundMethod($container, $callback, function () use ($container, $callback, $parameters) {
return call_user_func_array(
$callback, static::getMethodDependencies($container, $callback, $parameters)
);
});
}
/**
* Call a string reference to a class using Class@method syntax.
*
* @param \Illuminate\Container\Container $container
* @param string $target
* @param array $parameters
* @param string|null $defaultMethod
* @return mixed
*
* @throws \InvalidArgumentException
*/
protected static function callClass($container, $target, array $parameters = [], $defaultMethod = null)
{
$segments = explode('@', $target);
// We will assume an @ sign is used to delimit the class name from the method
// name. We will split on this @ sign and then build a callable array that
// we can pass right back into the "call" method for dependency binding.
/home/pttours/live-new/releases/20260707123508/vendor/illuminate/container/Container.php
* @return \Closure
*/
public function wrap(Closure $callback, array $parameters = [])
{
return function () use ($callback, $parameters) {
return $this->call($callback, $parameters);
};
}
/**
* Call the given Closure / class@method and inject its dependencies.
*
* @param callable|string $callback
* @param array $parameters
* @param string|null $defaultMethod
* @return mixed
*/
public function call($callback, array $parameters = [], $defaultMethod = null)
{
return BoundMethod::call($this, $callback, $parameters, $defaultMethod);
}
/**
* Get a closure to resolve the given type from the container.
*
* @param string $abstract
* @return \Closure
*/
public function factory($abstract)
{
return function () use ($abstract) {
return $this->make($abstract);
};
}
/**
* Resolve the given type with the given parameter overrides.
*
* @param string $abstract
* @param array $parameters
/home/pttours/live-new/releases/20260707123508/vendor/buxus/legacy-base/src/Buxus/Controller.php
{
// Notify helpers of action preDispatch state
$this->_helper->notifyPreDispatch();
$this->preDispatch();
if ($this->getRequest()->isDispatched()) {
if (null === $this->_classMethods) {
$this->_classMethods = get_class_methods($this);
}
// If pre-dispatch hooks introduced a redirect then stop dispatch
// @see ZF-7496
if (!($this->getResponse()->isRedirect())) {
// preDispatch() didn't change the action, so we can continue
if ($this->getInvokeArg('useCaseSensitiveActions') || in_array($action, $this->_classMethods)) {
if ($this->getInvokeArg('useCaseSensitiveActions')) {
trigger_error('Using case sensitive actions without word separators is deprecated; please do not rely on this "feature"');
}
app()->call(array($this, $action));
} else {
$this->__call($action, array());
}
}
$this->postDispatch();
}
// whats actually important here is that this action controller is
// shutting down, regardless of dispatching; notify the helpers of this
// state
$this->_helper->notifyPostDispatch();
}
}
/home/pttours/live-new/releases/20260707123508/vendor/zendframework/zendframework1/library/Zend/Controller/Dispatcher/Standard.php
/**
* Retrieve the action name
*/
$action = $this->getActionMethod($request);
/**
* Dispatch the method call
*/
$request->setDispatched(true);
// by default, buffer output
$disableOb = $this->getParam('disableOutputBuffering');
$obLevel = ob_get_level();
if (empty($disableOb)) {
ob_start();
}
try {
$controller->dispatch($action);
} catch (Exception $e) {
// Clean output buffer on error
$curObLevel = ob_get_level();
if ($curObLevel > $obLevel) {
do {
ob_get_clean();
$curObLevel = ob_get_level();
} while ($curObLevel > $obLevel);
}
throw $e;
}
if (empty($disableOb)) {
$content = ob_get_clean();
$response->appendBody($content);
}
// Destroy the page controller instance and reflection objects
$controller = null;
}
/home/pttours/live-new/releases/20260707123508/vendor/zendframework/zendframework1/library/Zend/Controller/Front.php
do {
$this->_request->setDispatched(true);
/**
* Notify plugins of dispatch startup
*/
$this->_plugins->preDispatch($this->_request);
/**
* Skip requested action if preDispatch() has reset it
*/
if (!$this->_request->isDispatched()) {
continue;
}
/**
* Dispatch request
*/
try {
$dispatcher->dispatch($this->_request, $this->_response);
} catch (Exception $e) {
if ($this->throwExceptions()) {
throw $e;
}
$this->_response->setException($e);
}
/**
* Notify plugins of dispatch completion
*/
$this->_plugins->postDispatch($this->_request);
} while (!$this->_request->isDispatched());
} catch (Exception $e) {
if ($this->throwExceptions()) {
throw $e;
}
$this->_response->setException($e);
}
/home/pttours/live-new/releases/20260707123508/vendor/buxus/legacy-base/buxus/includes/generate_functions.php
// Set router
$front->setRouter(new ControllerRouter());
// Set controller and action
$request = new Zend_Controller_Request_Http();
$request->setControllerName($controller_name);
$request->setActionName($controller_action);
\Buxus\Event\BuxusEvent::fire(new \Buxus\Event\MvcStartedEvent());
// add registered view helpers
//$view = \Zend_Layout::getMvcInstance()->getView();
/* $module_view_helper_paths = \Buxus\Module\BuxusModule::helperPaths();
foreach ($module_view_helper_paths as $helper_path) {
$view->addHelperPath($helper_path['path'], $helper_path['prefix']);
}*/
$front->dispatch($request);
}
}
function CreateUrlForPageName ($page_name, $url_parameter="", $quotes = "'")
{
global $as_static;
$page_dsc = BuxusDB::get()->fetchAll("SELECT tblPages.page_id FROM tblPages WHERE tblPages.page_name = :page_name", array(':page_name' => $page_name));
$i = 0;
foreach($page_dsc as $page_row)
{
$page_id = $page_row["page_id"];
$i++;
}
if ($i>1)
//echo "What now? There are more than one unique page with given name.";
if ($i == 0) { $page_id = 0; }
if ($as_static != '')
return ($quotes.GetSystemOption("C_static_url_prefix")."page_$page_id.htm".$url_parameter.$quotes);
else
return ($quotes.config('buxus_core.base_url')."generate_page.php?page_id=$page_id".$url_parameter.$quotes);
/home/pttours/live-new/releases/20260707123508/vendor/buxus/core/src/handler/generate_page.php
$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;
$_GET['page_id'] = $page_id;
GeneratePage($page_id);
\Buxus\Event\BuxusEvent::fire(new \Buxus\Event\FrontendRequestFinishedEvent());
exit;
/home/pttours/live-new/releases/20260707123508/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/pttours/live-new/releases/20260707123508/vendor/buxus/core/src/handler/generate_page.php"
/home/pttours/live-new/releases/20260707123508/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';
$router = app('buxus-router');
$router->dispatch($_SERVER['REQUEST_URI']);