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:/xampp/htdocs-coblaa/sn_rek/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : D:/xampp/htdocs-coblaa/sn_rek/ad_new_tenant.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";
}
?>
<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/ad_new_tenant.css" />

</head>

<body id="body">
<button onClick="history.back();" class="back_bnt" >Back</button>
<a href="logout"><button class="logout_btn" >Logout</button></a>
<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" >ADD TENANT</div>

<form method="post" />
<!--div class="receipt_output_small_one" style="color:red;" >SL NO: 001</div-->
<!--input class="receipt_output_small_two" placeholder="Enter Date" /-->
<input name="tenant_name" class="receipt_output" placeholder="Enter Name..." />
<input name="tenant_id_no" class="receipt_output" placeholder=" Enter ID No..." />
<input name="tenant_phone_no" class="receipt_output" placeholder="Enter Phone No." />
<!--div class="receipt_output" >Current Reading: 00001</div-->
<select name="rented_block" class="receipt_output" placeholder="Enter Rented Block" >
<option DISABLED>Select Rented Block</option>
<option>SN UNIT 1</option>
<option>SN UNIT 2</option>
<option>SN UNIT 3</option>
<option>SN UNIT 4</option>
<option>SN UNIT 5</option>
</select>
<button name="add_tenant" class="main_dash" >ADD</button>
</form>

<?php
if(isset($_POST['add_tenant']))
{

$tenant_name = $_POST['tenant_name'];
$tenant_id_no = $_POST['tenant_id_no'];
$tenant_phone_no = $_POST['tenant_phone_no'];
$rented_block = $_POST['rented_block'];

if($tenant_name=="" || $tenant_id_no=="" || $tenant_phone_no=="" || $rented_block=="Select Rented Block"){
	echo"<div class='receipt_output' style='color:red;'>Fill All The Spaces.</div>";
}else{

$insert_tenant ="insert into sn_tenanttb (tenant_name,tenant_id_no,tenant_mob_no,rented_sn_unit,cur_city,cur_country,cur_date,cur_time)
values('$tenant_name','$tenant_id_no','$tenant_phone_no','$rented_block','$city','$country',CURDATE(),CURTIME() )";
$run_insert_tenant = mysqli_query($con,$insert_tenant);
if($run_insert_tenant){
	echo"<div class='receipt_output'style='color:green;'>New Tenant Added</div>";	
}else{echo"<div class='receipt_output' style='color:red;'>New Tenant Not Added</div>";}

}
	
}

?>

</div>





</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit