mirror of
https://github.com/p08dev/Bloggr.git
synced 2026-06-17 12:43:56 +02:00
Added register, login, logout pages
Added roles file
This commit is contained in:
20
index.php
20
index.php
@ -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>
|
||||
|
||||
Reference in New Issue
Block a user