added delete function to th application
This commit is contained in:
parent
204e212fb8
commit
a19e40f205
7 changed files with 74 additions and 10 deletions
|
|
@ -1,8 +1,14 @@
|
|||
<?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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue