31
0
mirror of https://github.com/joomla-extensions/patchtester.git synced 2024-09-20 08:49:02 +00:00
patchtester/administrator/components/com_patchtester/patchtester.php

23 lines
628 B
PHP
Raw Normal View History

2011-10-11 13:02:57 +00:00
<?php
/**
2012-06-12 18:42:45 +00:00
* @package PatchTester
* @copyright Copyright (C) 2011 Ian MacLennan, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
2011-10-11 13:02:57 +00:00
*/
// no direct access
defined('_JEXEC') or die;
// Access check.
2012-06-12 18:42:45 +00:00
if (!JFactory::getUser()->authorise('core.manage', 'com_patchtester'))
{
2011-10-11 13:02:57 +00:00
return JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR'));
}
2013-07-12 01:49:58 +00:00
JLoader::registerPrefix('PT', __DIR__.'/helpers');
2012-09-09 01:53:44 +00:00
$controller = JControllerLegacy::getInstance('PatchTester');
2013-07-12 01:49:58 +00:00
$controller->execute(JFactory::getApplication()->input->getCmd('task'));
2011-10-11 13:02:57 +00:00
$controller->redirect();