Current File : /home/pacjaorg/public_html/km/components/com_djcfimporter/djcfimporter.php |
<?php
/**
* @version 1.0
* @package DJCF-Importer
* @subpackage DJCF-Importer Component
* @copyright Copyright (C) 2010 DJ-Extensions.com LTD, All rights reserved.
* @license http://www.gnu.org/licenses GNU/GPL
* @author url: http://design-joomla.eu
* @author email contact@design-joomla.eu
* @developer Łukasz Ciastek - lukasz.ciastek@design-joomla.eu
*
*
* DJCF-Importer is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* DJCF-Importer is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with DJCF-Importer. If not, see <http://www.gnu.org/licenses/>.
*
*/
defined('_JEXEC') or die('Restricted access');
$lang = JFactory::getLanguage();
if ($lang->get('lang') != 'en-GB') {
$lang = JFactory::getLanguage();
$lang->load('com_djcfimporter', JPATH_ROOT, 'en-GB', false, false);
$lang->load('com_djcfimporter', JPATH_COMPONENT, 'en-GB', false, false);
$lang->load('com_djcfimporter', JPATH_ROOT, null, true, false);
$lang->load('com_djcfimporter', JPATH_COMPONENT, null, true, false);
}
require_once(JPath::clean(JPATH_ROOT.'/components/com_djcfimporter/defines.djcfimporter.php'));
require_once(JPath::clean(JPATH_ROOT.'/components/com_djcfimporter/controller.php'));
require_once(JPath::clean(JPATH_ROOT.'/components/com_djcfimporter/helpers/djcfimporter.php'));
$controller = JControllerLegacy::getInstance('DJCFImporter');
$controller->execute(JFactory::getApplication()->input->get('task'));
$controller->redirect();