-
Notifications
You must be signed in to change notification settings - Fork 2
/
footer.php
69 lines (64 loc) · 3.17 KB
/
footer.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
<footer class="pt-3 mt-4 text-muted border-top">© <?php echo date('Y'); ?></footer>
</div>
</main>
<script type="text/javascript" src="assets/js/bootstrap.bundle.min.js"></script>
<div class="modal fade" id="loginModal" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Login</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form action="/login" method="post">
<div class="mb-3">
<label for="username" class="form-label">Username</label>
<input type="text" class="form-control" name="username" required>
</div>
<div class="mb-3">
<label for="password" class="form-label">Password</label>
<input type="password" class="form-control" name="password" required>
</div>
<?php $login = sha1(time()); ?>
<input type="hidden" name="login" value="<?php echo $login; ?>">
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-secondary">Login</button>
</div>
</form>
</div>
</div>
</div>
<div class="modal fade" id="registerModal" tabindex="-2">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Register</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form action="/register" method="post">
<div class="mb-3">
<label for="username" class="form-label">Username</label>
<input type="text" class="form-control" name="username" required>
</div>
<div class="mb-3">
<label for="email" class="form-label">Email Address</label>
<input type="email" class="form-control" name="email" required>
</div>
<div class="mb-3">
<label for="password" class="form-label">Password</label>
<input type="password" class="form-control" name="password" required>
</div>
<?php $register = sha1(time()); ?>
<input type="hidden" name="register" value="<?php echo $register; ?>">
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-secondary">Register</button>
</div>
</form>
</div>
</div>
</div>
</body>
</html>