-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
97 lines (74 loc) · 2.66 KB
/
index.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css">
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<!-- Popper JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"></script>
<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"></script>
<!-- Custom styles for this template -->
<link rel="stylesheet" type="text/css" href="CSS/login.css">
<!-- Bootstrap core CSS -->
<link href="../../dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Bootstrap core CSS -->
<link href="../../dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="CSS/signin.css" rel="stylesheet">
</head>
<?php
//handig om NIET weg te halen
//phpinfo(INFO_GENERAL);
//if cookie is not empty then go to home.view.php
if(!empty($_SESSION['member_email'])) {
header('Location: home.view.php');
} else{
//if not go to check in
header('Location: views/check.view.php');
}
?>
<!--<html>-->
<!--<head>-->
<!-- <title>Login</title>-->
<!--</head>-->
<!--<body>-->
<!--<h1></h1>-->
<!---->
<!--<button onclick="document.getElementById('id01').style.display='block'" style="width:auto;">Login</button>-->
<!--<div class = "container form-signin">-->
<!---->
<!---->
<!--</div>-->
<!--<div id="id01" class="modal">-->
<!---->
<!-- <form class="form-signin" action="check.php" method="post">-->
<!-- <img class="mb-4" src="img/clublogo2.png" alt="" width="100" height="120">-->
<!-- <h1 class="h3 mb-3 font-weight-normal">Inloggen</h1>-->
<!---->
<!-- <input type = "text" class = "form-control"-->
<!-- name = "email" placeholder = "Email"-->
<!-- required autofocus></br>-->
<!-- <input type = "password" class = "form-control"-->
<!-- name = "password" placeholder = "Wachtwoord" required>-->
<!-- <input type="submit" value="Login" name="submit"/>-->
<!-- </form>-->
<!---->
<!--</div>-->
<!---->
<!--<script>-->
<!-- // Get the modal-->
<!-- var modal = document.getElementById('id01');-->
<!---->
<!-- // When the user clicks anywhere outside of the modal, close it-->
<!-- window.onclick = function(event) {-->
<!-- if (event.target == modal) {-->
<!-- modal.style.display = "none";-->
<!-- }-->
<!-- }-->
<!--</script>-->
</body>
</html>