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/viewmore.phtml
<?php
// ini_set('display_errors', 1);
// ini_set('display_startup_errors', 1);
// error_reporting(E_ALL);
$CurrencyRate = $this->CurrencyRate;
$CurrencyTitle = $this->CurrencyTitle;
$Data = $FlightBookingData = $this->Data;
// echo"<pre>";print_r($Data);echo"</pre>";
$DataInbound = $this->DataInbound;
$BaggageInb = isset($DataInbound['Segments'][0]) ? $DataInbound['Segments'][0]:[];
$arrFlightClass = Zend_Controller_Action_HelperBroker::getStaticHelper('Flight')->getFlightClasses();
$intOtherCharges = isset($Data['FairRules']['OtherCharges']) ? $Data['FairRules']['OtherCharges']:0;
$intOtherChargesInb = isset($DataInbound['FairRules']['OtherCharges']) ? $DataInbound['FairRules']['OtherCharges'] : 0;
$intBaseFare = isset($Data['FairRules']['BaseFare']) ? $Data['FairRules']['BaseFare']: 0;
$intTax = isset($Data['FairRules']['Tax']) ? $Data['FairRules']['Tax']:0;
$intAdditionalTxnFeePub = isset($Data['FairRules']['AdditionalTxnFeePub']) ? $Data['FairRules']['AdditionalTxnFeePub']:0;
$intServiceFee = isset($Data['FairRules']['ServiceFee']) ? $Data['FairRules']['ServiceFee']:0;
$intServiceFeeInb = isset($DataInbound['FairRules']['ServiceFee']) ? $DataInbound['FairRules']['ServiceFee'] : 0;
$intPublishedFare = isset($Data['FairRules']['PublishedFare']) ? $Data['FairRules']['PublishedFare']:0;
$intPublishedFareInb = isset($DataInbound['FairRules']['PublishedFare']) ? $DataInbound['FairRules']['PublishedFare'] : 0;
$intFarePerHeadPublish = $intBaseFare + $intTax + $intOtherCharges;
$intNetPublishedFare = 0;
$AdditionalTxnFeePub = 0;
$TotalBaseFare = 0;
$AdditionalTxnFeePubR = 0;
$TotalTaxsandFees = 0;
// echo '<pre>';
// print_r($this->strFlightRoute);
// echo '</pre>';
?>
<table class="" style="width: 100%;">
    <tr>
        <td height="35" class="cancellation_text"><strong>Type</strong></td>
        <td height="35" class="cancellation_text"><strong>Base Fare</strong></td>
        <td height="35" class="cancellation_text"><strong>Taxes & Fee</strong></td>
        <td height="35" class="cancellation_text"><strong>Total</strong></td>
    </tr>
    <?php
    $TotalBaseFare = 0;
    $TotalTaxsandFees = 0;
    $Total_AGST = 0;
    $Total_MF = 0;
    $Total_YQ = 0;
    $Total_MFT = 0;
    $Total_OT = 0;
    $Total_MU = 0;
    $Total_YR = 0;
    $Total_FixedMarkUp = 0;
    $Total_GSTOnMarkUp = 0;
    if ($FlightBookingData) {
        // echo '<pre>';
        // print_r($FlightBookingData);
        // echo '</pre>';
        foreach ($FlightBookingData as $Data) {
            // echo '<pre>';print_r($Data);echo '</pre>';
            $intNetPublishedFare += ($Data['FairRules']['intPublishedFare']) ? $Data['FairRules']['intPublishedFare'] :0;
            $Currency = isset($Data['FairRules']['Currency']) ? $Data['FairRules']['Currency']:"INR";
            $ICSourceSysId = $Data['ICSourceSysId'];
            
            //$CurrencyRate = $Data['FairRules']['CurrencyRate'];
            if ($Data['FairRules']['FareBreakdown']) {
                foreach ($Data['FairRules']['FareBreakdown'] as $value) {
                   
                    $Tax = isset($value['Tax']) ? $value['Tax']:0;
                    $TDS = isset($value['TDS']) ? $value['TDS']:0;
                    $mf = isset($value['MF']) ? $value['MF']:0;
                    $YQ = isset($value['YQ']) ? $value['YQ']:0;
                    $AGST = isset($value['AGST']) ? $value['AGST']:0;
                    $MFT = isset($value['MFT']) ? $value['MFT']:0;
                    // $OT = $value['OT'];
                    $OT = isset($value['OT']) ? $value['OT'] : $value['TaxBR']['OT']; //Other Charges
                    $YR = isset($value['YR']) ? $value['YR']:0;


                    $othercharge =  $Tax;
                    if ($this->strFlightRoute == 3) {
                        $othercharge =  $mf + $YQ + $AGST + $MFT + $OT + $YR;
                    }
                    if ($ICSourceSysId == 3) {
                        $othercharge =  $mf + $AGST + $MFT + $OT + $YR;
                    }
                    $PBaseFare = isset($value['BaseFare']) ? $value['BaseFare']:0;

                    $intTotalGST = isset($value['intTotalGST']) ? $value['intTotalGST'] : $value['GSTOnMarkUp'];
                    $FixedMarkUp = isset($value['FixedMarkUp']) ?$value['FixedMarkUp']:0;
                    $GSTOnMarkUp = isset($value['GSTOnMarkUp']) ? $value['GSTOnMarkUp']:0;
                    $apiMarkup = isset($value['apiMarkup']) ? $value['apiMarkup']:0;
                    $IntCommission = isset($value['IntCommission']) ? $value['IntCommission']:0;
                    $CommissionEarned = isset($value['CommissionEarned']) ? $value['CommissionEarned']:0;
                    $paxPublishedFare = ($PBaseFare);
                    $PassengerType = isset($value['PassengerType']) ? $value['PassengerType']:'';
                    $PassengerCount = isset($value['PassengerCount']) ? $value['PassengerCount']:0;
                    $CommisionPass = isset($value['CommisionPass']) ? $value['CommisionPass'] : 0;
                    $ServiceFee = isset($value['ServiceFee']) ? $value['ServiceFee']:0;
                    $TDSEarn = isset($value['TDSEarn']) ? $value['TDSEarn']:0;


                    $TaxesFees = ($othercharge + $intTotalGST + $FixedMarkUp + $apiMarkup + $CommissionEarned + $TDS);
                    if ($this->strFlightRoute == 3) {
                        $TaxesFees = ($othercharge + $intTotalGST + $FixedMarkUp + $apiMarkup + $IntCommission - $CommissionEarned);
                    }
                    if ($ICSourceSysId == 3 || $ICSourceSysId == 7) {
                        $TaxesFees = ($Tax + $ServiceFee + $FixedMarkUp + $GSTOnMarkUp + $CommissionEarned + $TDSEarn);
                    }
                    if ($ICSourceSysId == 11){
                        $otherCharge = ($YQ + $AGST + $MFT + $MF + $OT + $YR  + $TDSEarn  + $CommissionEarned);
                        $TaxesFees = (($otherCharge + $intTotalGST + $FixedMarkUp + $apiMarkup));
                    }
                    //echo ($Tax . ' +' . $ServiceFee . ' +' . $FixedMarkUp . ' +' . $GSTOnMarkUp . ' +' . $CommissionEarned . ' +' . $TDSEarn);
                    // $TaxesFees = ($othercharge + $CommEarned + $mf +$YQ + $AGST +$MFT + $OT + $YR);
                    $AdditionalTxnFeePub += isset($value['AdditionalTxnFeePub']) ? $value['AdditionalTxnFeePub']:0;
                    $TotalBaseFare += $paxPublishedFare;
                    if ($this->ShowPriceNoMarkup == 1) {
                        $TaxesFees = ($TaxesFees - ($FixedMarkUp + $GSTOnMarkUp));
                    }
                    // echo"<pre>";print_r($value);echo"</pre>";
                    // echo '<pre>';
                    // print_r($ICSourceSysId);
                    // echo '</pre>';
                    $TotalTaxsandFees += ($TaxesFees);
                    if ($PassengerType == 1) {
                        $paxType = 'Adult';
                    } elseif ($PassengerType == 2) {
                        $paxType = 'Child';
                    } elseif ($PassengerType == 3) {
                        $paxType = 'Infant';
                    }
    ?>
                    <tr>
                        <td class="cancellation_text2"><?= $paxType ?> x <?= $PassengerCount ?></td>
                        <td class="cancellation_text2"><?= $Currency ?> <?= number_format(ceil($PBaseFare * $CurrencyRate), 2) ?></td>
                        <td class="cancellation_text2"><?= $Currency ?> <?= number_format(ceil($TaxesFees * $CurrencyRate), 2) ?></td>
                        <td class="cancellation_text2"><?= $Currency ?> <?= number_format(ceil((($PBaseFare) + ($TaxesFees)) * $CurrencyRate), 2) ?></td>
                    </tr>
    <?php
                }
            }
        }
    }
    ?>

    <tr>
        <td height="35" class="cancellation_text" style="font-size: 13px; font-weight:bold;">Total</td>
        <td height="35" class="cancellation_text" style="font-size: 13px; font-weight:bold;"><?= $this->CurrencyTitle ?> <?= number_format(ceil($TotalBaseFare * $CurrencyRate), 2) ?></td>
        <td height="35" class="cancellation_text" style="font-size: 13px; font-weight:bold;"><?= $this->CurrencyTitle ?> <?= number_format(ceil(($TotalTaxsandFees) * $CurrencyRate), 2) ?></td>
        <td height="35" class="cancellation_text" style="font-size: 13px; font-weight:bold;"><?= $this->CurrencyTitle ?> <?= number_format(ceil(($TotalBaseFare + $TotalTaxsandFees) * $CurrencyRate), 2) ?></td>
    </tr>

</table>

Youez - 2016 - github.com/yon3zu
LinuXploit