if (isset($_POST["mailboxaction"])) { switch ($_POST["mailboxaction"]) { case "setuserpassword": set_user_account($link, $_POST); break; case "addfetchmail": set_fetch_mail($link, $_POST); break; } } } if (isset($_SESSION['mailcow_cc_loggedin']) && $_SESSION['mailcow_cc_loggedin'] == "yes" && ($_SESSION['mailcow_cc_role'] == "domainadmin" || $_SESSION['mailcow_cc_role'] == "admin")) { 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);
$_SESSION['last_expanded'] = "collapseSpamAlias"; set_time_limited_aliases($_POST); } } if (isset($_SESSION['mailcow_cc_role']) && ($_SESSION['mailcow_cc_role'] == "admin" || $_SESSION['mailcow_cc_role'] == "domainadmin")) { if (isset($_GET["js"])) { switch ($_GET["js"]) { case "remaining_specs": remaining_specs($_GET['domain'], $_GET['object'], "y"); break; } } if (isset($_POST["trigger_mailbox_action"])) { switch ($_POST["trigger_mailbox_action"]) { case "adddomain": 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);