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
|
2012-06-02 21:18:29 +00:00
|
|
|
*
|
|
|
|
* @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');
|
2012-06-02 21:18:29 +00:00
|
|
|
|
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');
|
2012-06-09 13:34:32 +00:00
|
|
|
}
|
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', ''));
|
2012-06-02 21:18:29 +00:00
|
|
|
$controller->redirect();
|