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_re/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : D:/xampp/htdocs-coblaa/sn_re/details.php
<html>
<?php 
session_start();
include('db.php'); 
//include('function.php');
?>

<?php
if(!isset($_SESSION['my_id'])){
			?>
		<script>window.open('login','_self')</script>;	
		<?php
}else
{
$my_id = $_SESSION['my_id'];
$adm_name = $_SESSION['adm_name'];
//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/details.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_home_div">
<img onClick="history.back();" src="main_icon/back_btn.png" id="main_log_home" class="back_bnt" />
<a href="logout_tenant"><button class="logout_btn" >Logout</button></a>
</div>

<?php
if(isset($_GET['db_id'])){
	$user_id = $_GET['db_id'];

?>
<div class="main_content_div" >

<div class="main_title_name" >SN REAL ESTATE</div>
<?php 

$get_sn_tenant = "select * from sn_tenanttb where id='$user_id'";
$run_sn_tenant= mysqli_query($con,$get_sn_tenant);

	
	   while($row_get_sn_tenant = mysqli_fetch_array($run_sn_tenant))
	{
		$rented_sn_unit = $row_get_sn_tenant['rented_sn_unit'];
		$tenant_name = $row_get_sn_tenant['tenant_name'];

		?>


<div class="main_title_contact" ><?php echo"$tenant_name"; ?></div>
<div class="main_title_location" ><?php echo"$rented_sn_unit"; ?></div>

	<?php }
$get_sn_adm = "select * from sn_admintb where adm_my_id='$my_id'";
$run_sn_adm = mysqli_query($con,$get_sn_adm);
$check_sn_adm = mysqli_num_rows($run_sn_adm);
if($check_sn_adm >0){
	
	?>

<a href="add_rent_receipt?db_id2=<?php echo $user_id ?>"><div class="main_dash" >Add Rental Receipt</div></a>
<a href="receipt_list?db_id3=<?php echo $user_id ?>"><div class="main_dash" >Rental Receipt List</div></a>
<a href="add_water_bill?db_id4=<?php echo $user_id ?>"><div class="main_dash" >Add Water Bill</div></a>
<a href="water_bill_list?db_id5=<?php echo $user_id ?>"><div class="main_dash" >Water Bill List</div></a>
<a href="pay_water?db_id6=<?php echo $user_id ?>"><div class="main_dash" >Pay Water</div></a>
<a href="water_receipt_list?db_id7=<?php echo $user_id ?>"><div class="main_dash" >Water Receipt List</div></a>
<div id="<?php echo"$user_id"; ?>" onClick="terminate_contract(this.id);" class="main_dash" >Terminate</div>
<?php }else{ ?>

<a href="receipt_list?db_id3=<?php echo $user_id ?>"><div class="main_dash" >Rental Receipt List</div></a>
<a href="water_bill_list?db_id5=<?php echo $user_id ?>"><div class="main_dash" >Water Bill List</div></a>
<a href="water_receipt_list?db_id7=<?php echo $user_id ?>"><div class="main_dash" >Water Receipt List</div></a>


<?php } ?>
</div>
<?php } ?>

<script>
function terminate_contract(tc)
{   id_user = tc;
	xmlhttp = new XMLHttpRequest();
	xmlhttp.open("GET","auto_page.php?id_user="+id_user+"&&status=terminate_contract",false);
	xmlhttp.send(null);
	//document.getElementById('disp_vote_info_output').innerHTML =xmlhttp.responseText;
	alert(tc);
}
</script>

</body>
<?php } ?>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit