added login, logout and registration sites and functionality as well as an protected profile page
This commit is contained in:
parent
cbebac47fa
commit
5b3f5a1123
12 changed files with 163 additions and 28 deletions
8
controllers/profile.php
Normal file
8
controllers/profile.php
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<?php
|
||||
$heading = "profile";
|
||||
session_start();
|
||||
if(!isset($_SESSION["username"])){
|
||||
header("Location: /");
|
||||
exit;
|
||||
}
|
||||
require "views/profile.view.php";
|
||||
Loading…
Add table
Add a link
Reference in a new issue