ok

Mini Shell

Direktori : /proc/thread-self/root/proc/self/root/home/shopnoc1/www/
Upload File :
Current File : //proc/thread-self/root/proc/self/root/home/shopnoc1/www/admin.php

<?php 

include("db.php"); ?>

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Shopnochura Art IT & Language Training Center</title>
    <link rel="stylesheet" href="style.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css">
    <!-- bootstrap links -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
    <!-- bootstrap links -->
    <!-- fonts links -->
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Merriweather&display=swap" rel="stylesheet">
    <!-- fonts links -->

</head>
<body>

<div class="container">
	<div class="row">

<div class="col-sm-12 bg-info text-center ">
	
<h1 class="text-dark">Shopnochura Art IT & Language Training Center</h1>
<h3 class="text-white">--Admin Login-- </h3>
</div>


		<div class="col-sm-12">

<form class="form-horizontal" action="adminlogin.php" autocomplete="off" method="post">
  <div class="form-group">
    <label class="control-label col-sm-2" for="username">Username:</label>
    <div class="col-sm-10">
      <input type="text" class="form-control" id="user" placeholder="Enter Username" name="user">
    </div>
  </div>
  <div class="form-group">
    <label class="control-label col-sm-2" for="pwd">Password:</label>
    <div class="col-sm-10">
      <input type="password" class="form-control" id="pwd" placeholder="Enter password" name="pass">
    </div>
  </div>
 
  <div class="form-group">
    <div class="col-sm-offset-2 col-sm-10">
      <button type="submit" class="btn btn-primary" name="adminlogin">Login As Admin</button>
    </div>
  </div>
</form>
</div>
</div> 
</div>

<?php
/**
if (isset($_POST['adminlogin'])) {
  // code...
  $user=$_POST['user'];
  $pass=$_POST['pass'];

  $selAdm=mysqli_query($conn,"select * from admin where user='$user' and pass='$pass'");

  $row=mysqli_fetch_array($selAdm);
  if (is_array($row)) {
    $_SESSION['user']=$row['user'];
    $_SESSION['pass']=$row['pass'];
  }

  else{
    echo "<script type='text/javascript'>";
   
    echo "window.location.href('admin.php')";
     echo "alert('Invalid Username or Password')";
    echo "</script>";
  }

}

if (isset($_SESSION['user'])) {
  // code...
  header("Location:dashboard.php");
}
**/
?>




</body>
</html>

Zerion Mini Shell 1.0