403Webshell
Server IP : 127.0.0.1  /  Your IP : 216.73.216.48
Web Server : Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.2.12
System : Windows NT DESKTOP-3H4FHQJ 10.0 build 19045 (Windows 10) AMD64
User : win 10 ( 0)
PHP Version : 8.2.12
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : OFF |  Perl : OFF |  Python : OFF |  Sudo : OFF |  Pkexec : OFF
Directory :  D:/Desktop/ns/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : D:/Desktop/ns/sn_tenant_water_pay.php
<html>
<?php 
session_start();
include('db.php'); 
//include('function.php');
?>

<?php
if(isset($_SESSION['id']))
{
//$_SESSION['email']=$user_email;
$my_id = $_SESSION['id'];
//echo"$my_id";
}
if(isset($_GET['inid2'])){
	$user_id = $_GET['inid2'];
}
?>
<div style="display:none;">
<input type="text" id="my_id" class="helping_id" style="display:none;" value="<?php echo $my_id;?>"> 

 <?php
$user_ip = getenv('REMOTE_ADDR');
$geo = unserialize(file_get_contents("http://www.geoplugin.net/php.gp?ip=$user_ip"));
$city = $geo["geoplugin_city"];
$region = $geo["geoplugin_regionName"];
$country = $geo["geoplugin_countryName"];
/*echo"$user_ip";
echo "City: ".$city."<br>";
echo "Region: ".$region."<br>";
echo "Country: ".$country."<br>";
/*
geoplugin_request
geoplugin_status
geoplugin_credit
geoplugin_city
geoplugin_region
geoplugin_areaCode
geoplugin_dmaCode
geoplugin_countryCode
geoplugin_countryName
geoplugin_continentCode
geoplugin_latitude
geoplugin_longitude
geoplugin_regionCode
geoplugin_regionName
geoplugin_currencyCode
geoplugin_currencySymbol
geoplugin_currencySymbol_UTF8
geoplugin_currencyConverter
*/


?>

<input type="text" id="country_user" class="helping_id" style="display:none;" value="<?php echo $country;?>"> 
<input type="text" id="region_user" class="helping_id" style="display:none;" value="<?php echo $region;?>">
<input type="text" id="city_user" class="helping_id" style="display:none;" value="<?php echo $city;?>">
<input type="text" id="ip_user" class="helping_id" style="display:none;" value="<?php echo $user_ip;?>">

</div>

<head>

<title>sn real estate</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="main_css/sn_tenant_water_pay.css" />

</head>

<body id="body">
<button onClick="history.back();" class="back_bnt" >Back</button>
<a href="logout_tenant"><button class="logout_btn" >Logout</button></a>
<?php

$get_water_bill ="select * from sn_water_billingtb where user_id='$user_id'";
$run_water_bill = mysqli_query($con,$get_water_bill);
while($row_water_bill = mysqli_fetch_array($run_water_bill))
{
	$water_bill_no = $row_water_bill['id'];
	$water_bill_date = $row_water_bill['meter_reading_date'];
	$tenant_name = $row_water_bill['tenant_name'];
	$cur_meter_reading = $row_water_bill['cur_meter_reading'];
	$previous_m_reading = $row_water_bill['previous_m_reading'];
	$price_per_unit = $row_water_bill['price_per_unit'];
	$for_the_month = $row_water_bill['for_the_month_of'];
	$service_charge = $row_water_bill['service_charge'];
	$rented_block = $row_water_bill['rented_block'];
	 $total_used_units = $cur_meter_reading - $previous_m_reading
	
?>

<div class="main_content_div" >

<div class="receipt_title_name" >SN REAL ESTATE</div>
<div class="receipt_title_location" >MAGERE</div>
<div class="receipt_title_contact" >TEL: +256751045153</div>
<div class="receipt_title_rent" >WATER RECEIPT</div>

<div class="receipt_output_small_one" style="color:red;" >
SL NO:<?php echo $water_bill_no ?>
</div>
<div class="receipt_output_small_two" >
<span style='float:left;text-align:left;margin-left:10px;font-weight:bold;backgroundk:red;'>Date</span> <?php echo $water_bill_date ?>
</div>
<div class="receipt_output" >
<span style='float:left;text-align:left;margin-left:10px;font-weight:bold;backgroundk:red;'>Name</span> <?php echo $tenant_name ?>
</div>
<div class="receipt_output_small_one" >
<span style='float:left;text-align:left;margin-left:10px;font-weight:bold;backgroundk:red;'>Current Reading</span> <?php echo $cur_meter_reading ?>
</div>

<div class="receipt_output_small_two" >
<span style='float:left;text-align:left;margin-left:10px;font-weight:bold;backgroundk:red;'>Previous Reading</span> <?php echo $previous_m_reading ?>
</div>

<div class="receipt_output_small_two" >
<span style='float:left;text-align:left;margin-left:10px;font-weight:bold;backgroundk:red;'>1m3 @</span> <?php echo $price_per_unit ?>
</div>

<div class="receipt_output_small_one" >
<span style='float:left;text-align:left;margin-left:10px;font-weight:bold;backgroundk:red;'>Used Units</span> <?php echo $total_used_units ?>
</div>

<div class="receipt_output" >
<span style='float:left;text-align:left;margin-left:10px;font-weight:bold;backgroundk:red;'>Service Charge</span> <?php echo $service_charge ?>
</div>
<div class="receipt_output" >
<span style='float:left;text-align:left;margin-left:10px;font-weight:bold;backgroundk:red;'>Total Amount Due</span>
<?php
 $total_amount = ($total_used_units * 4220) + $service_charge;
 echo $total_amount; 
 ?>
</div>

<div class="receipt_output" >

<span style='float:left;text-align:left;margin-left:10px;font-weight:bold;backgroundk:red;'>For The Month of</span> <?php echo $for_the_month ?>
</div>
<div class="receipt_output_small_one" >

<span style='float:left;text-align:left;margin-left:10px;font-weight:bold;backgroundk:red;'>Block</span> <?php echo $rented_block ?>
</div>
<!--div class="receipt_output_small_two" >Balance: none</div-->

</div>
<?php } ?>





</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit