forked from twidoo/joomla-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
solidres.php
executable file
·29 lines (24 loc) · 1.09 KB
/
solidres.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
<?php
/*------------------------------------------------------------------------
Solidres - Hotel booking extension for Joomla
------------------------------------------------------------------------
@Author Solidres Team
@Website http://www.solidres.com
@Copyright Copyright (C) 2013 Solidres. All Rights Reserved.
@License GNU General Public License version 3, or later
------------------------------------------------------------------------*/
defined('_JEXEC') or die;
if (!JFactory::getUser()->authorise('core.manage', 'com_solidres'))
{
return JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR'));
}
require_once JPATH_COMPONENT_ADMINISTRATOR.'/liveupdate/solidresliveupdate.php';
if( JFactory::getApplication()->input->get('view', '', 'cmd') == 'liveupdate') {
LiveUpdate::handleRequest();
return;
}
require_once JPATH_COMPONENT.'/helpers/sidenavigation.php';
require_once JPATH_COMPONENT.'/helpers/helper.php';
$controller = JControllerLegacy::getInstance('Solidres');
$controller->execute(JFactory::getApplication()->input->get('task', '', 'cmd'));
$controller->redirect();