From 6bc0bd994c1c862b5c6110326b2ea03c19cc640b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9=20Garnier?= Date: Wed, 11 Jan 2023 22:03:06 +0100 Subject: [PATCH] test --- WEB/Controller/UserController.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/WEB/Controller/UserController.php b/WEB/Controller/UserController.php index 33a2cc13..4a5997e2 100644 --- a/WEB/Controller/UserController.php +++ b/WEB/Controller/UserController.php @@ -220,15 +220,15 @@ class UserController $model = new UserModel(); $idPartie = $_SESSION['idPartie']; $etat = $model->getEtatPartie($idPartie); - // $lesJoueurs = $model->getLesJoueurs($idPartie); - if($etat == 1){ - // $model->launchGame($idPartie); - $echo = "1"; - // header("Location: index.php?action=goToGame&idPartie=" . $idPartie . "&index=1"); - } - else{ - $echo = "0"; - } + echo $etat; + // if($etat == 1){ + // // $model->launchGame($idPartie); + // $echo = "1"; + // // header("Location: index.php?action=goToGame&idPartie=" . $idPartie . "&index=1"); + // } + // else{ + // $echo = "0"; + // } } catch (Exception $e) { $error = $e->getMessage(); require($rep . $vues['erreur']);