-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.php
70 lines (52 loc) · 1.86 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
68
69
70
<?php include('dir-path.php'); ?>
<?php include(ROOT_PATH . "/app/controller/users.php");
guestsOnly();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=chrome">
<!-- Font Awesome -->
<link rel="stylesheet" href="./assets/css/all.css">
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css?family=Candal|Lora" rel="stylesheet">
<!-- AOS Library -->
<link rel="stylesheet" href="./assets/css/aos.css">
<!-- Custom Style -->
<link rel="stylesheet" href="./assets/css/stylesheet.css">
<title>Login</title>
</head>
<body>
<main class="login">
<?php include(ROOT_PATH . "/app/includes/header.php"); ?>
<div class="auth-content">
<form action="login.php" method="post">
<h2 class="form-title">Login</h2>
<?php include(ROOT_PATH . "/app/helpers/form-validation.php"); ?>
<div>
<label for="uname">Username</label>
<input type="text" name="username" id="uname" value="<?php echo $username; ?>" class="text-input">
</div>
<div>
<label for="pw">Password</label>
<input type="password" name="password" id="pw" value="<?php echo $password; ?>" class="text-input">
</div>
<div id="button-align">
<button type="submit" name="login-btn" class="btn btn-big">Login</button>
</div>
<p>Or <a href="<?php echo BASE_URL . '/register.php' ?>">Sign Up</a></p>
</form>
</div>
</main>
<!-- Jquery Library file -->
<script src="./assets/js/Jquery3.4.1.min.js"></script>
<!-- Owl-Carousel js -->
<script src="./assets/js/owl.carousel.min.js"></script>
<!-- AOS js Library -->
<script src="./assets/js/aos.js"></script>
<!-- Custom Javascript file -->
<script src="./assets/js/main.js"></script>
</body>
</html>