-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.php
67 lines (57 loc) · 2.26 KB
/
login.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!--
Copyright 2022
Vishal R
@MrVishal2k2
-->
<?php
if(!isset($_SESSION))
{
session_start();
}
// Check if the user is already logged in, if yes then redirect him to welcome page
if(isset($_SESSION["loggedin"]) && $_SESSION["loggedin"] === true){
header("location: admin");
exit;
}
?>
<?php include 'config.php' ?>
<!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.0">
<title>Login</title>
<link rel="icon" type="image/x-icon" href="https://cdn-icons-png.flaticon.com/512/295/295128.png">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link rel="canonical" href="https://getbootstrap.com/docs/5.0/examples/sign-in/">
<!-- Bootstrap core CSS -->
<link href="assets/styles/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="assets/styles/css/signin.css" rel="stylesheet">
</head>
<body class="text-center>
<div class="container">
<main class="form-signin">
<form method="Post">
<img class="mb-4" src=" https://cdn-icons-png.flaticon.com/512/3711/3711310.png" alt="" width="62" height="57">
<h1 class="h3 mb-3 fw-normal">Please sign in</h1>
<div class="form-floating">
<input type="email" class="form-control" id="floatingInput" name="email" placeholder="[email protected]">
<label for="EMAIL">Email address</label>
</div>
<div class="form-floating">
<input type="password" class="form-control" id="floatingPassword" name="password" placeholder="Password">
<label for="Password">Password</label>
</div>
<div class="blank"></div>
<button class="w-100 btn btn-lg btn-primary" name="login" type="submit">Login</button>
<hr>
<p style="text-align: center;"> <b>New User? </b> <a href="register.php">Register</a> </p>
<p class="mt-5 mb-3 text-muted">© MRVISHAL2K2 2022</p>
</form>
</div>
</main>
</body>
</html>