diff options
| author | ilotterytea <iltsu@alright.party> | 2025-05-03 16:50:50 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-05-03 16:50:50 +0500 |
| commit | 2c51a000a9f2f51f54b761e4975086f9db3780a4 (patch) | |
| tree | 6fbe2871a652cf3264cfd42fede1d6369cefca84 /public/account/delete.php | |
| parent | a196b0bdf3d7dd4a86c4bf0bc5d5065ac03cd268 (diff) | |
upd: big changes in database.sql + .webp is now default image format
Diffstat (limited to 'public/account/delete.php')
| -rw-r--r-- | public/account/delete.php | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/public/account/delete.php b/public/account/delete.php index ecfcc80..4459edb 100644 --- a/public/account/delete.php +++ b/public/account/delete.php @@ -12,15 +12,7 @@ if (!isset($_SESSION["user_id"])) { $id = $_SESSION["user_id"]; $db = new PDO(DB_URL, DB_USER, DB_PASS); - -$stmt = $db->prepare("UPDATE emotes SET uploaded_by = NULL WHERE uploaded_by = ?"); -$stmt->execute([$id]); - -$stmt = $db->prepare("DELETE FROM connections WHERE user_id = ?"); -$stmt->execute([$id]); - -$stmt = $db->prepare("DELETE FROM users WHERE id = ?"); -$stmt->execute([$id]); +$db->prepare("DELETE FROM users WHERE id = ?")->execute([$id]); session_unset(); session_destroy(); |
