Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // no direct access
- defined( '_JEXEC' ) or die( 'Restricted access' );
- // Access check.
- if (!JFactory::getUser()->authorise('core.manage', 'com_redj')) {
- return JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR'));
- }
- // import Joomla controller library
- jimport('joomla.application.component.controller');
- // Get an instance of the ReDJ controller
- $controller = JControllerAdmin::getInstance('ReDJ');
- // Perform the Request task
- $input =JFactory::getApplication()->input;
- $controller->execute($input->get('task'));
- // Redirect if set by the controller
- $controller->redirect();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement