Advertisement
Guest User

Untitled

a guest
Mar 11th, 2013
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.61 KB | None | 0 0
  1. <?php
  2.  
  3. // no direct access
  4. defined( '_JEXEC' ) or die( 'Restricted access' );
  5.  
  6. // Access check.
  7. if (!JFactory::getUser()->authorise('core.manage', 'com_redj')) {
  8.   return JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR'));
  9. }
  10.  
  11. // import Joomla controller library
  12. jimport('joomla.application.component.controller');
  13.  
  14. // Get an instance of the ReDJ controller
  15. $controller = JControllerAdmin::getInstance('ReDJ');
  16.  
  17. // Perform the Request task
  18. $input =JFactory::getApplication()->input;
  19. $controller->execute($input->get('task'));
  20.  
  21. // Redirect if set by the controller
  22. $controller->redirect();
  23.  
  24. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement