2011-10-11 13:02:57 +00:00
|
|
|
<?php
|
|
|
|
/**
|
2013-07-13 02:26:21 +00:00
|
|
|
* @package PatchTester
|
|
|
|
*
|
2014-01-03 02:48:28 +00:00
|
|
|
* @copyright Copyright (C) 2011 - 2012 Ian MacLennan, Copyright (C) 2013 - 2014 Open Source Matters, Inc. All rights reserved.
|
2013-07-13 02:26:21 +00:00
|
|
|
* @license GNU General Public License version 2 or later
|
2011-10-11 13:02:57 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
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'));
|
|
|
|
}
|
|
|
|
|
2014-05-03 01:56:15 +00:00
|
|
|
JLoader::register('PatchtesterHelper', __DIR__ . '/helpers/patchtester.php');
|
|
|
|
|
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();
|