/**
  * Execute the extra.
  *
  * @return	void
  */
 public function execute()
 {
     // get reset key
     $key = $this->URL->getParameter(0);
     // do we have an reset key?
     if (isset($key)) {
         // load parent
         parent::execute();
         // load template
         $this->loadTemplate();
         // get profile id
         $profileId = FrontendProfilesModel::getIdBySetting('forgot_password_key', $key);
         // have id?
         if ($profileId !== 0) {
             // load
             $this->loadForm();
             // validate
             $this->validateForm();
         } elseif ($this->URL->getParameter('saved') != 'true') {
             $this->redirect(FrontendNavigation::getURL(404));
         }
         // parse
         $this->parse();
     } else {
         $this->redirect(FrontendNavigation::getURL(404));
     }
 }
Beispiel #2
0
 /**
  * Execute the extra
  */
 public function execute()
 {
     parent::execute();
     $this->loadTemplate();
     $this->getData();
     $this->parse();
 }
Beispiel #3
0
 /**
  * Execute the extra
  */
 public function execute()
 {
     parent::execute();
     $this->tpl->assign('hideContentTitle', true);
     $this->loadTemplate();
     $this->getData();
     $this->parse();
 }
Beispiel #4
0
 /**
  * Execute the extra
  */
 public function execute()
 {
     parent::execute();
     // overwrite the template path
     $this->setOverwrite(true);
     $this->setTemplatePath(FRONTEND_MODULES_PATH . '/' . $this->getModule() . '/layout/templates/detail.tpl');
     $this->loadData();
     $this->parse();
 }
Beispiel #5
0
 /**
  * Execute the extra
  *
  * @return	void
  */
 public function execute()
 {
     // call the parent
     parent::execute();
     // load template
     $this->loadTemplate();
     // parse
     $this->parse();
 }
Beispiel #6
0
 /**
  * Execute the extra
  *
  * @return	void
  */
 public function execute()
 {
     // call the parent
     parent::execute();
     // load the data
     $this->getData();
     // parse
     $this->parse();
 }
Beispiel #7
0
 /**
  * Execute the extra
  */
 public function execute()
 {
     parent::execute();
     // hide contenTitle, in the template the title is wrapped with an inverse-option
     $this->tpl->assign('hideContentTitle', true);
     $this->loadTemplate();
     $this->getData();
     $this->updateStatistics();
     $this->loadForm();
     $this->validateForm();
     $this->parse();
 }
Beispiel #8
0
 /**
  * Execute the extra
  *
  * @return	void
  */
 public function execute()
 {
     // call the parent
     parent::execute();
     // hide contenTitle, in the template the title is wrapped with an inverse-option
     $this->tpl->assign('hideContentTitle', true);
     // load template
     $this->loadTemplate();
     // load the data
     $this->getData();
     // parse
     $this->parse();
 }
Beispiel #9
0
 /**
  * Execute.
  */
 public function execute()
 {
     parent::execute();
     // profile not logged in
     if (!FrontendProfilesAuthentication::isLoggedIn()) {
         $this->loadTemplate();
         $this->loadForm();
         $this->validateForm();
         $this->parse();
     } else {
         $this->redirect(SITE_URL);
     }
 }
 /**
  * Execute the extra.
  */
 public function execute()
 {
     // only for guests
     if (!FrontendProfilesAuthentication::isLoggedIn()) {
         parent::execute();
         $this->loadTemplate();
         $this->loadForm();
         $this->validateForm();
         $this->parse();
     } else {
         $this->redirect(FrontendNavigation::getURLForBlock('profiles', 'settings'));
     }
 }
Beispiel #11
0
 /**
  * Execute the extra.
  */
 public function execute()
 {
     // profile logged in
     if (FrontendProfilesAuthentication::isLoggedIn()) {
         parent::execute();
         $this->getData();
         $this->loadTemplate();
         $this->loadForm();
         $this->validateForm();
         $this->parse();
     } else {
         $this->redirect(FrontendNavigation::getURL(404));
     }
 }
Beispiel #12
0
 /**
  * Execute the extra
  *
  * @return	void
  */
 public function execute()
 {
     // call the parent
     parent::execute();
     // hide contenTitle, in the template the title is wrapped with an inverse-option
     $this->tpl->assign('hideContentTitle', true);
     // load the data
     $this->getData();
     // overwrite the template path
     $this->setOverwrite(true);
     $this->setTemplatePath(FRONTEND_MODULES_PATH . '/' . $this->getModule() . '/layout/templates/detail.tpl');
     // parse
     $this->parse();
 }
Beispiel #13
0
 /**
  * Execute the extra.
  *
  * @return	void
  */
 public function execute()
 {
     // no url parameter
     if (FrontendProfilesAuthentication::isLoggedIn()) {
         // call the parent
         parent::execute();
         /*
          * You could use this as some kind of dashboard where you could show an activity stream, some statistics, ...
          */
         // load template
         $this->loadTemplate();
     } else {
         $this->redirect(FrontendNavigation::getURL(404));
     }
 }
Beispiel #14
0
 /**
  * Execute the extra.
  */
 public function execute()
 {
     // only logged in profiles can seer their dashboard
     if (FrontendProfilesAuthentication::isLoggedIn()) {
         // call the parent
         parent::execute();
         /*
          * You could use this as some kind of dashboard where you can show an activity
          * stream, some statistics, ...
          */
         $this->loadTemplate();
     } else {
         $this->redirect(FrontendNavigation::getURL(404));
     }
 }
 /**
  * Execute the extra
  *
  * @return	void
  */
 public function execute()
 {
     // profile not logged in
     if (!FrontendProfilesAuthentication::isLoggedIn()) {
         // load parent
         parent::execute();
         // load template
         $this->loadTemplate();
         // load
         $this->loadForm();
         // validate
         $this->validateForm();
         // parse
         $this->parse();
     } else {
         $this->redirect(FrontendNavigation::getURL(404));
     }
 }
Beispiel #16
0
 /**
  * Execute the extra.
  *
  * @return	void
  */
 public function execute()
 {
     // load parent
     parent::execute();
     // load template
     $this->loadTemplate();
     // profile not logged in
     if (!FrontendProfilesAuthentication::isLoggedIn()) {
         // load
         $this->loadForm();
         // validate
         $this->validateForm();
         // parse
         $this->parse();
     } elseif ($this->URL->getParameter('sent') == true) {
         $this->parse();
     } else {
         $this->redirect(SITE_URL);
     }
 }
Beispiel #17
0
 /**
  * Execute the action
  * We will build the classname, require the class and call the execute method.
  *
  * @return	void
  */
 public function execute()
 {
     // build action-class-name
     $actionClassName = 'Frontend' . SpoonFilter::toCamelCase($this->getModule() . '_' . $this->getAction());
     // require the config file, we know it is there because we validated it before (possible actions are defined by existance off the file).
     require_once FRONTEND_MODULES_PATH . '/' . $this->getModule() . '/actions/' . $this->getAction() . '.php';
     // validate if class exists (aka has correct name)
     if (!class_exists($actionClassName)) {
         throw new FrontendException('The actionfile is present, but the classname should be: ' . $actionClassName . '.');
     }
     // create action-object
     $this->object = new $actionClassName($this->getModule(), $this->getAction(), $this->getData());
     // validate if the execute-method is callable
     if (!is_callable(array($this->object, 'execute'))) {
         throw new FrontendException('The actionfile should contain a callable method "execute".');
     }
     // call the execute method of the real action (defined in the module)
     $this->object->execute();
     // set some properties
     $this->setOverwrite($this->object->getOverwrite());
     if ($this->object->getTemplatePath() !== null) {
         $this->setTemplatePath($this->object->getTemplatePath());
     }
 }
Beispiel #18
0
 /**
  * Execute the extra
  */
 public function execute()
 {
     parent::execute();
     $this->loadTemplate();
     $this->loadForm();
     $this->validateForm();
     $this->display();
     $this->saveStatistics();
 }
Beispiel #19
0
 /**
  * Execute the extra
  *
  * @return	void
  */
 public function execute()
 {
     // call the parent
     parent::execute();
     // load template
     $this->loadTemplate();
     // load form
     $this->loadForm();
     // validate form
     $this->validateForm();
     // display
     $this->display();
     // save statistics
     $this->saveStatistics();
 }