authorise('akeeba.configure', 'com_akeeba')) { $this->setRedirect('index.php?option=com_akeeba'); return JError::raiseWarning(403, JText::_('JERROR_ALERTNOAUTHOR')); $this->redirect(); } } } public function display() { $document =& JFactory::getDocument(); $viewType = $document->getType(); $viewName = JRequest::getCmd( 'view', $this->getName() ); $view = & $this->getView( $viewName, $viewType, '', array( 'base_path'=>$this->_basePath)); // Get/Create the model if ($model = & $this->getModel($viewName)) { // Push the model into the view (as default) $view->setModel($model, true); } // Grab the data and push them to the model $model->host = JRequest::getString('host',''); $model->port = JRequest::getInt('port',21); $model->passive = JRequest::getInt('passive',1); $model->ssl = JRequest::getInt('ssl',0); $model->username = JRequest::getVar('username',''); $model->password = JRequest::getVar('password',''); $model->directory = JRequest::getVar('directory', ''); // Set the layout $view->setLayout('default'); $view->display(); } }