disable mail account deletion for normal users

This commit is contained in:
root committed 2026-06-16 16:44:30 +02:00
1 parent f203bec567
commit 9731c6ed61
2 files changed
+1 -5

No files matched your search

+1 -1
View File
@@ -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);
-4
View File
@@ -61,10 +61,6 @@ if ($_SESSION['log'] == 1) {
echo '<label><p style="font-size: x-small">Schlüssel-Neuerstellung erzwingen</p><p style="font-size: small">ACHTUNG! Alle alten Mails werden dann wahrscheinlich nicht mehr lesbar sein!<input type="checkbox" name="forcekeyregen"/></p></label>';
}
echo '<input type="submit" value="Abschicken"/></form>
<h3>Diese Mailadresse löschen:</h3>
<form name="deletemail" method=POST action="bin/deletemail.php">
<input type="submit" value="LÖSCHEN"/>
</form><p>';
echo nl2br($config['connectionsettingsadvicetext']);
echo '<br><br>';
echo nl2br($config['supportinfotext']);