From 3a71ab0d6d5b9e2ecae630a93a1e862906745384 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Tue, 19 Aug 2025 10:46:11 +0500 Subject: feat: delete your account --- account/delete.php | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 account/delete.php diff --git a/account/delete.php b/account/delete.php new file mode 100644 index 0000000..f218aa6 --- /dev/null +++ b/account/delete.php @@ -0,0 +1,62 @@ +prepare('DELETE FROM users WHERE id = ?') + ->execute([$user['id']]); + + session_destroy(); + + exit(create_alert('/', 200, 'Successfully deleted the account!', null)); +} + +?> + + + + + id system + + + + +
+ + + +
+

Are you sure you want to delete the account?

+
+ + +
+
+ + +
+
+
+ + + \ No newline at end of file -- cgit v1.2.3