-
Notifications
You must be signed in to change notification settings - Fork 0
/
inloggen.php
executable file
·58 lines (55 loc) · 1.4 KB
/
inloggen.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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Inloggen | Bolhoed</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="http://fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,600,700,900" rel="stylesheet" />
<link href="opmaak.css" rel="stylesheet" type="text/css" media="all" />
</head>
<body>
<div id="page" class="container">
<div id="header">
<div id="logo">
<h1>
<a>Bolhoed</a>
</h1>
</div>
<div id="menu">
<ul>
<li><a href="index.php">Home</a></li>
<?php
require_once 'classes/DatabaseHandler.class.php';
$db = new DatabaseHandler ();
if ($db->isIngelogd ()) {
echo '<li class="current_page_item"><a>Uitloggen</a></li>';
echo '<li><a href="liveticker">Bestellingen</a></li>';
if ($db->isBeheerder ()) {
echo '<li><a href="statistiek.php">Statistieken</a></li>';
echo '<li><a href="beheer.php">Beheer</a></li>';
}
} else {
echo '<li class="current_page_item"><a>Inloggen</a></li>';
}
?>
</ul>
</div>
</div>
<div id="main">
<div id="welcome">
<div class="title">
<h2>Welkom</h2>
</div>
<?php
$db->login ();
if ($db->isIngelogd ()) {
header ( 'Location: ./' );
}
?>
<a href="?logout">Uitloggen</a>
</div>
</div>
</div>
</body>
</html>