array( "Back to Mailboxes" => "postfix-mailboxes-main.php", ), )); # Display delete confirm screen if ($_POST['frmaction'] == "delete") { # Check a Postfix mailbox was selected if (isset($_POST['postfix_mailbox_id'])) { ?>
Are you very sure?
No mailbox selected
query(" SELECT Mailbox FROM ${DB_TABLE_PREFIX}mailboxes WHERE ID = ".$db->quote($_POST['postfix_mailbox_id'])." "); if ($res !== FALSE) { # Pull in limit ID's $row = $res->fetchObject(); $res->closeCursor(); $mailbox = $row->mailbox; } else { ?>
Error selecting mailbox!
errorInfo()) ?>
beginTransaction(); $res = $db->exec("DELETE FROM ${DB_TABLE_PREFIX}distribution_group_members WHERE Goto = ".$db->quote($mailbox)); if ($res !== FALSE) { ?>
Mailbox removed from distribution groups
Error removing mailbox from distribution groups!
errorInfo()) ?>
rollBack(); } if ($res !== FALSE) { $res = $db->exec("DELETE FROM ${DB_TABLE_PREFIX}mailboxes WHERE ID = ".$db->quote($_POST['postfix_mailbox_id'])); if ($res) { ?>
Mailbox deleted
Error deleting mailbox!
errorInfo()) ?>
rollBack(); } } if ($res) { $db->commit(); } } else { ?>
Mailbox not deleted, aborted by user
Invocation error, no mailbox ID
Invalid invocation