Mini Shell

Direktori : /home/sudarshanenginee/public_html/admin/
Upload File :
Current File : //home/sudarshanenginee/public_html/admin/login.php

<!DOCTYPE html>
<html lang="en">


<head>
  <?php
  include('include/head_admin.php');
  $msg = '';
  if (isset($_POST['submit'])) {
    $username = $_POST['username'];
    $password = $_POST['password'];
    $sql = "select * from admin_users where `username`='$username' and password='$password'";

    $res = mysqli_query($con, $sql);
    $count = mysqli_num_rows($res);
    if ($count > 0) {
      $row = mysqli_fetch_assoc($res);
      if ($row['status'] == '0') {
        $msg = "Account deactivated";
      } else {
        $_SESSION['ADMIN_LOGIN'] = 'yes';
        $_SESSION['ADMIN_ID'] = $row['id'];
        $_SESSION['ADMIN_USERNAME'] = $username;
        header('location: index.php');
        die();
      }
    } else {
      $msg = "Please enter correct login details";
    }
  }
  ?>
</head>

<body>
  <div class="blog-login">
    <div class="blog-login-in">
      <form method="post">
        <img src="../assets/images/resources/logo.png" alt="" width="50%" />
        <div class="row">
          <div class="input-field col s12">
            <input id="first_name1" type="text" name="username" class="validate">
            <label for="first_name1">User Name</label>
          </div>
        </div>
        <div class="row">
          <div class="input-field col s12">
            <input id="last_name" type="password" name="password" class="validate">
            <label for="last_name">Password</label>
          </div>
        </div>
        <div class="row">
          <div class="input-field col s12">
            <button type="submit" name="submit" class="waves-effect waves-light btn-large btn-log-in">Login</button>
          </div>
        </div>
        <div class="text-danger"><?php echo $msg ?></div>
      </form>
    </div>
  </div>

  <?php include('include/foot_admin.php') ?>
</body>


<!-- Mirrored from rn53themes.net/themes/demo/lava-admin/login.html by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 16 Feb 2024 16:25:14 GMT -->

</html>

Zerion Mini Shell 1.0