| Current Path : /home/j/u/v/juvelize/martine/components/com_easybookreloaded/ |
| Current File : /home/j/u/v/juvelize/martine/components/com_easybookreloaded/easybookreloaded.php |
<?php
/**
* @copyright
* @package Easybook Reloaded - EBR for Joomla! 3.x
* @author Viktor Vogel <admin@kubik-rubik.de>
* @version 3.4.1.1-FREE - 2021-08-29
* @link https://kubik-rubik.de/ebr-easybook-reloaded
*
* @license GNU/GPL
* This program 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.
*
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
*/
defined('_JEXEC') || die('Restricted access');
use Joomla\CMS\{Factory, Filesystem\File};
require_once JPATH_ADMINISTRATOR . '/components/com_easybookreloaded/helpers/Helper.php';
require_once JPATH_COMPONENT . '/helpers/Autoload.php';
require_once JPATH_COMPONENT . '/controller.php';
$controller = Factory::getApplication()->input->getWord('controller', '');
if ($controller) {
$path = JPATH_COMPONENT . '/controllers/' . $controller . '.php';
if (File::exists($path)) {
require_once $path;
}
}
$className = 'EasybookReloadedController' . $controller;
$controller = new $className();
$controller->execute(Factory::getApplication()->input->get('task'));
$controller->redirect();