-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathactivate.php
More file actions
45 lines (41 loc) · 1.33 KB
/
activate.php
File metadata and controls
45 lines (41 loc) · 1.33 KB
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
<?php
include_once(__DIR__ . "/classes/Buddy.php");
if (!empty($_GET['u'])) {
$user = new Buddy();
$user->setActivationToken($_GET['u']);
$result = $user->activateAccount();
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/style.css">
<title>Account activatie</title>
</head>
<body>
<div class="container">
<div class="form form--login center">
<?php if (isset($_GET['u']) && !empty($_GET['u'])): ?>
<?php if ($_GET['u'] == $result['activationToken']): ?>
<h1>
<?php echo "Account geactiveerd!"; ?>
</h1>
<p><a href="login.php" class="a__activate">klik hier</a> om in te loggen!</p>
<?php else: ?>
<h1>
<?php echo "Account niet gevonden!"; ?>
</h1>
<p><a href="register.php" class="a__activate">klik hier</a> om een account aan te maken!</p>
<?php endif; ?>
<?php else: ?>
<h1>
<?php echo "Geen account meegegeven om te activeren!"; ?>
</h1>
<?php endif; ?>
</div>
</div>
</body>
</html>