2626dd47daad110c63a82c0560b134e2364eeac3
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');
modules/googleauth/delete.php  18) require_role(ROLE_SYSTEMUSER);
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) 
modules/googleauth/delete.php  24) $account = accountname($id);
modules/googleauth/delete.php  25) $sure = user_is_sure();
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/webmailtotp/delete.php 26) if ($sure === null) {
modules/webmailtotp/delete.php 27)     $section='webmailtotp_overview';
modules/webmailtotp/delete.php 28)     title("Zwei-Faktor-Anmeldung am Webmailer");
modules/webmailtotp/delete.php 29)     are_you_sure("id={$id}", "Möchten Sie die Zwei-Faktor-Anmeldung für das Postfach »{$account}« wirklich entfernen?");
modules/webmailtotp/delete.php 30) } elseif ($sure === true) {
modules/webmailtotp/delete.php 31)     delete_totp($id);
modules/webmailtotp/delete.php 32)     if (! $debugmode) {
modules/webmailtotp/delete.php 33)         header("Location: overview");
modules/webmailtotp/delete.php 34)     }
modules/webmailtotp/delete.php 35) } elseif ($sure === false) {
modules/webmailtotp/delete.php 36)     if (! $debugmode) {
modules/webmailtotp/delete.php 37)         header("Location: overview");
modules/webmailtotp/delete.php 38)     }