Added redirects and middleware classes for login
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user