12 lines
273 B
PHP
12 lines
273 B
PHP
<?php
|
|
$heading = "Delete";
|
|
$username = "MatheApp";
|
|
$password = "password";
|
|
$config = require('config.php');
|
|
$db = new Database($config['database'], $username, $password);
|
|
|
|
session_start();
|
|
$db->delete($_SESSION['username']);
|
|
session_destroy();
|
|
header("Location: /");
|
|
exit;
|