From 9731c6ed61b38003d3909f758ff9c903c7761f9f Mon Sep 17 00:00:00 2001 From: root Date: Tue, 16 Jun 2026 16:44:30 +0200 Subject: [PATCH] disable mail account deletion for normal users --- public/bin/deletemail.php | 4 ++-- public/login.php | 2 +- public/settings.php | 6 +----- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/public/bin/deletemail.php b/public/bin/deletemail.php index a5d8ac4..a6607d4 100644 --- a/public/bin/deletemail.php +++ b/public/bin/deletemail.php @@ -45,7 +45,7 @@ if ($_SESSION['log'] == 1) { $mailuserID = $_POST['mailuserID']; } else { - $mailuserID = $_SESSION['mailID']; + header("Location: ../index.php"); } $eintrag = "DELETE FROM `accounts` WHERE `id` LIKE :mailuserID"; $sth = $dbh->prepare($eintrag); @@ -61,4 +61,4 @@ if ($_SESSION['log'] == 1) { exit; } header("Location: ../index.php"); -?> \ No newline at end of file +?> diff --git a/public/login.php b/public/login.php index ff1ca55..c6ebd41 100644 --- a/public/login.php +++ b/public/login.php @@ -49,4 +49,4 @@ if ($sth->rowCount() > 0) { } header("Location: index.php?badlogin=1"); exit; -?> \ No newline at end of file +?> diff --git a/public/settings.php b/public/settings.php index 38029de..62e9762 100644 --- a/public/settings.php +++ b/public/settings.php @@ -61,10 +61,6 @@ if ($_SESSION['log'] == 1) { echo ''; } echo ' -

Diese Mailadresse löschen:

-
- -

'; echo nl2br($config['connectionsettingsadvicetext']); echo '

'; echo nl2br($config['supportinfotext']); @@ -73,4 +69,4 @@ if ($_SESSION['log'] == 1) { exit; } header("Location: index.php"); -?> \ No newline at end of file +?>