'; $submit = "Ajouter un profil"; $titre = "Ajouter un profil"; $protect = 0; } else { if (core::ifGet("id") == FALSE or (core::ifGet("id") and session::getId() == core::getGet("id"))) { $user = user::getUser(session::getId()); $submit = "Modifier votre profil"; $titre = "Votre fiche de profil"; $protect = 1; if (debug::isFile("debug")) { debug::log($user, "Données brutes user"); } } else { if (access::ifAccesss("add-user")) { $user = user::getUser(core::getGet("id")); if (is_array($user)) { $submit = "Modifier ce profil"; $titre = "Fiche de " . $user["prenom"] . " " . $user["nom"]; if ($user["deleted"] == 1) { $titre .= " (Supprimée)"; $protect = 2; } else { $protect = 0; } } else { get::page("unknow"); exit(); } } else { get::page("unknow"); exit(); } } $id_form = ''; } ?>

$titre, "arbo" => array( "Administration" => NULL, "Utilisateurs" => "/parametres-users.html", $titre => "#" ) )); } ?> "info", "size" => "tiny", "style" => "margin:-5px 0;", "p" => "Dernière connexion le " . core::convertDate($user["last_connect"]), ]); ?>
"Contrôleur QRCode (émargement)", 3 => "Assistance sociale", 4 => "Modérateur du CMS", 5 => "Membre du Bureau du CSE", 6 => "Elu du CSE", 7 => "Comptable", 1 => "Administrateur" ]; ?>








"Désactivé", 1 => "Activé", ]; // Vérifier si le 2FA est en attente de validation $is2FAPending = isset($user["id"]) ? user::is2FAPending($user["id"]) : false; $is2FAActive = isset($user["googleAuthenticator"]) && $user["googleAuthenticator"] == 1; if ($is2FAPending) { // Afficher "En attente de validation" quand le 2FA est pending echo '
En attente de validation du code
'; html::printInput('type="hidden" name="googleAuthenticator" value="0"'); } else { $bgStyle = $is2FAActive ? 'background-color: #d4edda; color: #155724;' : 'background-color: #f8d7da; color: #721c24;'; $iconClass = $is2FAActive ? 'bi-shield-check' : 'bi-shield-x'; ?>

"Compte désactivé", 1 => "Compte activé", ]; html::printSelect('name="actif" class="form-select"', $actif, @$user["actif"]); ?>