first commit
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/**
|
||||
* @package quantummanager
|
||||
* @author Dmitry Tsymbal <cymbal@delo-design.ru>
|
||||
* @copyright Copyright © 2019 Delo Design & NorrNext. All rights reserved.
|
||||
* @license GNU General Public License version 3 or later; see license.txt
|
||||
* @link https://www.norrnext.com
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\MVC\Controller\BaseController;
|
||||
|
||||
// Access check.
|
||||
if (!Factory::getUser()->authorise('core.manage', 'com_quantummanager'))
|
||||
{
|
||||
throw new InvalidArgumentException(Text::_('JERROR_ALERTNOAUTHOR'), 404);
|
||||
}
|
||||
|
||||
// Require the helper
|
||||
require_once JPATH_COMPONENT_ADMINISTRATOR . '/helpers/quantummanager.php';
|
||||
|
||||
// Execute the task
|
||||
$controller = BaseController::getInstance('quantummanager');
|
||||
$controller->execute(Factory::getApplication()->input->get('task'));
|
||||
$controller->redirect();
|
||||
Reference in New Issue
Block a user