disable mail account deletion for normal users
This commit is contained in:
parent
f203bec567
commit
9731c6ed61
|
|
@ -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");
|
||||
?>
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -49,4 +49,4 @@ if ($sth->rowCount() > 0) {
|
|||
}
|
||||
header("Location: index.php?badlogin=1");
|
||||
exit;
|
||||
?>
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -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']);
|
||||
|
|
@ -73,4 +69,4 @@ if ($_SESSION['log'] == 1) {
|
|||
exit;
|
||||
}
|
||||
header("Location: index.php");
|
||||
?>
|
||||
?>
|
||||
|
|
|
|||
Loading…
Reference in New Issue