/** * Headlines constructor * * @param string $pageContent Template content */ function __construct($pageContent) { parent::__construct('.'); $this->getSettings(); $this->pageContent = $pageContent; \Cx\Core\Csrf\Controller\Csrf::add_placeholder($this->_objTpl); }
/** * Constructor -> Create the module-menu and an internal template-object * @global array $_ARRAYLANG * @global object $objTemplate */ function __construct() { global $_ARRAYLANG, $objTemplate; parent::__construct(ASCMS_MODULE_PATH . '/' . $this->moduleName . '/View/Template/Backend'); $this->act = $_REQUEST['act']; $contentNavigation = '<a href="index.php?cmd=' . $this->moduleName . '" class="' . ($this->act == '' ? 'active' : '') . '">' . $_ARRAYLANG['TXT_CALENDAR_MENU_OVERVIEW'] . ' </a>'; $contentNavigation .= \Permission::checkAccess(180, 'static', true) ? '<a href="index.php?cmd=' . $this->moduleName . '&act=modify_event" class="' . ($this->act == 'modify_event' ? 'active' : '') . '">' . $_ARRAYLANG['TXT_CALENDAR_NEW_EVENT'] . ' </a>' : ''; $contentNavigation .= \Permission::checkAccess(165, 'static', true) ? '<a href="index.php?cmd=' . $this->moduleName . '&act=categories" class="' . ($this->act == 'categories' ? 'active' : '') . '">' . $_ARRAYLANG['TXT_CALENDAR_CATEGORIES'] . ' </a>' : ''; $contentNavigation .= \Permission::checkAccess(181, 'static', true) ? '<a href="index.php?cmd=' . $this->moduleName . '&act=settings" class="' . ($this->act == 'settings' ? 'active' : '') . '">' . $_ARRAYLANG['TXT_CALENDAR_MENU_SETTINGS'] . ' </a>' : ''; $objTemplate->setVariable("CONTENT_NAVIGATION", $contentNavigation); }
/** * Constructor * * @global array $_ARRAYLANG * @global object $objTemplate * @param string $pageContent */ function __construct($pageContent) { global $_ARRAYLANG, $objTemplate; parent::__construct('.'); $this->getSettings(); $this->pageContent = $pageContent; }
/** * Display the success page * * @return null */ function showSuccessPage() { $this->_objTpl->setTemplate($this->pageContent, true, true); if ($_REQUEST["handler"] == "yellowpay") { $orderId = \Yellowpay::getOrderId(); parent::getSettings(); if (\Yellowpay::checkin($this->arrSettings["paymentYellowpayShaOut"])) { switch (abs($_REQUEST["result"])) { case 2: // fehler aufgetreten $objRegistration = new \Cx\Modules\Calendar\Controller\CalendarRegistration(null); $objRegistration->delete($orderId); $this->_objTpl->touchBlock("cancelMessage"); break; case 1: // erfolgreich $objRegistration = new \Cx\Modules\Calendar\Controller\CalendarRegistration(null); $objRegistration->get($orderId); $objRegistration->setPaid(1); $this->_objTpl->touchBlock("successMessage"); break; case 0: // abgebrochen $objRegistration = new \Cx\Modules\Calendar\Controller\CalendarRegistration(null); $objRegistration->delete($orderId); $this->_objTpl->touchBlock("cancelMessage"); break; default: \Cx\Core\Csrf\Controller\Csrf::header("Location: index.php?section=" . $this->moduleName); break; } } else { \Cx\Core\Csrf\Controller\Csrf::header("Location: index.php?section=" . $this->moduleName); return; } } else { \Cx\Core\Csrf\Controller\Csrf::header("Location: index.php?section=" . $this->moduleName); return; } }