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'];
|
$mailuserID = $_POST['mailuserID'];
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$mailuserID = $_SESSION['mailID'];
|
header("Location: ../index.php");
|
||||||
}
|
}
|
||||||
$eintrag = "DELETE FROM `accounts` WHERE `id` LIKE :mailuserID";
|
$eintrag = "DELETE FROM `accounts` WHERE `id` LIKE :mailuserID";
|
||||||
$sth = $dbh->prepare($eintrag);
|
$sth = $dbh->prepare($eintrag);
|
||||||
|
|
|
||||||
|
|
@ -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 '<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>
|
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 nl2br($config['connectionsettingsadvicetext']);
|
||||||
echo '<br><br>';
|
echo '<br><br>';
|
||||||
echo nl2br($config['supportinfotext']);
|
echo nl2br($config['supportinfotext']);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue