403Webshell
Server IP : 103.234.187.230  /  Your IP : 216.73.216.216
Web Server : Apache
System : Linux lserver42043-ind.megavelocity.net 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/b2c.hellogtx.com/application/views/scripts/flight/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/b2c.hellogtx.com/application/views/scripts/flight/getcancelchargeapi.phtml
<?php
$baseUrl = $this->baseUrl;
$ICSourceSysId = $this->ICSourceSysId;
$apiResponse = $this->apiResponse;
$passenger = $apiResponse['customer'];
$bookingDataByAPI = $apiResponse['FlightBookingData'];
$ARR_SALUTION = unserialize(ARR_SALUTION);
$ARR_SALUTION_CHILD = unserialize(ARR_SALUTION_CHILD);
$ChangeResponse = $this->ChangeResponse;
$status = $ChangeResponse['status'];
$CancelMarkUp = $ChangeResponse['CancelMarkUp'];
$Symbol = $ChangeResponse['Symbol'];
$errors = isset($ChangeResponse['errors']) ? $ChangeResponse['errors'] : [];
$trips = $ChangeResponse['results']['trips'];
$intMarkUp = !empty($CancelMarkUp) ? $CancelMarkUp : 0;
$TPSysId = $bookingDataByAPI[0]['TPSysId'];

// echo "<pre>";
// print_r($ChangeResponse);
// echo "</pre>";
// echo "<pre>";
// print_r($status);
// echo "</pre>";


?>
<table style=" text-align: left;" border="1">
    <tbody>
        <tr>
            <td style="background:#BCBEC0; color: #000; padding: 8px;">
                Pax Type
            </td>

            <td style="background:#BCBEC0; color: #000; padding: 8px">
                Amen. Charges
            </td>
            <td style="background:#BCBEC0; color: #000; padding: 8px">
                Refund Amount
            </td>

            <td style="background:#BCBEC0; color: #000; padding: 8px">
                Service Fee
            </td>
        </tr>
        <?php
        if ($trips) {
            $amendmentCharges = 0;
            $refundAmount = 0;
            $CancelFee = 0;
            foreach ($trips as $key => $val) {
        ?>
                <tr style="text-align: left;">
                    <td colspan="5" style="padding: 8px;background: beige;"><?= $val['src'] ?> - <?= $val['dest'] ?></td>
                </tr>
                <?php
                if ($val['amendmentInfo']) {
                    foreach ($val['amendmentInfo'] as $paxType => $values) {
                        $amendmentCharges += $values['amendmentCharges'];
                        $refundAmount += $values['refundAmount'];
                        $CancelFee += $intMarkUp;
                ?>
                        <tr style="text-align: center;">
                            <td style="text-align: left; color: #000;padding: 8px;"><?= $paxType ?></td>
                            <td style="text-align: left; color: #000;padding: 8px;"><?= $values['amendmentCharges'] ?></td>
                            <td style="text-align: left; color: #000;padding: 8px;"><?= $values['refundAmount'] ?></td>
                            <td style="text-align: left; color: #000;padding: 8px;"><?= $intMarkUp ?></td>
                        </tr>
                <?php }
                } ?>
            <?php } ?>
            <tr style="text-align: left;">
                <td style="padding: 8px; font-weight:600;">Total (<?=$Symbol?>)</td>
                <td style="padding: 8px; font-weight:600;"> <?=$amendmentCharges?></td>
                <td style="padding: 8px; font-weight:600;"> <?=$refundAmount?></td>
                <td style="padding: 8px; font-weight:600;"> <?=$CancelFee?></td>
            </tr>
            <tr style="text-align: left;">
                <td style="padding: 8px; font-weight:600;">Total Refundable Amount (<?=$Symbol?>)</td>
                <td colspan="3" style="padding: 8px; font-weight:600;font-size: 16px;"> <?=($refundAmount - $CancelFee)?></td>
            </tr>
        <?php } else { ?>
            <tr style="text-align: left; color:red;">
                <td colspan="5"><?= $ChangeResponse['message'] ?></td>
            </tr>
        <?php } ?>
        <?php if ($status == 1 || $status == 0) { ?>
            <tr style="text-align: right;">
                <td colspan="5" style="padding: 8px;"><input onclick="cancelBookingNow('<?= $TPSysId ?>',2)" id="cancel_ticket" type="button" class="button" value="Continue"></td>
            </tr>
        <?php } ?>
    </tbody>
</table>

Youez - 2016 - github.com/yon3zu
LinuXploit