added login, logout and registration sites and functionality as well as an protected profile page

This commit is contained in:
Patryk Hegenberg 2023-01-08 13:51:00 +01:00
parent cbebac47fa
commit 5b3f5a1123
12 changed files with 163 additions and 28 deletions

8
controllers/profile.php Normal file
View file

@ -0,0 +1,8 @@
<?php
$heading = "profile";
session_start();
if(!isset($_SESSION["username"])){
header("Location: /");
exit;
}
require "views/profile.view.php";