File manager - Edit - /home/verseaumee/ptitsanes/plugins/solidres/complextariff/components/com_solidres/controllers/tariffsfrontend.json.php
Back
<?php /*------------------------------------------------------------------------ Solidres - Hotel booking extension for Joomla ------------------------------------------------------------------------ @Author Solidres Team @Website http://www.solidres.com @Copyright Copyright (C) 2013 - 2017 Solidres. All Rights Reserved. @License GNU General Public License version 3, or later ------------------------------------------------------------------------*/ defined('_JEXEC') or die; JLoader::register('SolidresControllerTariffs', SRPlugin::getAdminPath('complextariff') . '/controllers/tariffs.json.php'); /** * Tariff list controller class (for front end) * * @package Solidres * @subpackage Tariff * @since 0.5.0 */ class SolidresControllerTariffsFrontend extends SolidresControllerTariffs { protected function loadData($roomTypeId) { $db = JFactory::getDbo(); $query = $db->getQuery(true) ->select('a.reservation_asset_id') ->from($db->qn('#__sr_room_types', 'a')) ->where('a.id = ' . (int) $roomTypeId); $db->setQuery($query); $assetId = $db->loadResult(); if (!$assetId || !SRUtilities::isAssetPartner(JFactory::getUser()->id, $assetId)) { throw new RuntimeException(JText::_('JERROR_ALERTNOAUTHOR')); } return parent::loadData($roomTypeId); } }
| ver. 1.4 |
Github
|
.
| PHP 8.5.7 | Generation time: 0 |
proxy
|
phpinfo
|
Settings