Beispiel #1
0
 public function __construct()
 {
     $this->app = JFactory::getApplication();
     $this->input = $this->app->input;
     $this->config = FD::config();
     parent::__construct();
 }
Beispiel #2
0
 /**
  * Override's parent's execute behavior
  *
  * @since	1.0
  * @access	public
  * @param	string
  * @return
  */
 public function execute($task)
 {
     $current = $this->input->get('controller', '', 'word');
     // Check and see if this view should be displayed
     // If private mode is enabled and user isn't logged in.
     if ($this->config->get('general.site.lockdown.enabled') && $this->my->guest) {
         if ($this->lockdown($task) && !empty($current)) {
             $url = FRoute::login(array(), false);
             return $this->app->redirect($url);
         }
     }
     parent::execute($task);
 }
Beispiel #3
0
 /**
  * Override's parent's execute behavior
  *
  * @since	1.0
  * @access	public
  * @param	string
  * @return
  */
 public function execute($task)
 {
     $config = FD::config();
     $current = JRequest::getWord('controller');
     // Check and see if this view should be displayed
     // If private mode is enabled and user isn't logged in.
     if ($config->get('general.site.lockdown.enabled') && !JFactory::getUser()->id) {
         if ($this->lockdown($task) && !empty($current)) {
             JFactory::getApplication()->redirect(FRoute::login(array(), false));
         }
     }
     parent::execute($task);
 }
Beispiel #4
0
 public function __construct()
 {
     parent::__construct();
 }