-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdelete-account.php
43 lines (37 loc) · 1009 Bytes
/
delete-account.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
session_start();
require_once('php\includes\signinFunctions.php');
accessLevel('user');
if ($_SERVER['REQUEST_METHOD'] === 'POST')
{
require_once('php\includes\dbFunctions.php');
if(deleteUser($_SESSION['user_id']))
{
header('location: signout.php');
die();
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Sale Post</title>
<link rel="stylesheet" href="styles/delete-account.css">
<?php include_once('php/includes/common-css-js.php'); ?>
</head>
<body>
<?php
include("php/templates/header.php");
?>
<form action="delete-account.php" method="post" class="delete-form">
<h1>Delete your account?</h1>
<div class="btns">
<input type="button" value="Decline" onclick="location.href = 'index.php'">
<input type="submit" value="Accept">
</div>
</form>
<?php
include("php/templates/footer.php");
?>
</body>
</html>