update styles
This commit is contained in:
@@ -3,8 +3,11 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Mauvaise connexion</title>
|
<title>Mauvaise connexion</title>
|
||||||
|
<!-- Bootstrap CSS -->
|
||||||
|
<link rel="stylesheet" href="../css/index.css">
|
||||||
|
<link rel="stylesheet" href="../css/main.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<p>Erreur lors de la connexion !</p>
|
<h2 class="text-center pt-3">Erreur lors de la connexion !</h2>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
@@ -3,6 +3,9 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Connexion</title>
|
<title>Connexion</title>
|
||||||
|
<!-- Bootstrap CSS -->
|
||||||
|
<link rel="stylesheet" href="../css/index.css">
|
||||||
|
<link rel="stylesheet" href="../css/main.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<?php
|
<?php
|
||||||
|
|||||||
@@ -1,48 +1,29 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
function brr()
|
|
||||||
{
|
|
||||||
echo "<br/>";
|
|
||||||
}
|
|
||||||
|
|
||||||
function brrr()
|
|
||||||
{
|
|
||||||
return "<br/>";
|
|
||||||
}
|
|
||||||
|
|
||||||
function PrintList(string $title, array $liste): string
|
|
||||||
{
|
|
||||||
$result = "<ul><p>$title</p>";
|
|
||||||
foreach ($liste as $element) {
|
|
||||||
$result .= "<li>$element</li>";
|
|
||||||
}
|
|
||||||
$result .= "</ul>";
|
|
||||||
return $result;
|
|
||||||
}
|
|
||||||
|
|
||||||
function PrintListFirsts(string $title, array $liste): string
|
function PrintListFirsts(string $title, array $liste): string
|
||||||
{
|
{
|
||||||
$result = "<li>" . $title . "</li>";
|
$result = '<div class="list-group-item"><h5>' . $title . '</h5>';
|
||||||
$result .= "<ul>";
|
$result .= '<div class="list-group ">';
|
||||||
foreach ($liste as $element) {
|
foreach ($liste as $element) {
|
||||||
$result .= "<li>" . $element[0] . "</li>";
|
$result .= '<div class="list-group-item">' . $element[0] . "</div>";
|
||||||
}
|
}
|
||||||
$result .= "</ul>";
|
$result .= "</div></div>";
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
function PrintLoginInfo($info)
|
function PrintLoginInfo($info)
|
||||||
{
|
{
|
||||||
$body = "Nom complet de l'utilisateur : " . $info->fullName;
|
$body = '<h2 class="text-center pt-3">Bienvenue ' . $info->fullName . " !</h2>";
|
||||||
$body .= "<ul>";
|
$body .= '<div class="list-group ">';
|
||||||
foreach ($info->ous as $ou) {
|
foreach ($info->ous as $ou) {
|
||||||
$body .= "<li>" . $ou;
|
$body .= '<div class="list-group-item"><h3>' . $ou . "</h3>";
|
||||||
$body .= "<ul>";
|
$body .= '<div class="list-group">';
|
||||||
$body .= PrintListFirsts("Utilisateurs", LdapGetUsersInOU($ou));
|
$body .= PrintListFirsts("Utilisateurs", LdapGetUsersInOU($ou));
|
||||||
$body .= PrintListFirsts("Groupes", LdapGetGroupsInOU($ou));
|
$body .= PrintListFirsts("Groupes", LdapGetGroupsInOU($ou));
|
||||||
$body .= "</ul>";
|
$body .= "</div>";
|
||||||
$body .= "</li>";
|
$body .= "</div>";
|
||||||
|
|
||||||
}
|
}
|
||||||
$body .= "</ul>";
|
$body .= "</div>";
|
||||||
return $body;
|
return $body;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user