add doc
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user