rewrite
This commit is contained in:
1 parent
cb81230798
commit
a48be33024
18 files changed
+531
-195
No files matched your search
@@ -47,15 +47,11 @@ if ($_SESSION['log'] == 1) {
|
||||
else {
|
||||
$mailuserID = $_SESSION['mailID'];
|
||||
}
|
||||
$abfrage = "SELECT `username` FROM `virtual_users` WHERE `id` = :mailuserID";
|
||||
$sth = $dbh->prepare($abfrage);
|
||||
$sth->execute(array('mailuserID' => $mailuserID));
|
||||
$result = $sth->fetchAll();
|
||||
$eintrag = "DELETE FROM `mailserver`.`virtual_users` WHERE `id` LIKE :mailuserID";
|
||||
$eintrag = "DELETE FROM `accounts` WHERE `id` LIKE :mailuserID";
|
||||
$sth = $dbh->prepare($eintrag);
|
||||
$sth->execute(array(':mailuserID' => $mailuserID));
|
||||
$maildirpath = $config['mailfolderpath'] . $result[0]['username'];
|
||||
delete_directory($maildirpath);
|
||||
//$maildirpath = $config['mailfolderpath'] . $result[0]['username'];
|
||||
//delete_directory($maildirpath);
|
||||
header("Location: ../admin.php?success=1");
|
||||
exit;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user