/administrator/components/com_plugins/plugins.php

https://bitbucket.org/eternaware/joomus · PHP · 19 lines · 9 code · 3 blank · 7 comment · 1 complexity · 8a1e07ea50bd12c77941220e645be495 MD5 · raw file

  1. <?php
  2. /**
  3. * @package Joomla.Administrator
  4. * @subpackage com_plugins
  5. *
  6. * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
  7. * @license GNU General Public License version 2 or later; see LICENSE.txt
  8. */
  9. defined('_JEXEC') or die;
  10. if (!JFactory::getUser()->authorise('core.manage', 'com_plugins'))
  11. {
  12. return JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR'));
  13. }
  14. $controller = JControllerLegacy::getInstance('Plugins');
  15. $controller->execute(JFactory::getApplication()->input->get('task'));
  16. $controller->redirect();