if (isset($_POST["mailboxaction"])) { switch ($_POST["mailboxaction"]) { case "adddomain": mailbox_add_domain($link, $_POST); break; case "addalias": mailbox_add_alias($link, $_POST); break; case "addaliasdomain": mailbox_add_alias_domain($link, $_POST); break; case "addmailbox": mailbox_add_mailbox($link, $_POST); break; case "editdomain": mailbox_edit_domain($link, $_POST); break; case "editmailbox": mailbox_edit_mailbox($link, $_POST); break; case "editdomainadmin": mailbox_edit_domainadmin($link, $_POST); break; case "deletedomain": mailbox_delete_domain($link, $_POST); break; case "deletealias": mailbox_delete_alias($link, $_POST); break; case "deletealiasdomain": mailbox_delete_alias_domain($link, $_POST);
mailbox_add_domain($_POST); break; case "addalias": mailbox_add_alias($_POST); break; case "editalias": mailbox_edit_alias($_POST); break; case "addaliasdomain": mailbox_add_alias_domain($_POST); break; case "addmailbox": mailbox_add_mailbox($_POST); break; case "editdomain": mailbox_edit_domain($_POST); break; case "editmailbox": mailbox_edit_mailbox($_POST); break; case "deletedomain": mailbox_delete_domain($_POST); break; case "deletealias": mailbox_delete_alias($_POST); break; case "deletealiasdomain": mailbox_delete_alias_domain($_POST); break; case "editaliasdomain": mailbox_edit_alias_domain($_POST);