354c05a4ddd678c49bcbba458bffa7d13482139a
Bernd Wurst löschen der OTP-Authentifiz...

Bernd Wurst authored 11 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) 
Hanno Böck Change license from CC0 to...

Hanno Böck authored 1 year ago

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

Bernd Wurst authored 11 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) 
Hanno Böck Change license from CC0 to...

Hanno Böck authored 1 year ago

modules/webmailtotp/delete.php  9) This code is published under a 0BSD license.
Bernd Wurst löschen der OTP-Authentifiz...

Bernd Wurst authored 11 years ago

modules/googleauth/delete.php  10) 
modules/googleauth/delete.php  11) 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  12) */
modules/googleauth/delete.php  13) 
modules/googleauth/delete.php  14) require_once('inc/base.php');
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 2 years ago

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

Bernd Wurst authored 11 years ago

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

Bernd Wurst authored 11 years ago

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

Bernd Wurst authored 11 years ago

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

Bernd Wurst authored 3 years ago

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

Bernd Wurst authored 11 years ago

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

Hanno authored 5 years ago

modules/webmailtotp/delete.php 28) if ($sure === null) {
Hanno Böck Spaces between string conca...

Hanno Böck authored 6 months ago

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

Hanno authored 5 years ago

modules/webmailtotp/delete.php 30)     title("Zwei-Faktor-Anmeldung am Webmailer");
modules/webmailtotp/delete.php 31)     are_you_sure("id={$id}", "Möchten Sie die Zwei-Faktor-Anmeldung für das Postfach »{$account}« wirklich entfernen?");
modules/webmailtotp/delete.php 32) } elseif ($sure === true) {
modules/webmailtotp/delete.php 33)     delete_totp($id);
Hanno Böck Fix not operator (!) spaces

Hanno Böck authored 6 months ago

modules/webmailtotp/delete.php 34)     if (!$debugmode) {
Hanno Böck Spaces between string conca...

Hanno Böck authored 6 months ago

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

Hanno authored 5 years ago

modules/webmailtotp/delete.php 36)     }
modules/webmailtotp/delete.php 37) } elseif ($sure === false) {
Hanno Böck Fix not operator (!) spaces

Hanno Böck authored 6 months ago

modules/webmailtotp/delete.php 38)     if (!$debugmode) {
Hanno Böck Spaces between string conca...

Hanno Böck authored 6 months ago

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

Hanno authored 5 years ago

modules/webmailtotp/delete.php 40)     }