-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.php
78 lines (48 loc) · 1.8 KB
/
home.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
<?php
require_once 'controllers/authController.php';
// verify the token
if(isset($_GET['token'])){
$token = $_GET['token'];
verifyUser($token);
}
if(!isset($_SESSION['id'])){
header('location: login.php');
exit();
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Bootstrap -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css">
<!-- Our css file -->
<link href="css/mystyle.css" rel="stylesheet" >
<title>Homepage</title>
</head>
<body class = "home">
<h1><em><b>Super Deutsch Arbeiter</b></em></h1>
<div>
<br>
<?php if(!$_SESSION['verified']): ?>
<div class="alert alert-warning">
<center>
Please verify your email address
</center>
</div>
<?php endif; ?>
</div>
<div class="home-big-container">
<?php if($_SESSION['verified']): ?>
<?php require 'code/global/sidemenu.php'?>
<?php endif; ?>
<?php if($_SESSION['verified']): ?>
<div class="home-container">
<a href="<?php echo ROOT_PATH . 'code/lists.php';?>" class = "home-button lists">Lists</a>
<a href="<?php echo ROOT_PATH . 'code/play.php';?>" class = "home-button play">Play</a>
<a href="<?php echo ROOT_PATH . 'code/others.php';?>" class = "home-button others">Others</a>
<?php endif; ?>
</div>
</body>
</html>