1
0

Added redirects and middleware classes for login

This commit is contained in:
2017-03-26 16:07:10 +02:00
parent 40d3ec9052
commit 014adeed65
7 changed files with 88 additions and 35 deletions

View File

@ -2,18 +2,10 @@
<html>
<head>
<meta charset="utf-8"/>
<title>Slim 3</title>
<link href='//fonts.googleapis.com/css?family=Lato:300' rel='stylesheet' type='text/css'>
<link href='assets/css/demo.css' rel='stylesheet' type='text/css'>
<title>Inforbank</title>
</head>
<body>
<h1>Slim</h1>
<div>a microframework for PHP</div>
<?php if (isset($name)) : ?>
<h2>Hello <?= htmlspecialchars($name); ?>!</h2>
<?php else: ?>
<p>Try <a href="http://www.slimframework.com">SlimFramework</a>
<?php endif; ?>
<p>Welkom klant <?= $_SESSION['userid'] ?></p>
<a href="/logout">Uitloggen</a>
</body>
</html>