Hanno Böck This code is published under a 0BSD license. Nevertheless, in case you use a significant part of this code, we ask (but not require, see the license) that you keep the authors' names in place and return your changes to the public. We would be especially happy if you tell us what you're going to do with this code. */ require_once('inc/base.php'); require_role([ROLE_SYSTEMUSER, ROLE_MAILACCOUNT, ROLE_VMAIL_ACCOUNT]); require_once('totp.php'); $id = (int) $_REQUEST['id']; $startpage = 'account'; if (have_role(ROLE_SYSTEMUSER)) { $startpage = 'overview'; } $account = accountname($id); $sure = user_is_sure(); if ($sure === null) { $section = 'webmailtotp_'.$startpage; title("Zwei-Faktor-Anmeldung am Webmailer"); are_you_sure("id={$id}", "Möchten Sie die Zwei-Faktor-Anmeldung für das Postfach »{$account}« wirklich entfernen?"); } elseif ($sure === true) { delete_totp($id); if (!$debugmode) { header("Location: ".$startpage); } } elseif ($sure === false) { if (!$debugmode) { header("Location: ".$startpage); } }