M0 Einrichtung
This commit is contained in:
+12
-6
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user