Added register, login, logout pages

Added roles file
This commit is contained in:
Furentes
2019-05-09 13:59:54 +02:00
parent 36826f48a8
commit 135b0bb9c2
8 changed files with 186 additions and 5 deletions

View File

@ -11,6 +11,24 @@ require_once(__DIR__."/lib/autoload.php");
<title>Home - <?= (defined("SITE_TITLE")) ? SITE_TITLE : 'A Bloggr Site' ?></title>
</head>
<body>
<?php
if (!$auth->isLoggedIn()) {
?>
<p>
<a href="/login.php">Login</a>
</p>
<p>
<a href="/register.php">Registrieren</a>
</p>
<?php
}
if ($auth->isLoggedIn()) {
?>
<p>
<a href="/logout.php">Logout</a>
</p>
<?php
}
?>
</body>
</html>