This commit is contained in:
2025-03-27 21:00:25 +01:00
parent 513b7563b6
commit 9e21bdc135
3 changed files with 54 additions and 18 deletions

View File

@@ -2,6 +2,9 @@
$admin_account = "Administrateur";
/**
* Affiche les éléments d'une liste
*/
function PrintListFirsts(string $title, array $liste): string
{
$result = '<div class="list-group-item"><h5>' . $title . '</h5>';
@@ -13,6 +16,9 @@ function PrintListFirsts(string $title, array $liste): string
return $result;
}
/**
* Affiche les informations de l'utilisateur
*/
function PrintLoginInfo($info)
{
global $admin_account;
@@ -33,10 +39,16 @@ function PrintLoginInfo($info)
return $body;
}
/**
* Retourne la chaîne traduite de l'état d'une tentative de connexion
*/
function translateSuccess(string $success) {
return $success == "success" ? "Succès" : "Échec";
}
/**
* Affiche l'interface administrateur
*/
function PrintAdminInterface(): string
{
$auth_attempts = GetLines();