/home
/hrdinaremesla
/live
/vendor
/krabica-theme
/tshop
/theme
/views
/scripts
/index
/list.phtml
<?php
use App\ListItem;
?>
<!-- #middle_col:BEGIN //-->
<div class="col-md-8 pull-<?= App_Page_SideBoxList::getMainContentFloat(); ?> ">
<?//$this->action('page-navigator', $this->controller_name) ?>
<!-- homepage content:BEGIN //-->
<h1 class="title"><?= $this->renderEditableProperty($this->page_properties, PCT::TITLE_TAG) ?></h1>
<?= $this->renderEditableHtmlProperty($this->page_properties, PCT::TEXT_TAG) ?>
<h3 class="title"><?= $this->str('eshop','Podčlánky')?></h3>
<!-- homepage content:END //-->
<!-- #content_list:BEGIN //-->
<?php if (! empty($this->list)): ?>
<div id="content_list">
<?= $this->paginationControl($this->list->getPaginator(), null, 'pagination_control.phtml') ?>
<?php foreach ($this->list as $list_item): /* @var $list_item ListItem */ ?>
<?php if (! $list_item->isFirst()): ?>
<div class="delim"></div>
<?php endif; ?>
<div class="item no_image">
<div class="data">
<h2><a href="<?= $list_item->getUrl() ?>" title="<?= $this->escape($list_item->getProperty(PCT::TITLE_TAG)) ?>"><?= $this->renderProperty($list_item, PCT::TITLE_TAG) ?></a></h2>
<?= $this->renderHtmlProperty($list_item, PCT::ANNOTATION_TAG) ?>
<br/><a href="<?= $list_item->getUrl() ?>" title="<?= $this->str('eshop','Viac informácií')?>"><?= $this->str('eshop','Viac informácií')?></a>
</div>
</div>
<?php endforeach; ?>
<?= $this->paginationControl($this->list->getPaginator(), null, 'pagination_control.phtml') ?>
</div>
<?php endif; ?>
<!-- #content_list:END //-->
</div>
<!-- #middle_col:END //-->
Arguments
"Class 'App_Page_SideBoxList' not found"
/home
/hrdinaremesla
/live
/vendor
/zendframework
/zendframework1
/library
/Zend
/View.php
* Should the stream wrapper be used if short_open_tag is off?
*
* @return bool
*/
public function useStreamWrapper()
{
return $this->_useStreamWrapper;
}
/**
* Includes the view script in a scope with only public $this variables.
*
* @param string The view script to execute.
*/
protected function _run()
{
if ($this->_useViewStream && $this->useStreamWrapper()) {
include 'zend.view://' . func_get_arg(0);
} else {
include func_get_arg(0);
}
}
}
/home
/hrdinaremesla
/live
/vendor
/zendframework
/zendframework1
/library
/Zend
/View
/Abstract.php
if ('_' != substr($key, 0, 1)) {
unset($this->$key);
}
}
}
/**
* Processes a view script and returns the output.
*
* @param string $name The script name to process.
* @return string The script output.
*/
public function render($name)
{
// find the script file name using the parent private method
$this->_file = $this->_script($name);
unset($name); // remove $name from local scope
ob_start();
$this->_run($this->_file);
return $this->_filter(ob_get_clean()); // filter output
}
/**
* Escapes a value for output in a view script.
*
* If escaping mechanism is one of htmlspecialchars or htmlentities, uses
* {@link $_encoding} setting.
*
* @param mixed $var The output to escape.
* @return mixed The escaped value.
*/
public function escape($var)
{
if (in_array($this->_escape, array('htmlspecialchars', 'htmlentities'))) {
return call_user_func($this->_escape, $var, ENT_COMPAT, $this->_encoding);
}
if (1 == func_num_args()) {
/home
/hrdinaremesla
/live
/vendor
/zendframework
/zendframework1
/library
/Zend
/Controller
/Action
/Helper
/ViewRenderer.php
return $filtered;
}
/**
* Render a view script (optionally to a named response segment)
*
* Sets the noRender flag to true when called.
*
* @param string $script
* @param string $name
* @return void
*/
public function renderScript($script, $name = null)
{
if (null === $name) {
$name = $this->getResponseSegment();
}
$this->getResponse()->appendBody(
$this->view->render($script),
$name
);
$this->setNoRender();
}
/**
* Render a view based on path specifications
*
* Renders a view based on the view script path specifications.
*
* @param string $action
* @param string $name
* @param boolean $noController
* @return void
*/
public function render($action = null, $name = null, $noController = null)
{
$this->setRender($action, $name, $noController);
$path = $this->getViewScript();
/home
/hrdinaremesla
/live
/vendor
/zendframework
/zendframework1
/library
/Zend
/Controller
/Action
/Helper
/ViewRenderer.php
);
$this->setNoRender();
}
/**
* Render a view based on path specifications
*
* Renders a view based on the view script path specifications.
*
* @param string $action
* @param string $name
* @param boolean $noController
* @return void
*/
public function render($action = null, $name = null, $noController = null)
{
$this->setRender($action, $name, $noController);
$path = $this->getViewScript();
$this->renderScript($path, $name);
}
/**
* Render a script based on specification variables
*
* Pass an action, and one or more specification variables (view script suffix)
* to determine the view script path, and render that script.
*
* @param string $action
* @param array $vars
* @param string $name
* @return void
*/
public function renderBySpec($action = null, array $vars = array(), $name = null)
{
if (null !== $name) {
$this->setResponseSegment($name);
}
$path = $this->getViewScript($action, $vars);
/home
/hrdinaremesla
/live
/vendor
/zendframework
/zendframework1
/library
/Zend
/Controller
/Action
/Helper
/ViewRenderer.php
$path = $this->getViewScript($action, $vars);
$this->renderScript($path);
}
/**
* postDispatch - auto render a view
*
* Only autorenders if:
* - _noRender is false
* - action controller is present
* - request has not been re-dispatched (i.e., _forward() has not been called)
* - response is not a redirect
*
* @return void
*/
public function postDispatch()
{
if ($this->_shouldRender()) {
$this->render();
}
}
/**
* Should the ViewRenderer render a view script?
*
* @return boolean
*/
protected function _shouldRender()
{
return (!$this->getFrontController()->getParam('noViewRenderer')
&& !$this->_neverRender
&& !$this->_noRender
&& (null !== $this->_actionController)
&& $this->getRequest()->isDispatched()
&& !$this->getResponse()->isRedirect()
);
}
/**
/home
/hrdinaremesla
/live
/vendor
/zendframework
/zendframework1
/library
/Zend
/Controller
/Action
/HelperBroker.php
* notifyPreDispatch() - called by action controller dispatch method
*
* @return void
*/
public function notifyPreDispatch()
{
foreach (self::getStack() as $helper) {
$helper->preDispatch();
}
}
/**
* notifyPostDispatch() - called by action controller dispatch method
*
* @return void
*/
public function notifyPostDispatch()
{
foreach (self::getStack() as $helper) {
$helper->postDispatch();
}
}
/**
* getHelper() - get helper by name
*
* @param string $name
* @return Zend_Controller_Action_Helper_Abstract
*/
public function getHelper($name)
{
$name = self::_normalizeHelperName($name);
$stack = self::getStack();
if (!isset($stack->{$name})) {
self::_loadHelper($name);
}
$helper = $stack->{$name};
/home
/hrdinaremesla
/live
/vendor
/buxus
/legacy-base
/src
/Buxus
/Controller.php
// @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
/hrdinaremesla
/live
/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
/hrdinaremesla
/live
/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
/hrdinaremesla
/live
/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
/hrdinaremesla
/live
/vendor
/buxus
/core
/src
/handler
/generate_page.php
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;
//\Buxus\DebugBar::getInstance()->info('page_id: ' . $page_id, 'buxus');
//\Buxus\DebugBar::getInstance()->stopMeasure('seo_url_resolver');
//\Buxus\DebugBar::getInstance()->startMeasure('generate_page', 'GeneratePage()');
GeneratePage($page_id);
\Buxus\Event\BuxusEvent::fire(new \Buxus\Event\FrontendRequestFinishedEvent());
exit;
/home
/hrdinaremesla
/live
/vendor
/buxus
/core
/src
/Buxus
/Router
/BuxusRouter.php
}
}
if ($route['type'] == self::ROUTE_REGEXP) {
if (preg_match($route['prefix'], $request_uri)) {
return $route['script'];
}
}
}
return $this->default_script;
}
public function dispatch($request_uri) {
$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/hrdinaremesla/live/vendor/buxus/core/src/handler/generate_page.php"
/home
/hrdinaremesla
/live
/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']);