diff --git a/WEB/Controller/UserController.php b/WEB/Controller/UserController.php index 114d5c75..1e2b23c0 100644 --- a/WEB/Controller/UserController.php +++ b/WEB/Controller/UserController.php @@ -173,7 +173,6 @@ class UserController { try { global $rep, $vues, $error; - $model = new UserModel(); echo "Vous êtes dans la fille d'attente\n"; require($rep . $vues['queue']); } catch (Exception $e) { @@ -196,14 +195,9 @@ class UserController header("Location: index.php?action=goToPresentation"); } else{ - echo "Vous êtes dans la fille d'attente\n"; - require($rep . $vues['queue']); - sleep(5); while ($etat == 0){ sleep(5); $etat = $model->getEtatPartie($idPartie); - echo "Vous êtes dans la fille d'attente\n"; - require($rep . $vues['queue']); } header("Location: index.php?action=goToPresentation"); } diff --git a/WEB/View/src/pages/Multijoueur/Queue.php b/WEB/View/src/pages/Multijoueur/Queue.php index 4754614a..6f06cc3a 100644 --- a/WEB/View/src/pages/Multijoueur/Queue.php +++ b/WEB/View/src/pages/Multijoueur/Queue.php @@ -1,6 +1,9 @@ - Queuing + \ No newline at end of file