M0 Einrichtung

This commit is contained in:
2026-07-11 22:24:22 +02:00
parent 6f99e7246d
commit 2e6d79e896
21 changed files with 1246 additions and 22 deletions
+12 -6
View File
@@ -2,12 +2,18 @@
include_once "config.php";
$kennungtemp = $_SERVER['AUTH_USER'];
$teile = explode("\\", $kennungtemp);
$kennung = $teile[1];
$devAuthEmail = getenv('DEV_AUTH_EMAIL') ?: '';
if ($devAuthEmail !== '') {
$mailadress = strtolower(trim($devAuthEmail));
$kennung = $mailadress;
} else {
$kennungtemp = $_SERVER['AUTH_USER'];
$teile = explode("\\", $kennungtemp);
$kennung = $teile[1];
include_once "functionsLDAP.php";
include_once "functionsLDAP.php";
}
function getUserName($conn, $mail){
@@ -66,4 +72,4 @@ function checkKaffeelisteAdmin($conn, $mail)
}
?>
?>