2017-02-14 14:34:35 +00:00
|
|
|
<?php
|
|
|
|
/**
|
2019-03-09 19:44:14 +00:00
|
|
|
* @package Joomla.JEDChecker
|
2017-02-14 14:34:35 +00:00
|
|
|
*
|
2019-03-10 16:09:42 +00:00
|
|
|
* @copyright Copyright (C) 2017 - 2019 Open Source Matters, Inc. All rights reserved.
|
|
|
|
* Copyright (C) 2008 - 2016 compojoom.com . All rights reserved.
|
2019-03-10 08:49:52 +00:00
|
|
|
* @author Daniel Dimitrov <daniel@compojoom.com>
|
|
|
|
* 02.06.12
|
|
|
|
*
|
2019-03-09 19:44:14 +00:00
|
|
|
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
2017-02-14 14:34:35 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
defined('_JEXEC') or die('Restricted access');
|
|
|
|
|
2023-08-13 09:22:27 +00:00
|
|
|
use Joomla\CMS\Factory;
|
|
|
|
use Joomla\CMS\Language\Text;
|
|
|
|
use Joomla\CMS\MVC\Controller\BaseController;
|
|
|
|
|
|
|
|
if (!Factory::getUser()->authorise('core.manage', 'com_jedchecker'))
|
2017-02-14 14:34:35 +00:00
|
|
|
{
|
2023-08-13 09:22:27 +00:00
|
|
|
throw new Exception(Text::_('JERROR_ALERTNOAUTHOR'));
|
2017-02-14 14:34:35 +00:00
|
|
|
}
|
|
|
|
|
2023-08-13 09:22:27 +00:00
|
|
|
$input = Factory::getApplication()->input;
|
2017-02-14 14:34:35 +00:00
|
|
|
$view = $input->getCmd('view', '');
|
|
|
|
|
2021-04-04 10:25:35 +00:00
|
|
|
if ($view === '' && $input->getCmd('task', '') === '')
|
2017-02-14 14:34:35 +00:00
|
|
|
{
|
|
|
|
$input->set('view', 'uploads');
|
|
|
|
}
|
|
|
|
|
2023-08-13 09:22:27 +00:00
|
|
|
$controller = BaseController::getInstance('jedchecker');
|
2017-02-14 14:34:35 +00:00
|
|
|
$controller->execute($input->getCmd('task', ''));
|
|
|
|
$controller->redirect();
|