33
2
mirror of https://github.com/joomla-extensions/jedchecker.git synced 2024-11-11 07:41:04 +00:00
jedchecker/source/administrator/components/com_jedchecker/jedchecker.php

27 lines
812 B
PHP
Raw Normal View History

2012-05-21 08:33:11 +00:00
<?php
/**
2013-11-05 19:22:50 +00:00
* @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');
2012-12-13 10:08:35 +00:00
jimport('joomla.application.component.controllerlegacy');
2013-11-05 19:22:50 +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');
2012-12-13 10:08:35 +00:00
$input = JFactory::getApplication()->input;
2013-11-05 19:22:50 +00:00
$view = $input->getCmd('view', '');
if ($view == '' && $input->getCmd('task', '') == '')
{
2012-12-13 10:08:35 +00:00
$input->set('view', 'uploads');
}
2013-11-05 19:22:50 +00:00
2012-12-13 10:08:35 +00:00
$controller = JControllerLegacy::getInstance('jedchecker');
2013-11-05 19:22:50 +00:00
$controller->execute($input->getCmd('task', ''));
$controller->redirect();