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/b2bzend/application/views/scripts/booking-flight/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/b2bzend/application/views/scripts/booking-flight/cancelmailer.phtml
<?php
$baseUrl = $this->baseUrl;
$param = $this->param;
$requestTypeValue = $this->requestTypeValue;
$getAgencyData = $this->getAgencyData;
$FlightBooking = $this->FlightBooking;
$arrTrevllerDetails = $this->arrTrevllerDetails;
$TravelDate = (array) $FlightBooking[0]['FromUTCTime'];
$DepartureTime = date('H:i:s', strtotime($TravelDate['date']));
$TravelDate = date('d-M-Y', strtotime($TravelDate['date']));
$status = $FlightBooking['status'];
$arrAPIBookingRes = json_decode($FlightBooking[0]['APIBookingRes'], true);
if (is_array($arrAPIBookingRes)) {
    $arrAPIBookingRes = $arrAPIBookingRes;
} else {
    $arrAPIBookingRes = json_decode($arrAPIBookingRes, true);
}
$BOOKINGSTATUS =
    [
        0 => "Pending", 1 => "Confirmed", 2 => "Cancelled", 3 => "Payment Done Booking Failed", 4 => "Payment Failed",
        5 => "Booking Confirmed Ticket Failed", 6 => "Full Canc. In Process", 7 => "Partial Canc. In Process", 8 => 'Cancellation In Process',
        9 => 'Refund Processed', 10 => 'AIrlines Response Awaited', 11 => 'Ssr', 12 => 'Cancellation Quotation', 13 => 'Reissue Quotation', 14 => 'Re-Issue',
        15 => 'Fare Change', 16 => 'Miscellaneous', 17 => 'No Show', 18 => 'Void', 19 => 'Correction'
    ];
$travellerInfos = $arrAPIBookingRes['response']['itemInfos']['AIR']['travellerInfos'];
$ARR_SALUTION = unserialize(ARR_SALUTION_TJ);
$ARR_SALUTION_CHILD = unserialize(ARR_SALUTION_CHILD);
//$BOOKINGSTATUS = unserialize(BOOKINGSTATUS);
$passenger = $arrTrevllerDetails[0][0];
if ($passenger['paxType'] == 1) {
    $paxType = 'Adult';
    $Salutation = $ARR_SALUTION[$passenger['Title']];
} elseif ($passenger['paxType'] == 2) {
    $paxType = 'Child';
    $Salutation = $ARR_SALUTION_CHILD[$passenger['Title']];
} else {
    $paxType = 'Infant';
    $Salutation = $ARR_SALUTION_CHILD[$passenger['Title']];
}
// echo '<pre>';
// print_r($travellerInfos);
// print_r($FlightBooking);
// echo '</pre>';
?>
<!DOCTYPE html>
<html>

<head lang="en">
    <meta charset="UTF-8">
    <title>Cancellation request</title>
    <link href="https://fonts.googleapis.com/css?family=Lato&display=swap" rel="stylesheet">
</head>

<body>
    <table cellpadding="0" cellspacing="0" border="0" width="900px" style="margin: auto; border: 0px solid #eaeaea;  padding: 5px; font-family: Roboto, sans-serif; font-size: 12px; color: #000; word-spacing: 2px;">
        <tr>
            <td colspan="2" align="left" valign="top" style="padding: 4px 5px;">
                Dear <?= $Salutation ?>. <?= $passenger['FirstName'] ?> <?= $passenger['LastName'] ?>,
            </td>
        </tr>
        <tr>
            <td colspan="2" align="left" style=" padding: 4px 5px;" valign="top">
                We have received <?= ($requestTypeValue == 'CANCELLATION') ? 'Cancellation' : 'modification' ?> request for passenger (s) as below:
            </td>
        </tr>
        <tr>
            <td align="left" style=" padding: 4px 5px;" valign="top">
                <strong>Request Type</strong>
            </td>
            <td align="left" style=" padding: 4px 5px;" valign="top">:
                <?= ($param['requestTypeValue']); ?>
            </td>
        </tr>
        <tr>
            <td align="left" style=" padding: 4px 5px;" valign="top">
                <strong>Booking Id</strong>
            </td>
            <td align="left" style=" padding: 4px 5px;" valign="top">:
                <?= $this->bookingId ?>
            </td>
        </tr>
        <tr>
            <td align="left" style=" padding: 4px 5px;" valign="top">
                <strong>Request No</strong>
            </td>
            <td align="left" style=" padding: 4px 5px;" valign="top">:
                <?= $this->amendmentId ?>
            </td>
        </tr>
        <tr>
            <td colspan="2" align="left" style=" padding: 4px 5px;" valign="top">&nbsp;</td>
        </tr>
        <tr>
            <td colspan="2" align="left" style=" padding: 4px 5px;" valign="top">
                <strong>Customer Contact Info:</strong><br>
                Contact Person: <?= $passenger['FirstName'] ?> <?= $passenger['LastName'] ?><br>
                Contact No: <?= $passenger['Contacts'] ?><br>
                Contact Email: <?= $passenger['EmailId'] ?>
            </td>
        </tr>
        <tr>
            <td colspan="2" align="left" style=" padding: 4px 5px;" valign="top">&nbsp;</td>
        </tr>
        <tr>
            <td colspan="2" align="left" style=" padding: 4px 5px;" valign="top">
                <table width="100%" border="0" style="padding:5px 8px; font-size:12px; border: solid 1px #ccc; padding: 0px;" cellpadding="0" cellspacing="0">
                    <tbody>

                        <tr>
                            <td style="padding:5px 8px; font-size:12px; border-right: solid 1px #ccc; border-bottom: solid 1px #ccc; font-weight: 600;">Name</td>
                            <td style="padding:5px 8px; font-size:12px; border-right: solid 1px #ccc; border-bottom: solid 1px #ccc; font-weight: 600;">Sector(s) </td>
                            <td style="padding:5px 8px; font-size:12px; border-right: solid 1px #ccc; border-bottom: solid 1px #ccc; font-weight: 600;">PNR / Ticket </td>
                            <td style="padding:5px 8px; font-size:12px; border-right: solid 1px #ccc; border-bottom: solid 1px #ccc; font-weight: 600;">Travel Date & Time </td>
                            <td style="padding:5px 8px; font-size:12px; border-right: solid 0px #ccc; border-bottom: solid 1px #ccc; font-weight: 600;">Status </td>
                        </tr>
                        <?php
                        if ($arrTrevllerDetails) {
                            foreach ($arrTrevllerDetails as $key => $val) {
                                $traveller = isset($travellerInfos[$key]) ? $travellerInfos[$key] : '';
                                $pnrDetails = $traveller['pnrDetails'];
                                $sector = implode("<br>", array_keys($pnrDetails));
                                $PNRNumber = implode("<br>", $pnrDetails);
                                $value = $val[0];
                        ?>
                                <tr>
                                    <td style="padding:5px 8px; font-size:12px; border-right: solid 1px #ccc; border-bottom: solid 0px #ccc; font-weight: 400;"><?= $value['FirstName'] ?> <?= $value['LastName'] ?></td>
                                    <td style="padding:5px 8px; font-size:12px; border-right: solid 1px #ccc; border-bottom: solid 0px #ccc; font-weight: 400;"><?= $sector ?> </td>
                                    <td style="padding:5px 8px; font-size:12px; border-right: solid 1px #ccc; border-bottom: solid 0px #ccc; font-weight: 400;"><?= $PNRNumber ?> / <?= $value['TicketId'] ?></td>
                                    <td style="padding:5px 8px; font-size:12px; border-right: solid 1px #ccc; border-bottom: solid 0px #ccc; font-weight: 400;"><?= date('d-M-Y', strtotime($TravelDate)) ?> <?= $DepartureTime ?> </td>
                                    <td style="padding:5px 8px; font-size:12px; border-right: solid 0px #ccc; border-bottom: solid 0px #ccc; font-weight: 400;"><?= $BOOKINGSTATUS[$param['requestType']] ?> </td>
                                </tr>
                        <?php
                            }
                        }
                        ?>
                    </tbody>
                </table>
            </td>
        </tr>
        <tr>
            <td colspan="2" align="left" style=" padding: 4px 5px;" valign="top">&nbsp;</td>
        </tr>
        <tr>
            <td colspan="2" align="left" style=" padding: 4px 5px;" valign="top">
                We have raised the request with airlines and will update the status once we have update from them. In case it is less than 24 hours please call urgently on support numbers given on our website and in the email.
            </td>
        </tr>
        <tr>
            <td colspan="2" align="left" style=" padding: 4px 5px;" valign="top">&nbsp;</td>
        </tr>
        <tr>
            <td colspan="2" align="left" style=" padding: 4px 5px;" valign="top">
                Thanks for booking with us.
            </td>
        </tr>
        <tr>
            <td colspan="2" align="left" style=" padding: 4px 5px;" valign="top">
                <table style="font-size:12px;">
                    <tr>
                        <td style="font-size: 13px; font-weight: bold;"><?= $getAgencyData['Title'] ?></td>
                    </tr>
                    <tr>
                        <td><?= $getAgencyData['Address'] ?></td>
                    </tr>
                    <tr>
                        <td>Pin - <?= $getAgencyData['PinCode'] ?></td>
                    </tr>
                    <tr>
                        <td>Support No : <?= $getAgencyData['countrycode'] ?><?= $getAgencyData['Contacts'] ?></td>
                    </tr>
                    <tr>
                        <td>Email : <?= $getAgencyData['AgencyUserEmailId'] ?></td>
                    </tr>
                    <!-- <tr>
                        <td>Website : <?= $baseUrl ?></td>
                    </tr> -->
                </table>
            </td>
        </tr>
        <tr>
            <td colspan="2" align="left" style=" padding: 4px 5px;" valign="top">
                &nbsp;
            </td>
        </tr>


    </table>
</body>

</html>

Youez - 2016 - github.com/yon3zu
LinuXploit