authorise('akeeba.backup', 'com_akeeba')) { $this->setRedirect('index.php?option=com_akeeba'); return JError::raiseWarning(403, JText::_('JERROR_ALERTNOAUTHOR')); $this->redirect(); } } } /** * Default task; shows the initial page where the user selects a profile * and enters description and comment * */ public function display() { $format = JRequest::getCmd('format','html'); $newProfile = JRequest::getInt('profileid', -10); if(is_numeric($newProfile) && ($newProfile > 0)) { $session =& JFactory::getSession(); $session->set('profile', $newProfile, 'akeeba'); } // For raw view with default task use the default_raw.php template file if($format == 'raw') { JRequest::setVar('tpl', 'raw'); } else { // Deactivate the menus JRequest::setVar('hidemainmenu', 1); } parent::display(); } }