f8ea2a5af26914d42e77f6da6e8faf6fe8a32b7f
Bernd Wurst löschen der OTP-Authentifiz...

Bernd Wurst authored 12 years ago

modules/googleauth/delete.php   1) <?php
modules/googleauth/delete.php   2) /*
modules/googleauth/delete.php   3) This file belongs to the Webinterface of schokokeks.org Hosting
modules/googleauth/delete.php   4) 
Bernd Wurst Copyright year update

Bernd Wurst authored 6 years ago

modules/webmailtotp/delete.php  5) Written 2008-2018 by schokokeks.org Hosting, namely
Bernd Wurst löschen der OTP-Authentifiz...

Bernd Wurst authored 12 years ago

modules/googleauth/delete.php   6)   Bernd Wurst <bernd@schokokeks.org>
modules/googleauth/delete.php   7)   Hanno Böck <hanno@schokokeks.org>
modules/googleauth/delete.php   8) 
modules/googleauth/delete.php   9) To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.
modules/googleauth/delete.php  10) 
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/webmailtotp/delete.php 11) You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see
Bernd Wurst löschen der OTP-Authentifiz...

Bernd Wurst authored 12 years ago

modules/googleauth/delete.php  12) http://creativecommons.org/publicdomain/zero/1.0/
modules/googleauth/delete.php  13) 
modules/googleauth/delete.php  14) 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.
modules/googleauth/delete.php  15) */
modules/googleauth/delete.php  16) 
modules/googleauth/delete.php  17) require_once('inc/base.php');
Bernd Wurst allow setup of 2FA when log...

Bernd Wurst authored 4 years ago

modules/webmailtotp/delete.php 18) require_role(array(ROLE_SYSTEMUSER, ROLE_MAILACCOUNT, ROLE_VMAIL_ACCOUNT));
Bernd Wurst löschen der OTP-Authentifiz...

Bernd Wurst authored 12 years ago

modules/googleauth/delete.php  19) 
Bernd Wurst Umbenennung Google-Auth nac...

Bernd Wurst authored 12 years ago

modules/webmailtotp/delete.php 20) require_once('totp.php');
Bernd Wurst löschen der OTP-Authentifiz...

Bernd Wurst authored 12 years ago

modules/googleauth/delete.php  21) 
modules/googleauth/delete.php  22) $id = (int) $_REQUEST['id'];
modules/googleauth/delete.php  23) 
Bernd Wurst allow setup of 2FA when log...

Bernd Wurst authored 4 years ago

modules/webmailtotp/delete.php 24) $startpage = 'account';
modules/webmailtotp/delete.php 25) if (have_role(ROLE_SYSTEMUSER)) {
modules/webmailtotp/delete.php 26)     $startpage = 'overview';
modules/webmailtotp/delete.php 27) }
modules/webmailtotp/delete.php 28) 
Bernd Wurst löschen der OTP-Authentifiz...

Bernd Wurst authored 12 years ago

modules/googleauth/delete.php  29) $account = accountname($id);
modules/googleauth/delete.php  30) $sure = user_is_sure();
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/webmailtotp/delete.php 31) if ($sure === null) {
Bernd Wurst allow setup of 2FA when log...

Bernd Wurst authored 4 years ago

modules/webmailtotp/delete.php 32)     $section='webmailtotp_'.$startpage;
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/webmailtotp/delete.php 33)     title("Zwei-Faktor-Anmeldung am Webmailer");
modules/webmailtotp/delete.php 34)     are_you_sure("id={$id}", "Möchten Sie die Zwei-Faktor-Anmeldung für das Postfach »{$account}« wirklich entfernen?");
modules/webmailtotp/delete.php 35) } elseif ($sure === true) {
modules/webmailtotp/delete.php 36)     delete_totp($id);
modules/webmailtotp/delete.php 37)     if (! $debugmode) {
Bernd Wurst allow setup of 2FA when log...

Bernd Wurst authored 4 years ago

modules/webmailtotp/delete.php 38)         header("Location: ".$startpage);
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/webmailtotp/delete.php 39)     }
modules/webmailtotp/delete.php 40) } elseif ($sure === false) {
modules/webmailtotp/delete.php 41)     if (! $debugmode) {
Bernd Wurst allow setup of 2FA when log...

Bernd Wurst authored 4 years ago

modules/webmailtotp/delete.php 42)         header("Location: ".$startpage);
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/webmailtotp/delete.php 43)     }