} $Vue['DateCreationCompte'] = $ResultatAuthentification['DateCreationUser']; $Vue['DateDerniereConnexion'] = $ResultatAuthentification['DateDerniereConnexionUser']; $Vue['HeureDerniereConnexion'] = $ResultatAuthentification['HeureDerniereConnexionUser']; $Vue['NbEchecConnexion'] = $ResultatAuthentification['NbEchecConnexionUser']; $Vue['NbTotalConnexion'] = $ResultatAuthentification['NbTotalConnexionUser']; Bd::SetDateHeureDerniereConnexion($Login); Bd::SetNbEchecConnexion($Login, "reinitialiser"); Bd::SetNbTotalConnexion($Login); $_SESSION['Login'] = $Login; $_SESSION['NomPrenom'] = $ResultatAuthentification['NomUser'] . " " . $ResultatAuthentification['PrenomUser']; $_SESSION['Type'] = $ResultatAuthentification['LibelleTypeUser']; $_SESSION['Sexe'] = $ResultatAuthentification['SexeUser']; $GrainDeSel = ""; while (strlen($GrainDeSel) < 20) { $GrainDeSel = $GrainDeSel . substr('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789', ceil(rand(1, 62)), 1); } Bd::SetGrainDeSelUser($Login, $GrainDeSel); } else { $Vue['ResultAuthentification'] = false; Bd::SetNbEchecConnexion($Login, "incrementer"); } // ===================================================================================================================================================== // Informations concernant la partie centrale de la page + appel de la vue partielle afin de gérer son affichage // ===================================================================================================================================================== $Infos['Page']['ContenuAvecEncarts'] = VueUtilisateur::GetXhtmlAuthentification($Vue); $_SESSION['Infos'] = $Infos; // ===================================================================================================================================================== // Création d'une page en lui passant en paramètre le tableau $Infos. Si ce n'est pas fait, une page "standard" sera créée par défaut dans le contrôleur principal // ===================================================================================================================================================== header("Location: ./Redirection.php?Page=Utilisateur&Action=Authentification");