database update

This commit is contained in:
2021-03-25 14:24:34 +01:00
parent 9e4c39c435
commit 676b3a596d
5 changed files with 114 additions and 9 deletions
+9
View File
@@ -8,3 +8,12 @@ function isAdmin(): bool
return isset($_SESSION['admin']);
}
function makeAdminLogin(string $userName)
{
setcookie("userName", $userName, [
'expires' => 0,
'samesite' => 'Strict',
'path' => '/'
]);
}