";
}
function brrr()
{
return "
";
}
function PrintList(string $title, array $liste): string
{
$result = "
$title
";
foreach ($liste as $element) {
$result .= "- $element
";
}
$result .= "
";
return $result;
}
function PrintListFirsts(string $title, array $liste): string
{
$result = "" . $title . "";
$result .= "";
foreach ($liste as $element) {
$result .= "- " . $element[0] . "
";
}
$result .= "
";
return $result;
}
function PrintLoginInfo($info)
{
$body = "Nom complet de l'utilisateur : " . $info->fullName;
$body .= "";
foreach ($info->ous as $ou) {
$body .= "- " . $ou;
$body .= "
";
$body .= PrintListFirsts("Utilisateurs", LdapGetUsersInOU($ou));
$body .= PrintListFirsts("Groupes", LdapGetGroupsInOU($ou));
$body .= "
";
$body .= " ";
}
$body .= "
";
return $body;
}