| 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 : |
<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/entering.css" />
</head>
<body id="body">
<a href="index"><button onClickk="history.back();" class="back_bnt" >Home</button></a>
<div class="main_content_div" >
<div class="main_title_name" >LOGIN TO SN REAL ESTATE</div>
<div class="main_title_location" >MAGERE</div>
<div class="main_title_contact" >TEL: +256751045153</div>
<form method="post" >
<input name="id_no_mob_no" class="id_no_input" placeholder="Enter Your ID no..." />
<?php
if(isset($_POST['login_tenant']))
{
$id_no_mob_no = $_POST['id_no_mob_no'];
$get_sn_tenant = "select * from sn_tenanttb where tenant_id_no='$id_no_mob_no' OR tenant_mob_no='$id_no_mob_no'";
$run_sn_tenant= mysqli_query($con,$get_sn_tenant);
$check_sn_tenant = mysqli_num_rows($run_sn_tenant);
if($check_sn_tenant >0){
while($row_get_sn_tenant = mysqli_fetch_array($run_sn_tenant))
{
$my_id = $row_get_sn_tenant['id'];
$tenant_name = $row_get_sn_tenant['tenant_name'];
$_SESSION['id']=$my_id;
$_SESSION['tenant_name']=$tenant_name;
}
?>
<script>window.open('select','_self')</script>;
<?php
}else{ ?>
<div class="main_title_contact" style="color:#7A0606;" >Check Your ID no. or Phone no.</div>
<?php }
}
?>
<button name="login_tenant" class="main_dash" >OK</button>
</form>
</div>
</body>
</html>