Done !
| Server IP : 46.105.57.169 / Your IP : 216.73.216.67 Web Server : Apache System : Linux webm002.cluster120.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : verseaumee ( 152031) PHP Version : 8.5.7 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/verseaumee/ptitsanes/components/com_solidres/views/reservation/ |
Upload File : |
<?php
/**
------------------------------------------------------------------------
SOLIDRES - Accommodation booking extension for Joomla
------------------------------------------------------------------------
* @author Solidres Team <contact@solidres.com>
* @website https://www.solidres.com
* @copyright Copyright (C) 2013 - 2019 Solidres. All Rights Reserved.
* @license GNU General Public License version 3, or later
------------------------------------------------------------------------
*/
defined('_JEXEC') or die;
JLoader::register('SolidresHelper', JPATH_COMPONENT_ADMINISTRATOR . '/helpers/helper.php');
/**
* Reservation view class
*
* @package Solidres
* @since 0.1.0
*/
class SolidresViewReservation extends JViewLegacy
{
public $reservation = null;
function display($tpl = null)
{
$this->context = 'com_solidres.reservation.process';
$this->config = JComponentHelper::getParams('com_solidres');
$this->showPoweredByLink = $this->config->get('show_solidres_copyright', '1');
$this->app = JFactory::getApplication();
$this->id = $this->app->input->getUint('id', 0);
$this->code = $this->app->input->getString('code', '');
if ($this->id > 0 && !empty($this->code))
{
JModelLegacy::addIncludePath(JPATH_COMPONENT_ADMINISTRATOR . '/models/');
$reservatonModel = JModelLegacy::getInstance('Reservation', 'SolidresModel', array('ignore_request' => true));
$assetModel = JModelLegacy::getInstance('ReservationAsset', 'SolidresModel', array('ignore_request' => true));
$reservation = $reservatonModel->getItem($this->id);
$this->asset = null;
if ($reservation->code == $this->code)
{
$this->reservation = $reservation;
$this->asset = $assetModel->getItem($this->reservation->reservation_asset_id);
$this->lengthOfStay = (int) SRUtilities::calculateDateDiff(
$this->reservation->checkin,
$this->reservation->checkout
);
}
}
$this->layout = $this->app->input->getString('layout', '');
if ($this->layout == 'final')
{
$result = JFactory::getApplication()->triggerEvent('onSolidresReservationFinalScreenDisplay', array($this->app->getUserState($this->context . '.code')));
}
JHtml::stylesheet('com_solidres/assets/main.css', false, true, false);
if ($errors = $this->get('Errors'))
{
throw new Exception(implode("\n", $errors), 500);
}
parent::display($tpl);
}
}