disable mail account deletion for normal users
This commit is contained in:
1 parent
f203bec567
commit
9731c6ed61
3 files changed
+4
-8
No files matched your search
@@ -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");
|
||||
?>
|
||||
?>
|
||||
Reference in new issue
Block a user