Пример #1
0
 public function execute($task)
 {
     $session = JFactory::getSession();
     switch ($task) {
         case 'add':
         case 'default':
         case 'browse':
             $session->set('buadmin.task', 'default', 'akeeba');
             $this->task = 'browse';
             break;
         case 'restorepoint':
             if (!AKEEBA_PRO) {
                 JError::raiseError('403', JText::_('AKEEBA_POSTSETUP_NOTAVAILABLEINCORE'));
                 return false;
             }
             $session->set('buadmin.task', 'restorepoint', 'akeeba');
             $this->task = 'browse';
             break;
         case 'showcomment':
             $this->layout = 'comment';
             $this->task = 'edit';
             break;
         default:
             $this->task = $task;
             break;
     }
     $this->input->set('task', $this->task);
     $this->getThisView()->setLayout($this->layout);
     parent::execute($this->task);
 }
 public function execute($task)
 {
     if (!in_array($task, array('components', 'languages', 'modules', 'plugins', 'templates', 'toggleComponent', 'toggleLanguage', 'toggleModule', 'togglePlugin', 'toggleTemplate'))) {
         $task = 'components';
     }
     parent::execute($task);
 }
Пример #3
0
 public function execute($task)
 {
     if ($task != 'ajax') {
         $task = 'add';
     }
     parent::execute($task);
 }
 public function execute($task)
 {
     if (!in_array($task, array('iframe', 'download'))) {
         $task = 'browse';
     }
     parent::execute($task);
 }
 public function execute($task)
 {
     if (!in_array($task, array('discover', 'import'))) {
         $task = 'browse';
     }
     parent::execute($task);
 }
Пример #6
0
 public function execute($task)
 {
     if ($task != 'save') {
         $task = 'browse';
     }
     parent::execute($task);
 }
 public function execute($task)
 {
     if (!in_array($task, array('step1', 'step2', 'step3'))) {
         $task = 'step1';
     }
     parent::execute($task);
 }
Пример #8
0
 /**
  * Override execute() to only allow specific tasks to run.
  *
  * @param   string   $task  The task we are asked to run.
  *
  * @return  bool|null
  * @throws  Exception
  */
 public function execute($task)
 {
     if (!in_array($task, $this->allowedTasks)) {
         $task = $this->allowedTasks[0];
     }
     return parent::execute($task);
 }
Пример #9
0
 public function execute($task)
 {
     if (!in_array($task, array('start', 'ajax'))) {
         $task = 'browse';
     }
     parent::execute($task);
 }
 public function execute($task)
 {
     if ($task != 'dltoserver') {
         $task = 'browse';
     }
     parent::execute($task);
 }
Пример #11
0
 public function execute($task)
 {
     $profile_id = $this->input->getInt('profileid', null);
     if (!empty($profile_id) && is_numeric($profile_id) && $profile_id > 0) {
         $session = JFactory::getSession();
         $session->set('profile', $profile_id, 'akeeba');
     }
     if (!in_array($task, array('iframe', 'download'))) {
         $task = 'browse';
     }
     parent::execute($task);
 }
Пример #12
0
 public function execute($task)
 {
     $session = JFactory::getSession();
     switch ($task) {
         case 'add':
         case 'default':
         case 'browse':
             $session->set('buadmin.task', 'default', 'akeeba');
             $this->task = 'browse';
             break;
         case 'showcomment':
             $this->layout = 'comment';
             $this->task = 'edit';
             break;
         default:
             $this->task = $task;
             break;
     }
     $this->input->set('task', $this->task);
     $this->getThisView()->setLayout($this->layout);
     parent::execute($this->task);
 }
Пример #13
0
 public function execute($task)
 {
     $task = 'browse';
     parent::execute($task);
 }