"unset_fido2_key", "post_data" => $_POST)); } } if (isset($_SESSION['mailcow_cc_role']) && $_SESSION['mailcow_cc_role'] == "admin" && !isset($_SESSION['mailcow_cc_api'])) { // TODO: Move file upload to API? if (isset($_POST["submit_main_logo"])) { if ($_FILES['main_logo']['error'] == 0) { customize('add', 'main_logo', $_FILES); } if ($_FILES['main_logo_dark']['error'] == 0) { customize('add', 'main_logo_dark', $_FILES); } } if (isset($_POST["reset_main_logo"])) { customize('delete', 'main_logo'); customize('delete', 'main_logo_dark'); } // Some actions will not be available via API if (isset($_POST["license_validate_now"])) { license('verify'); } if (isset($_POST["admin_api"])) { if (isset($_POST["admin_api"]["ro"])) { admin_api('ro', 'edit', $_POST); } elseif (isset($_POST["admin_api"]["rw"])) { admin_api('rw', 'edit', $_POST); } } if (isset($_POST["admin_api_regen_key"])) { if (isset($_POST["admin_api_regen_key"]["ro"])) { admin_api('ro', 'regen_key', $_POST); } elseif (isset($_POST["admin_api_regen_key"]["rw"])) { admin_api('rw', 'regen_key', $_POST); } } if (isset($_POST["rspamd_ui"])) { rspamd_ui('edit', $_POST); } if (isset($_POST["mass_send"])) { sys_mail($_POST); } } ?>