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

View file

@ -4,4 +4,9 @@ require 'Database.php';
require 'router.php';
require 'Response.php';
$username = 'MatheApp';
$password = 'password';
$config = require('config.php');
$db = new Database($config['database'], $username, $password);
//dd($posts);