/**
  * 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 extra
  */
 public function execute()
 {
     parent::execute();
     $this->loadTemplate();
     $this->loadForm();
     $this->validateForm();
     $this->display();
     $this->saveStatistics();
 }
Beispiel #18
0
 /**
  * Get the assigned template.
  *
  * @return	array
  */
 public function getTemplate()
 {
     return $this->object->getTemplate();
 }
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();
 }