diff --git a/WEB/Config/Config.php b/WEB/Config/Config.php index 0f00df27..13b2bc71 100644 --- a/WEB/Config/Config.php +++ b/WEB/Config/Config.php @@ -3,8 +3,8 @@ $rep = ''; // BD -$dsn = './scripted.db'; -// $dsn = 'C:\\wamp64\\www\\scripted.db'; +// $dsn = './scripted.db'; +$dsn = 'C:\\wamp64\\www\\scripted.db'; //Sel de hashage $sel = "JeSuisUnSeldeHashageEtJeSuisUniqueEtTresSecuriseEtJeSuisTresLong"; @@ -37,6 +37,7 @@ $vues['modifOrdre'] = 'View/src/pages/Admin/ModifOrdre.php'; //Mulijoueur $vues['partie'] = 'View/src/pages/Multijoueur/Partie.php'; $vues['queue'] = 'View/src/pages/Multijoueur/FileAttente.php'; +$vues['lobbyEnd'] = 'View/src/pages/Multijoueur/LobbyEnd.php'; $vues['gameEnd'] = 'View/src/pages/Multijoueur/GameEnd.php'; // Enigme diff --git a/WEB/Controller/UserController.php b/WEB/Controller/UserController.php index 7982ea95..a6b4aa3d 100644 --- a/WEB/Controller/UserController.php +++ b/WEB/Controller/UserController.php @@ -245,7 +245,7 @@ class UserController if($lastIndex != 0 && $index == $lastIndex + 1){ $dateDebut = $model->getDateDebut($idPartie); $points = $model->getPointsAtTheEnd($utilisateur->getEmail(), $idPartie); - require($rep . $vues['gameEnd']); + require($rep . $vues['lobbyEnd']); } else{ $enigme = $model->getEnigmebyPartieIdAndIndex($idPartie, $index); diff --git a/WEB/View/src/pages/Multijoueur/FileAttente.php b/WEB/View/src/pages/Multijoueur/FileAttente.php index 504d2cbe..aead20ab 100644 --- a/WEB/View/src/pages/Multijoueur/FileAttente.php +++ b/WEB/View/src/pages/Multijoueur/FileAttente.php @@ -57,13 +57,25 @@ -->