Hanno Böck
more strict codingstyle with php-cs-fixer 3.10.0
Hanno Böck commited 7ae33de at 2022-08-20 09:51:47
<?php
/*
This file belongs to the Webinterface of schokokeks.org Hosting
Written by schokokeks.org Hosting, namely
Bernd Wurst <bernd@schokokeks.org>
Hanno Böck <hanno@schokokeks.org>
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_role(array(ROLE_CUSTOMER, ROLE_SYSTEMUSER));
/*if ($user['realname'] == '')
input_error('Ihr Name ist nicht im System gespeichert (siehe Stammdaten)!');
if ($user['email'] == '')
input_error('Im System ist keine alternative eMail-Adresse gespeichert (siehe Stammdaten)!');
*/
switch ($_SESSION['role']) {
case ROLE_ANONYMOUS:
login_screen('');
break;
case ROLE_VMAIL_ACCOUNT:
$role = "{$_SESSION['mailaccount']}, angemeldet als E-Mail-Account";
break;
case ROLE_MAILACCOUNT:
$role = "{$_SESSION['mailaccount']}, angemeldet als IMAP/POP3-Account";
break;
case ROLE_SYSTEMUSER:
$role = "{$_SESSION['userinfo']['name']}, angemeldet als Benutzer";
break;
case ROLE_SYSTEMUSER | ROLE_SUBUSER:
case ROLE_SYSTEMUSER | ROLE_CUSTOMER | ROLE_SUBUSER:
$role = "{$_SESSION['subuser']}, Unternutzer von {$_SESSION['userinfo']['username']}";
break;
case ROLE_CUSTOMER:
$role = "{$_SESSION['customerinfo']['name']}, angemeldet als Kunde";
break;
case ROLE_CUSTOMER | ROLE_SYSTEMUSER:
$role = "{$_SESSION['customerinfo']['name']}, angemeldet als Kunde und Benutzer";
break;
case ROLE_SYSTEMUSER | ROLE_SYSADMIN:
$role = "{$_SESSION['userinfo']['name']}, angemeldet als Benutzer und Administrator";
break;
case ROLE_CUSTOMER | ROLE_SYSTEMUSER | ROLE_SYSADMIN:
$role = "{$_SESSION['customerinfo']['name']}, angemeldet als Kunde, Benutzer und Administrator";
break;
 
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX