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
3 files changed
+4 -8

No files matched your search

+2 -2
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);
@@ -61,4 +61,4 @@ if ($_SESSION['log'] == 1) {
exit;
}
header("Location: ../index.php");
?>
?>