test
continuous-integration/drone/push Build is passing Details

ServeurDeTest
Noé GARNIER 2 years ago
parent 7e4d60917e
commit 6bc0bd994c

@ -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']);

Loading…
Cancel
Save