-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
executable file
·44 lines (37 loc) · 1.31 KB
/
Copy pathindex.php
File metadata and controls
executable file
·44 lines (37 loc) · 1.31 KB
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
<?php
session_start();
if (isset($_SESSION["user"])) {
header("Location: dashboard.php");
exit();
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="/styles/login.css" />
<link rel="icon" type="image/svg+xml" href="assets/logo.svg">
<title>Login</title>
</head>
<body>
<form method="POST" action="login_process.php" data-tilt data-tilt-glare>
<img src="assets/logo.svg" class="__logo">
<h2 class="login__title">Admin Login</h2>
<div class="login__field">
<input type="text" id="username" name="username" class="login__input" placeholder=" " required>
<label for="username" class="login__label">Username</label>
</div>
<div class="login__field">
<input type="password" id="password" name="password" class="login__input" placeholder=" " required>
<label for="password" class="login__label">Password</label>
</div>
<button type="submit">Login</button>
<div style="text-align: center; margin-top: 20px;">
<span style="color: rgba(255, 255, 255, 0.7);">Don't have an account?</span>
<br>
<a href="register.php" style="color: #67a6ff; text-decoration: none; font-weight: 500;">Register here</a>
</div>
</form>
</body>
<script type="text/javascript" src="scripts/vanilla-tilt.js"></script>
</html>