Ejemplo n.º 1
0
 /**
  * Execute the action
  *
  * @return	void
  */
 public function execute()
 {
     // call parent, this will probably add some general CSS/JS or other required files
     parent::execute();
     // set category id
     $this->categoryId = SpoonFilter::getGetValue('category', null, null, 'int');
     if ($this->categoryId == 0) {
         $this->categoryId = null;
     } else {
         // get category
         $this->category = BackendBlogModel::getCategory($this->categoryId);
         // reset
         if (empty($this->category)) {
             // reset GET to trick Spoon
             $_GET['category'] = null;
             // reset
             $this->categoryId = null;
         }
     }
     // load datagrid
     $this->loadDataGrids();
     // parse page
     $this->parse();
     // display the page
     $this->display();
 }
Ejemplo n.º 2
0
 /**
  * Execute the action
  */
 public function execute()
 {
     parent::execute();
     $this->loadDataGrid();
     $this->parse();
     $this->display();
 }
Ejemplo n.º 3
0
 /**
  * Execute the action
  */
 public function execute()
 {
     parent::execute();
     $this->checkForDefaultGroups();
     $this->loadDataGrid();
     $this->parse();
     $this->display();
 }
Ejemplo n.º 4
0
 /**
  * Execute the action
  */
 public function execute()
 {
     parent::execute();
     $this->loadForm();
     $this->validateForm();
     $this->parse();
     $this->display();
 }
Ejemplo n.º 5
0
 /**
  * Execute the action
  *
  * @return	void
  */
 public function execute()
 {
     // call parent, this will probably add some general CSS/JS or other required files
     parent::execute();
     // parse the error
     $this->parse();
     // display the page
     $this->display();
 }
Ejemplo n.º 6
0
 /**
  * Execute the action
  */
 public function execute()
 {
     parent::execute();
     // add js
     $this->header->addJS('http://maps.google.com/maps/api/js?sensor=false', null, null, true, false);
     $this->loadDataGrid();
     $this->parse();
     $this->display();
 }
Ejemplo n.º 7
0
 /**
  * Execute the action.
  */
 public function execute()
 {
     parent::execute();
     $this->loadData();
     $this->loadDataGridInstalled();
     $this->loadDataGridInstallable();
     $this->parse();
     $this->display();
 }
 /**
  * Execute the action
  */
 public function execute()
 {
     parent::execute();
     $this->header->addJS('highcharts.js', 'core', false);
     $this->getData();
     $this->loadDataGrid();
     $this->parse();
     $this->display();
 }
Ejemplo n.º 9
0
 /**
  * Execute the action
  *
  * @return	void
  */
 public function execute()
 {
     // call parent, this will probably add some general CSS/JS or other required files
     parent::execute();
     // add highchart javascript
     $this->header->addJS('highcharts.js');
     // set dates
     $this->setDates();
 }
Ejemplo n.º 10
0
 /**
  * Execute the action.
  */
 public function execute()
 {
     parent::execute();
     $this->header->addJS('profiles.js');
     $this->setFilter();
     $this->loadForm();
     $this->loadDataGrid();
     $this->parse();
     $this->display();
 }
Ejemplo n.º 11
0
 /**
  * Execute the action
  */
 public function execute()
 {
     parent::execute();
     $this->isGod = BackendAuthentication::getUser()->isGod();
     $this->setFilter();
     $this->loadForm();
     $this->loadDataGrid();
     $this->parse();
     $this->display();
 }
Ejemplo n.º 12
0
 /**
  * Execute the action.
  *
  * @return	void
  */
 public function execute()
 {
     // call parent, this will probably add some general CSS/JS or other required files
     parent::execute();
     // set filter
     $this->setFilter();
     // set items
     $this->setItems();
     // create XML
     $this->createXML();
 }
Ejemplo n.º 13
0
 /**
  * Execute the action
  *
  * @return	void
  */
 public function execute()
 {
     // call parent, this will probably add some general CSS/JS or other required files
     parent::execute();
     // load the datagrids
     $this->loadDataGrids();
     // parse the datagrids
     $this->parse();
     // display the page
     $this->display();
 }
Ejemplo n.º 14
0
 /**
  * Execute the action
  */
 public function execute()
 {
     // check if the user is really logged on
     if (BackendAuthentication::getUser()->isAuthenticated()) {
         $this->redirect($this->getParameter('querystring', 'string', BackendModel::createUrlForAction(null, 'dashboard')));
     }
     parent::execute();
     $this->load();
     $this->validateForm();
     $this->parse();
     $this->display();
 }
Ejemplo n.º 15
0
 /**
  * Execute the action
  *
  * @return	void
  */
 public function execute()
 {
     // call parent, this will probably add some general CSS/JS or other required files
     parent::execute();
     // check for default groups
     $this->checkForDefaultGroups();
     // load datagrid
     $this->loadDataGrid();
     // parse page
     $this->parse();
     // display the page
     $this->display();
 }
Ejemplo n.º 16
0
 /**
  * Execute the action
  *
  * @return	void
  */
 public function execute()
 {
     // call parent, this will probably add some general CSS/JS or other required files
     parent::execute();
     // load the form
     $this->loadForm();
     // validate the form
     $this->validateForm();
     // parse
     $this->parse();
     // display the page
     $this->display();
 }
Ejemplo n.º 17
0
 /**
  * Execute the action
  */
 public function execute()
 {
     parent::execute();
     // get some data
     $modulesThatRequireAkismet = BackendExtensionsModel::getModulesThatRequireAkismet();
     $modulesThatRequireGoogleMaps = BackendExtensionsModel::getModulesThatRequireGoogleMaps();
     // set properties
     $this->needsAkismet = !empty($modulesThatRequireAkismet);
     $this->needsGoogleMaps = !empty($modulesThatRequireGoogleMaps);
     $this->loadForm();
     $this->validateForm();
     $this->parse();
     $this->display();
 }
Ejemplo n.º 18
0
 /**
  * Execute the action
  */
 public function execute()
 {
     parent::execute();
     // update the queued mailings with 'sent' status if their time has come already
     BackendMailmotorModel::updateQueuedMailings();
     // get the active campaign
     $this->getCampaign();
     // load datagrid
     $this->loadDataGrids();
     // parse page
     $this->parse();
     // display the page
     $this->display();
 }
Ejemplo n.º 19
0
 /**
  * Execute the action.
  *
  * @return	void
  */
 public function execute()
 {
     // call parent, this will probably add some general CSS/JS or other required files
     parent::execute();
     // set filter
     $this->setFilter();
     // load form
     $this->loadForm();
     // load datagrids
     $this->loadDataGrid();
     // parse page
     $this->parse();
     // display the page
     $this->display();
 }
Ejemplo n.º 20
0
 /**
  * Execute the action
  *
  * @return	void
  */
 public function execute()
 {
     // call parent, this will probably add some general CSS/JS or other required files
     parent::execute();
     // update the queued mailings with 'sent' status if their time has come already
     BackendMailmotorModel::updateQueuedMailings();
     // get the active campaign
     $this->getCampaign();
     // load datagrid
     $this->loadDataGrids();
     // parse page
     $this->parse();
     // display the page
     $this->display();
 }
Ejemplo n.º 21
0
 /**
  * Execute the action.
  */
 public function execute()
 {
     // get parameters
     $this->currentTheme = $this->getParameter('theme', 'string');
     // does the item exist
     if ($this->currentTheme !== null && BackendExtensionsModel::existsTheme($this->currentTheme)) {
         parent::execute();
         $this->loadData();
         $this->loadDataGridTemplates();
         $this->parse();
         $this->display();
     } else {
         $this->redirect(BackendModel::createURLForAction('themes') . '&error=non-existing');
     }
 }
Ejemplo n.º 22
0
 /**
  * Execute the action
  *
  * @return	void
  */
 public function execute()
 {
     // call parent, this will probably add some general CSS/JS or other required files
     parent::execute();
     // add highchart javascript
     $this->header->addJS('highcharts.js');
     // get the data
     $this->getData();
     // load datagrid
     $this->loadDataGrid();
     // parse page
     $this->parse();
     // display the page
     $this->display();
 }
Ejemplo n.º 23
0
 /**
  * Execute the action
  */
 public function execute()
 {
     // get parameters
     $this->id = $this->getParameter('id', 'int');
     // does the item exist
     if ($this->id !== null && BackendFormBuilderModel::existsData($this->id)) {
         parent::execute();
         $this->setFilter();
         $this->getData();
         $this->parse();
         $this->display();
     } else {
         $this->redirect(BackendModel::createURLForAction('index') . '&error=non-existing');
     }
 }
Ejemplo n.º 24
0
 /**
  * Execute the action
  *
  * @return	void
  */
 public function execute()
 {
     // call parent, this will probably add some general CSS/JS or other required files
     parent::execute();
     // is the user a GodUser?
     $this->isGod = BackendAuthentication::getUser()->isGod();
     // set filter
     $this->setFilter();
     // load form
     $this->loadForm();
     // load datagrids
     $this->loadDataGrid();
     // parse page
     $this->parse();
     // display the page
     $this->display();
 }
Ejemplo n.º 25
0
 /**
  * Execute the action.
  *
  * @return	void
  */
 public function execute()
 {
     // call parent, this will probably add some general CSS/JS or other required files
     parent::execute();
     // use our custom JavaScript
     $this->header->addJS('profiles.js');
     // set filter
     $this->setFilter();
     // load form
     $this->loadForm();
     // load datagrids
     $this->loadDataGrid();
     // parse page
     $this->parse();
     // display the page
     $this->display();
 }
Ejemplo n.º 26
0
 /**
  * Execute the action.
  */
 public function execute()
 {
     // get parameters
     $this->currentModule = $this->getParameter('module', 'string');
     // does the item exist
     if ($this->currentModule !== null && BackendExtensionsModel::existsModule($this->currentModule)) {
         // call parent, this will probably add some general CSS/JS or other required files
         parent::execute();
         // make sure this module can be installed
         $this->validateInstall();
         // do the actual install
         BackendExtensionsModel::installModule($this->currentModule);
         // redirect to index with a success message
         $this->redirect(BackendModel::createURLForAction('modules') . '&report=module-installed&var=' . $this->currentModule . '&highlight=row-module_' . $this->currentModule);
     } else {
         $this->redirect(BackendModel::createURLForAction('modules') . '&error=non-existing');
     }
 }
Ejemplo n.º 27
0
 /**
  * Execute the action
  *
  * @return	void
  */
 public function execute()
 {
     // call parent, this will probably add some general CSS/JS or other required files
     parent::execute();
     // get some data
     $modulesThatRequireAkismet = BackendSettingsModel::getModulesThatRequireAkismet();
     $modulesThatRequireGoogleMaps = BackendSettingsModel::getModulesThatRequireGoogleMaps();
     // set properties
     $this->needsAkismet = !empty($modulesThatRequireAkismet);
     $this->needsGoogleMaps = !empty($modulesThatRequireGoogleMaps);
     // load the form
     $this->loadForm();
     // validate the form
     $this->validateForm();
     // parse
     $this->parse();
     // display the page
     $this->display();
 }
Ejemplo n.º 28
0
 /**
  * Execute the action
  *
  * @return	void
  */
 public function execute()
 {
     // get parameters
     $this->id = $this->getParameter('id', 'int');
     // does the item exist
     if ($this->id !== null && BackendFormBuilderModel::existsData($this->id)) {
         // call parent, this will probably add some general CSS/JS or other required files
         parent::execute();
         // set filter
         $this->setFilter();
         // get data
         $this->getData();
         // parse
         $this->parse();
         // display the page
         $this->display();
     } else {
         $this->redirect(BackendModel::createURLForAction('index') . '&error=non-existing');
     }
 }
Ejemplo n.º 29
0
 /**
  * Execute the action
  *
  * @return	void
  */
 public function execute()
 {
     // check if the user is really logged on
     if (BackendAuthentication::getUser()->isAuthenticated()) {
         // get the redirect-URL from the URL
         $redirectURL = $this->getParameter('querystring', 'string', BackendModel::createUrlForAction(null, 'dashboard'));
         // redirect to the correct URL (URL the user was looking for or fallback)
         $this->redirect($redirectURL);
     }
     // call parent, this will probably add some general CSS/JS or other required files
     parent::execute();
     // load form
     $this->load();
     // validate the form
     $this->validateForm();
     // parse the error
     $this->parse();
     // display the page
     $this->display();
 }
Ejemplo n.º 30
0
 /**
  * Execute the action.
  */
 public function execute()
 {
     // get parameters
     $this->currentModule = $this->getParameter('module', 'string');
     // does the item exist
     if ($this->currentModule !== null && BackendExtensionsModel::existsModule($this->currentModule)) {
         // call parent, this will probably add some general CSS/JS or other required files
         parent::execute();
         // load data
         $this->loadData();
         // load datagrids
         $this->loadDataGridCronjobs();
         $this->loadDataGridEvents();
         // parse
         $this->parse();
         // display the page
         $this->display();
     } else {
         $this->redirect(BackendModel::createURLForAction('modules') . '&error=non-existing');
     }
 }