authorize( 'com_config', 'manage' )) { $mainframe->redirect('index.php', JText::_('ALERTNOTAUTH')); } // Require the base controller require_once (JPATH_COMPONENT.DS.'controller.php'); // Require specific controller if requested if($controller = JRequest::getWord('controller', 'application')) { $path = JPATH_COMPONENT.DS.'controllers'.DS.$controller.'.php'; if (file_exists($path)) { require_once $path; } else { $controller = ''; } } // Create the controller $classname = 'ConfigController'.ucfirst($controller); $controller = new $classname( ); JResponse::setHeader( 'Expires', 'Mon, 26 Jul 1997 05:00:00 GMT', true ); // Perform the Request task $controller->execute( JRequest::getCmd( 'task' ) ); $controller->redirect();