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

33 lines
977 B
PHP
Raw Normal View History

2015-10-26 09:03:44 +00:00
<?php
/**
* @author Daniel Dimitrov - compojoom.com
* @date : 02.06.12
*
* @copyright Copyright (C) 2008 - 2012 compojoom.com . All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
*/
defined('_JEXEC') or die('Restricted access');
jimport('joomla.application.component.controllerlegacy');
2016-02-15 23:19:20 +00:00
if (!JFactory::getUser()->authorise('core.manage', 'com_jedchecker'))
{
throw new Exception(JText::_('JERROR_ALERTNOAUTHOR'));
}
2015-10-26 09:03:44 +00:00
// We'll need jfile and JFolder all through the compoenent so let us load them here
jimport('joomla.filesystem.folder');
jimport('joomla.filesystem.file');
$input = JFactory::getApplication()->input;
$view = $input->getCmd('view', '');
if ($view == '' && $input->getCmd('task', '') == '')
{
$input->set('view', 'uploads');
}
$controller = JControllerLegacy::getInstance('jedchecker');
$controller->execute($input->getCmd('task', ''));
$controller->redirect();