示例#1
0
 public function init()
 {
     parent::init();
     $this->isAjax = FALSE;
     $this->purchaseHandler = new Purchase();
     $this->tplVars['header']['actions']['names'] = array(array('name' => 'products', 'menu_name' => 'Products'), array('name' => 'coupons', 'menu_name' => 'Coupons'), array('name' => 'additional', 'menu_name' => 'Additional offers'), array('name' => 'operators', 'menu_name' => 'Operators'), array('name' => 'currencies', 'menu_name' => 'Currnecies'), array('name' => 'builder', 'menu_name' => 'Purchase Links Builder'), array('name' => 'downloadlinks', 'menu_name' => 'Download Links Builder'));
 }
 public function init()
 {
     parent::init();
     $this->isAjax = $this->getIsAjaxRequest();
     $this->localString = new LocalString($this->getSiteId());
     foreach ($this->localString->getLangs() as $id => $val) {
         $this->tplVars['langs'][$id] = array('code' => $val['code'], 'name' => $val['name']);
     }
     $this->tplVars['page_css'][] = 'dataTables/css/demo_table.css';
     $this->tplVars['page_css'][] = 'localize.css';
     $this->tplVars['page_js'][] = 'localize.js';
     $this->tplVars['page_js'][] = 'tiny_mce/tiny_mce.js';
     $this->tplVars['page_js'][] = 'dataTables/js/jquery.dataTables.js';
     $this->tplVars['header']['actions']['names'] = array(array('name' => 'list', 'menu_name' => 'List Localization'));
     $controllerId = $this->controllers->getControllerIdByName($this->getRequest()->getControllerName());
     $writePerm = $this->user->checkWritePerm($controllerId);
     $deletePerm = $this->user->checkDelPerm($controllerId);
     $this->groupId = $this->user->getGroupId();
     $this->tplVars['lvals']['canEdit'] = $writePerm;
     $this->tplVars['lvals']['canDelete'] = $deletePerm;
     $this->tplVars['lvals']['admin'] = $this->groupId == 1 ? '1' : '0';
     if ($this->tplVars['lvals']['canEdit']) {
         $this->tplVars['header']['actions']['names'][] = array('name' => 'add', 'menu_name' => 'Add Localization');
     }
     $this->tplVars['header']['actions']['names'][] = array('name' => 'search', 'menu_name' => 'Search Localization');
 }
示例#3
0
 public function init()
 {
     parent::init();
     $groupId = $this->user->getGroupId();
     $controllerId = $this->controllers->getControllerIdByName($this->getRequest()->getControllerName());
     $writePerm = $this->user->checkWritePerm($controllerId);
     $deletePerm = $this->user->checkDelPerm($controllerId);
     $adminPerm = $groupId == 1 ? 1 : 0;
     $this->tplVars['pages']['perms']['write'] = $writePerm;
     $this->tplVars['pages']['perms']['delete'] = $deletePerm;
     $this->tplVars['pages']['perms']['admin'] = $adminPerm;
     $ContentControllerName = 'content';
     $ContentcontrollerId = $this->controllers->getControllerIdByName($ContentControllerName);
     $this->tplVars[$ContentControllerName]['perms']['write'] = $this->user->checkWritePerm($ContentcontrollerId);
     $this->tplVars[$ContentControllerName]['perms']['delete'] = $this->user->checkDelPerm($ContentcontrollerId);
     $this->tplVars[$ContentControllerName]['perms']['admin'] = $writePerm && $deletePerm;
     $this->tplVars['header']['actions']['names'] = array(array('name' => 'list', 'menu_name' => 'Pages list'), array('name' => 'faq', 'menu_name' => 'FAQ'));
     if ($groupId == 1) {
         array_push($this->tplVars['header']['actions']['names'], array('name' => 'add', 'menu_name' => 'Add new page'));
         array_push($this->tplVars['header']['actions']['names'], array('name' => 'clone', 'menu_name' => 'Cloner'));
         array_push($this->tplVars['header']['actions']['names'], array('name' => 'import', 'menu_name' => 'Import page'));
         $this->tplVars['pages']['perms']['admin'] = '1';
     }
     $this->pages = new Pages($this->getSiteId());
     $this->isAjax = false;
 }
示例#4
0
 public function init()
 {
     parent::init();
     $this->tplVars['glVals']['canEdit'] = $this->user->checkWritePerm($this->controllers->getControllerIdByName($this->getRequest()->getControllerName()));
     $this->tplVars['glVals']['canDelete'] = $this->user->checkDelPerm($this->controllers->getControllerIdByName($this->getRequest()->getControllerName()));
     $this->tplVars['header']['actions']['names'] = array(array('name' => 'list', 'menu_name' => 'Languages'), array('name' => 'add', 'menu_name' => 'Add language'));
     $this->existLangs = new Languages($this->getSiteId());
 }
 public function init()
 {
     parent::init();
     $this->isAjax = FALSE;
     $this->tplVars['header']['actions']['names'] = array(array('name' => 'list', 'menu_name' => 'List'), array('name' => 'add', 'menu_name' => 'Add ip'), array('name' => 'generate', 'menu_name' => 'Generate file'), array('name' => 'floodlist', 'menu_name' => 'Flood List'), array('name' => 'floodadd', 'menu_name' => 'Add Flood ip'));
     $controllId = $this->controllers->getControllerIdByName($this->getRequest()->getControllerName());
     $this->tplVars['lvals']['canEdit'] = $this->user->checkWritePerm($controllId);
     $this->tplVars['lvals']['canDelete'] = $this->user->checkDelPerm($controllId);
 }
示例#6
0
 public function init()
 {
     parent::init();
     $this->isAjax = FALSE;
     $this->tplVars['page_css'][] = 'products.css';
     $this->tplVars['header']['actions']['names'] = array(array('name' => 'list', 'menu_name' => 'List Products'));
     $controllId = $this->controllers->getControllerIdByName($this->getRequest()->getControllerName());
     $this->tplVars['lvals']['canEdit'] = $this->user->checkWritePerm($controllId);
     $this->tplVars['lvals']['canDelete'] = $this->user->checkDelPerm($controllId);
 }
示例#7
0
 public function init()
 {
     parent::init();
     $this->isAjax = $this->getIsAjaxRequest();
     $this->tplVars['page_js'][] = 'blacklist.js';
     $this->tplVars['content']['canEdit'] = $this->user->checkWritePerm($this->controllers->getControllerIdByName($this->getRequest()->getControllerName()));
     $this->tplVars['content']['canDelete'] = $this->user->checkDelPerm($this->controllers->getControllerIdByName($this->getRequest()->getControllerName()));
     $this->tplVars['header']['actions']['names'] = array(array('name' => 'list', 'menu_name' => 'Black keys list'), array('name' => 'add', 'menu_name' => 'Add new'), array('name' => 'addMany', 'menu_name' => 'Add many'));
     $this->model = new Blacklist($this->getSiteId());
 }
示例#8
0
 public function init()
 {
     parent::init();
     $this->isAjax = FALSE;
     $this->tplVars['page_css'][] = 'news.css';
     $this->tplVars['header']['actions']['names'] = array(array('name' => 'edit/lang/en', 'menu_name' => 'News EN'), array('name' => 'edit/lang/de', 'menu_name' => 'News DE'), array('name' => 'edit/lang/fr', 'menu_name' => 'News FR'), array('name' => 'edit/lang/es', 'menu_name' => 'News ES'), array('name' => 'edit/lang/it', 'menu_name' => 'News IT'), array('name' => 'edit/lang/nl', 'menu_name' => 'News NL'), array('name' => 'edit/lang/ru', 'menu_name' => 'News RU'));
     $controllId = $this->controllers->getControllerIdByName($this->getRequest()->getControllerName());
     $this->tplVars['lvals']['canEdit'] = $this->user->checkWritePerm($controllId);
     $this->tplVars['lvals']['canDelete'] = $this->user->checkDelPerm($controllId);
 }
示例#9
0
 public function init()
 {
     parent::init();
     $this->tplVars['page_css'][] = 'livevalidation.css';
     $this->tplVars['page_css'][] = 'greenlist.css';
     $this->tplVars['page_js'][] = 'livevalidation.js';
     $this->tplVars['glVals']['canEdit'] = $this->user->checkWritePerm($this->controllers->getControllerIdByName($this->getRequest()->getControllerName()));
     $this->tplVars['glVals']['canDelete'] = $this->user->checkDelPerm($this->controllers->getControllerIdByName($this->getRequest()->getControllerName()));
     $this->tplVars['header']['actions']['names'] = array(array('name' => 'listsimple', 'menu_name' => 'Green list'), array('name' => 'addsimple', 'menu_name' => 'Add to Green list'), array('name' => 'listext', 'menu_name' => 'Extended Green list'), array('name' => 'addext', 'menu_name' => 'Add Extended Green list'));
     $this->greenList = new GreenList($this->getSiteId());
 }
示例#10
0
 public function init()
 {
     parent::init();
     $this->isAjax = FALSE;
     $this->tplVars['header']['actions']['names'] = array(array('name' => 'list', 'menu_name' => 'Banners list'), array('name' => 'addbanner', 'menu_name' => 'Add new category'));
     $this->bannermodel = new Banners($this->getSiteId());
     $this->banneritemmodel = new Banners_item($this->getSiteId());
     $this->langs = new Languages($this->getSiteId());
     $this->pages = new Pages($this->getSiteId());
     $this->pagesList = $this->pages->getPagesList(NULL, array('pg_lang', 'pg_address'));
     $this->langsList = $this->langs->getLanguagesList();
 }
示例#11
0
 public function init()
 {
     parent::init();
     $this->isAjax = FALSE;
     $this->tplVars['header']['actions']['names'] = array(array('name' => 'list', 'menu_name' => 'Menu list'), array('name' => 'addmenu', 'menu_name' => 'Add new menu'));
     $this->menumodel = new Menu($this->getSiteId());
     $this->menuitemmodel = new Menu_item($this->getSiteId());
     $this->langs = new Languages($this->getSiteId());
     $this->pages = new Pages($this->getSiteId());
     $this->pagesList = $this->pages->getPagesList();
     $this->langsList = $this->langs->getLanguagesList();
 }
示例#12
0
 public function init()
 {
     parent::init();
     $dbAdapter = Zend_Registry::get('dbAdapter');
     $select = $dbAdapter->select();
     $select->from('sites', array('s_dbname'));
     $select->where('s_id = ?', $this->getSiteId());
     $dbname = $dbAdapter->fetchOne($select->__toString());
     $config = Zend_Registry::get('config');
     $params = $config->db->config->toArray();
     $params['dbname'] = $dbname;
     $this->siteDbAdapter = Zend_Db::factory($config->db->adapter, $params);
     $this->constants = array('realDomain', 'cachedDomain', 'siteClosed', 'maintainPage', 'addrType', 'trailingSlash', 'addrMaxLength', '404exist', '404page', 'un404page', 'isCacheable', 'langsDb', 'adminDb', 'loginPage', 'siteId', 'root_en', 'root_fr', 'root_de', 'root_es', 'root_jp', 'root_ru', 'locales_as_subdomen', 'use_min', 'protocol', 'nofollow_status', 'analytics', 'interkom');
     $this->loadExistConstants();
     $this->tplVars['header']['actions']['names'] = array(array('name' => 'list', 'menu_name' => 'Constants'), array('name' => 'add', 'menu_name' => 'Add Constant'));
 }
示例#13
0
 public function init()
 {
     parent::init();
     $this->isAjax = $this->getIsAjaxRequest();
     $this->data = new DataModel($this->getSiteId());
     $this->isAjax = FALSE;
     //$this->tplVars['page_css'][] = 'comments.css';
     $this->tplVars['header']['actions']['names'] = array(array('name' => 'list', 'menu_name' => 'List Data'), array('name' => 'add', 'menu_name' => 'New Data'));
     $this->tplVars['page_css'][] = 'dataTables/css/demo_table.css';
     $this->tplVars['page_css'][] = 'datalist.css';
     $this->tplVars['page_js'][] = 'datalist.js';
     $this->tplVars['page_js'][] = 'tiny_mce/tiny_mce.js';
     $this->tplVars['page_js'][] = 'dataTables/js/jquery.dataTables.js';
     $controllId = $this->controllers->getControllerIdByName($this->getRequest()->getControllerName());
     $this->tplVars['canEdit'] = $this->user->checkWritePerm($controllId);
     $this->tplVars['canDelete'] = $this->user->checkDelPerm($controllId);
 }
示例#14
0
 public function init()
 {
     parent::init();
     $controllerId = $this->controllers->getControllerIdByName($this->getRequest()->getControllerName());
     $writePerm = $this->user->checkWritePerm($controllerId);
     $deletePerm = $this->user->checkDelPerm($controllerId);
     $this->groupId = $this->user->getGroupId();
     $this->tplVars['case']['perms']['write'] = $writePerm;
     $this->tplVars['case']['perms']['delete'] = $deletePerm;
     $this->tplVars['case']['perms']['admin'] = $this->groupId == 1 ? '1' : '0';
     $this->tplVars['header']['actions']['names'] = array(array('name' => 'list', 'menu_name' => 'List Case study'));
     if ($writePerm) {
         array_push($this->tplVars['header']['actions']['names'], array('name' => 'add', 'menu_name' => 'New case study'));
     }
     $this->model = new Case_study($this->getSiteId());
     $this->langs = new Languages($this->getSiteId());
     $this->pages = new Pages($this->getSiteId());
     $this->pagesList = $this->pages->getPagesList();
     $this->langsList = $this->langs->getLanguagesList();
     $this->isAjax = false;
 }
示例#15
0
 public function init()
 {
     parent::init();
     $ControllerName = $this->getRequest()->getControllerName();
     $controllerId = $this->controllers->getControllerIdByName($ControllerName);
     $writePerm = $this->user->checkWritePerm($controllerId);
     $deletePerm = $this->user->checkDelPerm($controllerId);
     $groupId = $this->user->getGroupId();
     $SiteDir = $this->getSiteDir();
     $SiteHostname = $this->getNCSiteHostname();
     //$adminPerm = ($groupId == 1) ? 1 : 0;
     $adminPerm = $writePerm && $deletePerm;
     $this->tplVars[$ControllerName]['perms']['write'] = $writePerm;
     $this->tplVars[$ControllerName]['perms']['delete'] = $deletePerm;
     $this->tplVars[$ControllerName]['perms']['admin'] = $adminPerm;
     $PageControllerName = 'pages';
     $PagecontrollerId = $this->controllers->getControllerIdByName($PageControllerName);
     $this->tplVars[$PageControllerName]['perms']['write'] = $this->user->checkWritePerm($PagecontrollerId);
     $this->tplVars[$PageControllerName]['perms']['delete'] = $this->user->checkDelPerm($PagecontrollerId);
     $this->tplVars[$PageControllerName]['perms']['admin'] = $adminPerm;
     $this->isAjax = FALSE;
     $this->blocks = new Blocks($this->getSiteId());
     $this->tplVars['header']['actions']['names'] = array(array('name' => 'list', 'menu_name' => 'Pages list'), array('name' => 'blocks', 'menu_name' => 'Blocks'), array('name' => 'addblock', 'menu_name' => 'Add new block'), array('name' => 'importblock', 'menu_name' => 'Import block'), array('name' => 'sitemap', 'menu_name' => 'Sitemap'));
 }
示例#16
0
 public function init()
 {
     parent::init();
     $this->isAjax = FALSE;
     $this->ElF_path = ROOT_DIR . DIRECTORY_SEPARATOR . 'application' . DIRECTORY_SEPARATOR . 'utilities' . DIRECTORY_SEPARATOR . 'ElFinder' . DIRECTORY_SEPARATOR;
 }
示例#17
0
 public function init()
 {
     parent::init();
     $this->isAjax = FALSE;
     $this->tplVars['header']['actions']['names'] = array(array('name' => 'browser', 'menu_name' => 'Browser'), array('name' => 'uploader', 'menu_name' => 'Uploader'));
 }
示例#18
0
 public function init()
 {
     parent::init();
 }
示例#19
0
 public function init()
 {
     if ($this->_request->action != 'logout') {
         parent::init();
     }
 }
示例#20
0
 public function init()
 {
     parent::init();
     $this->mailer = new Mailer();
     $this->tplVars['header']['actions']['names'] = array(array('name' => 'list', 'menu_name' => 'Mailers'), array('name' => 'archive', 'menu_name' => 'E-mail Archive'));
 }
示例#21
0
 public function init()
 {
     parent::init();
     $this->users = new UsersHandler();
     $this->tplVars['header']['actions']['names'] = array(array('name' => 'list', 'menu_name' => 'Users list'));
 }