public function init() { parent::init(); // add include paths $includePaths = array(PIMCORE_PATH . "/modules/reports/lib", get_include_path()); set_include_path(implode(PATH_SEPARATOR, $includePaths)); }
public function init() { parent::init(); $this->protect(); // IE compatibility $this->getResponse()->setHeader("X-UA-Compatible", "IE=8; IE=9", true); }
public function init() { parent::init(); // check if data folder exists $this->dataDir = dirname(PimPon_Plugin::getConfigFile()); if (!is_dir($this->dataDir)) { mkdir($this->dataDir, 0755, true); } }
public function init() { parent::init(); if (!$this->getUser()->isAllowed("plugins")) { if ($this->getUser() != null) { Logger::err("user [" . $this->getUser()->getId() . "] attempted to install plugin, but has no permission to do so."); } else { Logger::err("attempt to install plugin, but no user in session."); } } }
public function init() { parent::init(); // check permissions $notRestrictedActions = array(); if (!in_array($this->_getParam("action"), $notRestrictedActions)) { if (!$this->getUser()->isAllowed("documents")) { $this->_redirect("/admin/login"); die; } } }
public function init() { parent::init(); // check permissions $notRestrictedActions = array("get-tree", "fieldcollection-list", "fieldcollection-tree", "fieldcollection-get", "get-class-definition-for-column-config", "objectbrick-list", "objectbrick-tree", "objectbrick-get"); if (!in_array($this->_getParam("action"), $notRestrictedActions)) { if (!$this->getUser()->isAllowed("classes")) { $this->_redirect("/admin/login"); die; } } }
public function init() { parent::init(); // check permissions $notRestrictedActions = array("get-current-user", "update-current-user", "get-all-users", "get-available-permissions", "tree-get-childs-by-id", "get-minimal"); if (!in_array($this->_getParam("action"), $notRestrictedActions)) { if (!$this->getUser()->isAllowed("users")) { $this->_redirect("/admin/login"); die; } } }
public function init() { parent::init(); // check permissions $notRestrictedActions = array("get-image-thumbnail"); if (!in_array($this->_getParam("action"), $notRestrictedActions)) { if (!$this->getUser()->isAllowed("assets")) { $this->_redirect("/admin/login"); die; } } $this->_assetService = new Asset_Service($this->getUser()); }
public function init() { parent::init(); // // check permissions // // $notRestrictedActions = array("get-tree"); // // if (!in_array($this->_getParam("action"), $notRestrictedActions)) { // // if (!$this->getUser()->isAllowed("classes")) { // // // // $this->_redirect("/admin/login"); // // die(); // // } // // } }
public function init() { parent::init(); $this->protect(); }
public function init() { parent::init(); @ini_set("memory_limit", "-1"); $this->session = new Zend_Session_Namespace("pimcore_backup"); }
public function init() { parent::init(); }
public function init() { parent::init(); $this->config = SearchPhp_Plugin::getSearchConfigArray(); }
public function init() { parent::init(); $this->config = new SphinxSearch_Config(); }
public function init() { parent::init(); $this->session = new Zend_Session_Namespace("pimcore_backup"); }