-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
49 lines (31 loc) · 738 Bytes
/
index.php
File metadata and controls
49 lines (31 loc) · 738 Bytes
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
<?php
require "./public/template/links.php";
if (isset($_POST["login"])) {
header("Location: logins/login.php");
exit();
}
if (isset($_POST["signup"])) {
header("Location: logins/signup.php");
exit();
}
$title = "Index";
$css = [
"./public/style/style.css",
"./public/style/index.css"
];
?>
<!DOCTYPE html>
<html lang="en">
<?= headerTemplate($title, $css) ?>
<body>
<header>
<h1>The Library</h1>
<div id="formbtn">
<form action="./index.php" method="post">
<input type="submit" value="signup" name="signup">
<input type="submit" value="Login" name="login">
</form>
</div>
</header>
</body>
</html>