Added placeholder management page (usermanagement, dbmanagement)

This commit is contained in:
djpbessems
2019-02-25 15:00:32 +01:00
parent d4ce9e4e67
commit 1ffa164160
5 changed files with 36 additions and 10 deletions

View File

@ -0,0 +1,19 @@
<?php
error_reporting(E_ALL ^ E_NOTICE);
include_once('../include/lucidAuth.functions.php');
if (!empty($_COOKIE['JWT']) && validateToken($_COOKIE['JWT'])['status'] === "Success") {
include_once('../include/lucidAuth.template.php');
echo sprintf($pageLayout['full'], $contentLayout['manage']);
} else {
// No cookie containing valid authentication token found;
// explicitly deleting any remaining cookie, then redirecting to loginpage
setcookie('JWT', FALSE);
header("HTTP/1.1 401 Unauthorized");
header("Location: lucidAuth.login.php");
}
?>