authorize( 'com_modules', 'manage' )) { $mainframe->redirect( 'index.php', JText::_('ALERTNOTAUTH') ); } // Require the base controller require_once (JPATH_COMPONENT.DS.'controller.php'); // Create the controller $controller = new ModulesController( array( 'default_task' => 'view' )); // Perform the Request task $controller->execute( JRequest::getCmd('task', 'view') ); // Redirect if set by the controller $controller->redirect();