34 lines
1.4 KiB
PHP
Executable File
34 lines
1.4 KiB
PHP
Executable File
<?php
|
|
session_start();
|
|
if (isset($_SESSION['loggedin'])) {
|
|
header('Location: home.php');
|
|
exit;
|
|
}
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Login</title>
|
|
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.1/css/all.css">
|
|
<link href="style.css" rel="stylesheet" type="text/css">
|
|
</head>
|
|
<body>
|
|
<div class="login">
|
|
<h1>Login</h1>
|
|
<form action="authenticate.php" method="post">
|
|
<label for="username">
|
|
<i class="fas fa-user"></i>
|
|
</label>
|
|
<input type="text" name="username" placeholder="Username" id="username" required>
|
|
<label for="password">
|
|
<i class="fas fa-lock"></i>
|
|
</label>
|
|
<input type="password" name="password" placeholder="Password" id="password" required>
|
|
<input type="submit" value="Login">
|
|
</form>
|
|
|
|
</div>
|
|
<center><a href="register.html"><button style="cursor: pointer; outline: 0; color: #fff; background-color: #0d6efd; border-color: #0d6efd; display: inline-block; font-weight: 400; line-height: 1.5; text-align: center; border: 1px solid transparent; padding: 6px 12px; font-size: 16px; border-radius: .25rem; transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out; :hover { color: #fff; background-color: #0b5ed7; border-color: #0a58ca; }">Register</button></center>
|
|
</body>
|
|
</html>
|