33
2
mirror of https://github.com/joomla-extensions/jedchecker.git synced 2024-11-12 00:06:27 +00:00
jedchecker/administrator/components/com_jedchecker/jedchecker.php

36 lines
1.0 KiB
PHP
Raw Normal View History

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');
jimport('joomla.application.component.controllerlegacy');
2019-03-09 19:44:14 +00:00
if (!JFactory::getUser()->authorise('core.manage', 'com_jedchecker'))
2017-02-14 14:34:35 +00:00
{
throw new Exception(JText::_('JERROR_ALERTNOAUTHOR'));
}
// We'll need JFile and JFolder all through the component so let us load them here
2017-02-14 14:34:35 +00:00
jimport('joomla.filesystem.folder');
jimport('joomla.filesystem.file');
$input = JFactory::getApplication()->input;
$view = $input->getCmd('view', '');
if ($view === '' && $input->getCmd('task', '') === '')
2017-02-14 14:34:35 +00:00
{
$input->set('view', 'uploads');
}
$controller = JControllerLegacy::getInstance('jedchecker');
$controller->execute($input->getCmd('task', ''));
$controller->redirect();