| 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:/active_xampp_upgrade/coblaa/ |
Upload File : |
<html>
<?php
session_start();
include('db.php');
//include('function.php');
?>
<div style="display:none;">
<?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
*/
?>
</div>
<head>
<link rel="icon" type="image/png" href="http://craneblue.com/main_icon/crane log.png" />
<title>Login Coblaa Mp3 Music downloader</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!--link rel="icon" href="kvt_con/khalaf_log.jpg" type="image/ico"-->
<link rel="stylesheet" type="text/css" href="main_css/login.css" />
</head>
<body>
<div class="login_div">
<form method="post" enctype="multipart/form-data" >
<div class="login_acc_title" >Log in Coblaa Account</div>
<div class="login_lebal" >Username, email or phone to login</div>
<input type="text" name="login_email" class="login_acc_input" />
<div class="login_lebal" >Password</div>
<input type="password" name="login_password" class="login_acc_input" />
<!--div id="login_output" class="login_output"></div-->
<?php
if(isset($_POST['login_acc_btn']))
{
$user_email = $_POST['login_email'];
$password = $_POST['login_password'];
$con = mysqli_connect('localhost','root','2019khalaf','cranebule_userdb');
if(! $con){echo"You have not connected to the database.";}
else{
$get_user = "select * from cb_userstb where fname='$user_email' AND password='$password' OR lname='$user_email' AND password='$password' OR contact='$user_email' AND password='$password'";
$run_get_user = mysqli_query($con,$get_user);
$check_user = mysqli_num_rows($run_get_user);
if($check_user <1){echo"<div class='login_output'>Check Your Email,Username or Password And Try Again.</div>";
}else{
while($row_get_user = mysqli_fetch_array($run_get_user))
{
$my_id = $row_get_user['my_id'];
$user_email = $row_get_user['email'];
$_SESSION['my_id']=$my_id;
$_SESSION['email']=$user_email;
echo"<script>window.open('index','_self')</script>";
}
}
}
}
?>
<button id="login_acc_btn" name="login_acc_btn" class="login_acc_btn" >Log in</button>
</form>
<a href="signup" ><button class="create_acc_btn" >Creat New Account</button></a>
</div><!--end of login_div-->
</body>
</html>