fe8d7c2025e33349ab1e51c0e906ec3ee69dcff2
Bernd Wurst Startseiten-Shortcut für Pa...

Bernd Wurst authored 6 months ago

1) <?php
2) /*
3) This file belongs to the Webinterface of schokokeks.org Hosting
4) 
5) Written by schokokeks.org Hosting, namely
6)   Bernd Wurst <bernd@schokokeks.org>
7)   Hanno Böck <hanno@schokokeks.org>
8) 
9) This code is published under a 0BSD license.
10) 
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.
12) */
13) 
14) if ($_SESSION['role'] & ROLE_SYSTEMUSER) {
15)     include_once('modules/loginsecurity/include/passkey.php');
16)     $shortcuts[] = [ 'section' => 'loginsecurity',
Hanno Böck Neue codingstyle-rule array...

Hanno Böck authored 3 months ago

17)         'weight'  => 99,
18)         'file'    => 'overview',
19)         'icon'    => 'lock.png',
20)         'title'   => 'Passkey-Anmeldung',
21)         'alert'   => ((count(list_passkeys()) > 0) ? null : 'Nicht aktiv'),
22)     ];