public function init()
 {
     parent::init();
     if (!Tools_Security_Acl::isAllowed(Tools_Security_Acl::RESOURCE_CONTENT) && !Tools_Security_Acl::isActionAllowed()) {
         $this->_redirect($this->_helper->website->getUrl(), array('exit' => true));
     }
     $this->view->websiteUrl = $this->_helper->website->getUrl();
     $this->_helper->AjaxContext()->addActionContexts(array('manageform' => 'json', 'delete' => 'json', 'loadforms' => 'json', 'receiveform' => 'json'))->initContext('json');
 }
 public function init()
 {
     if (!Tools_Security_Acl::isAllowed(Tools_Security_Acl::RESOURCE_PAGES) && !Tools_Security_Acl::isActionAllowed()) {
         $this->redirect($this->_helper->website->getUrl(), array('exit' => true));
     }
     $this->view->websiteUrl = $this->_helper->website->getUrl();
     if ('' == $this->getRequest()->getParam('format', '')) {
         $this->getRequest()->setParam('format', 'json');
     }
     /* @var Zend_Controller_Action_Helper_ContextSwitch $contextSwitch */
     $this->_helper->contextSwitch->addContext('html', array('suffix' => 'html', 'headers' => array('Content-Type' => 'text/html')))->addActionContexts(array('edit404page' => 'json', 'rendermenu' => 'json', 'listpages' => array('json', 'html'), 'publishpages' => 'json', 'checkforsubpages' => 'json', 'toggleoptimized' => 'json'))->initContext();
 }
 public function init()
 {
     parent::init();
     if (!Tools_Security_Acl::isAllowed(Tools_Security_Acl::RESOURCE_PAGE_PUBLIC)) {
         $this->redirect($this->_helper->website->getUrl(), array('exit' => true));
     }
     if (!Tools_Security_Acl::isActionAllowed()) {
         $this->redirect($this->_helper->website->getUrl(), array('exit' => true));
     }
     $this->_helper->AjaxContext()->addActionContexts(array('loaddeeplinkslist' => 'json', 'loadredirectslist' => 'json', 'removeredirect' => 'json', 'removedeeplink' => 'json', 'loadsculptingdata' => 'json', 'addsilotopage' => 'json', 'silocat' => 'json', 'unsilocat' => 'json', 'managesilos' => 'json'))->initContext('json');
     $this->_helper->contextSwitch()->addActionContext('sitemap', 'xml')->initContext();
     $this->_translator = Zend_Registry::get('Zend_Translate');
     $this->view->websiteUrl = $this->_helper->website->getUrl();
 }
 public function init()
 {
     parent::init();
     if (!Tools_Security_Acl::isAllowed(Tools_Security_Acl::RESOURCE_PAGE_PUBLIC)) {
         $this->redirect($this->_helper->website->getUrl(), array('exit' => true));
     }
     if (!Tools_Security_Acl::isActionAllowed()) {
         $this->redirect($this->_helper->website->getUrl(), array('exit' => true));
     }
     $this->_helper->AjaxContext()->addActionContext('triggerinstall', 'json')->initContext('json');
     $this->_helper->AjaxContext()->addActionContext('trigger', 'json')->initContext('json');
     $this->_helper->AjaxContext()->addActionContext('delete', 'json')->initContext('json');
     $this->_helper->AjaxContext()->addActionContext('list', 'json')->initContext('json');
     $this->view->websiteUrl = $this->_helper->website->getUrl();
 }
 public function init()
 {
     parent::init();
     $this->_websiteData = Zend_Registry::get('website');
     if (!Tools_Security_Acl::isAllowed(Tools_Security_Acl::RESOURCE_CONTENT) && !Tools_Security_Acl::isActionAllowed()) {
         $this->redirect($this->_helper->website->getUrl(), array('exit' => true));
     }
     $this->_helper->viewRenderer->setNoRender(true);
     $this->_containerType = $this->getRequest()->getParam('containerType');
     $this->_contentForm = $this->_initCorrectForm();
     $this->view->websiteUrl = $this->_helper->website->getUrl();
     $this->view->currentTheme = $this->_helper->config->getConfig('currentTheme');
     // content help section
     $this->view->helpSection = 'content';
     $this->_helper->AjaxContext()->addActionContext('loadfiles', 'json')->initContext('json');
     $this->_helper->AjaxContext()->addActionContext('refreshfolders', 'json')->initContext('json');
 }