TheMathWizard/controllers/profile.php
2023-01-08 20:24:13 +01:00

14 lines
295 B
PHP

<?php
$heading = "profile";
$username = "MatheApp";
$password = "password";
$config = require('config.php');
$db = new Database($config['database'], $username, $password);
session_start();
if(!isset($_SESSION["username"])){
header("Location: /");
exit;
}
require "views/profile.view.php";