/
djcatalog2.php
executable file
·62 lines (52 loc) · 2.58 KB
/
djcatalog2.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
/**
* @version $Id: djcatalog2.php 456 2015-06-24 09:10:35Z michal $
* @package DJ-Catalog2
* @copyright Copyright (C) 2012 DJ-Extensions.com LTD, All rights reserved.
* @license http://www.gnu.org/licenses GNU/GPL
* @author url: http://dj-extensions.com
* @author email contact@dj-extensions.com
* @developer Michal Olczyk - michal.olczyk@design-joomla.eu
*
* DJ-Catalog2 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.
*
* DJ-Catalog2 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 DJ-Catalog2. If not, see <http://www.gnu.org/licenses/>.
*
*/
defined('_JEXEC') or die('Restricted access');
//error_reporting(E_STRICT);
if (!defined('DS')) {
define('DS', DIRECTORY_SEPARATOR);
}
$lang = JFactory::getLanguage();
$lang->load('com_djcatalog2', JPath::clean(JPATH_ADMINISTRATOR.'/components/com_djcatalog2'), 'en-GB', false, false);
$lang->load('com_djcatalog2', JPATH_ADMINISTRATOR, 'en-GB', false, false);
$lang->load('com_djcatalog2', JPATH_COMPONENT, 'en-GB', false, false);
$lang->load('com_djcatalog2', JPATH_ROOT, 'en-GB', false, false);
$lang->load('com_djcatalog2', JPATH_ADMINISTRATOR, null, false, false);
$lang->load('com_djcatalog2', JPATH_ROOT, null, true, false);
require_once(JPATH_COMPONENT.DS.'defines.djcatalog2.php');
require_once(JPATH_COMPONENT_ADMINISTRATOR.DS.'lib'.DS.'categories.php');
require_once(JPATH_COMPONENT_ADMINISTRATOR.DS.'helpers'.DS.'file.php');
require_once(JPATH_COMPONENT_ADMINISTRATOR.DS.'helpers'.DS.'image.php');
require_once(JPATH_COMPONENT_ADMINISTRATOR.DS.'lib'.DS.'upload.php');
require_once(JPATH_COMPONENT.DS.'controller.php');
require_once(JPATH_COMPONENT.DS.'helpers'.DS.'route.php');
require_once(JPATH_COMPONENT.DS.'helpers'.DS.'html.php');
require_once(JPATH_COMPONENT.DS.'helpers'.DS.'theme.php');
require_once(JPATH_COMPONENT.DS.'helpers'.DS.'djcatalog2.php');
require_once(JPATH_COMPONENT.DS.'helpers'.DS.'price.php');
require_once(JPATH_COMPONENT.DS.'helpers'.DS.'cart.php');
$controller = JControllerLegacy::getInstance('Djcatalog2');
$controller->execute(JFactory::getApplication()->input->get('task'));
$controller->redirect();
?>