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

ServeurDeTest
Noé GARNIER 2 years ago
parent 802c3f3f0c
commit 9aea3e0692

@ -173,7 +173,6 @@ class UserController
{ {
try { try {
global $rep, $vues, $error; global $rep, $vues, $error;
$model = new UserModel();
echo "Vous êtes dans la fille d'attente\n"; echo "Vous êtes dans la fille d'attente\n";
require($rep . $vues['queue']); require($rep . $vues['queue']);
} catch (Exception $e) { } catch (Exception $e) {
@ -196,14 +195,9 @@ class UserController
header("Location: index.php?action=goToPresentation"); header("Location: index.php?action=goToPresentation");
} }
else{ else{
echo "Vous êtes dans la fille d'attente\n";
require($rep . $vues['queue']);
sleep(5);
while ($etat == 0){ while ($etat == 0){
sleep(5); sleep(5);
$etat = $model->getEtatPartie($idPartie); $etat = $model->getEtatPartie($idPartie);
echo "Vous êtes dans la fille d'attente\n";
require($rep . $vues['queue']);
} }
header("Location: index.php?action=goToPresentation"); header("Location: index.php?action=goToPresentation");
} }

@ -1,6 +1,9 @@
<html> <html>
<?php header("Location: index.php?action=queuing"); ?>
<body> <body>
Queuing Queuing
</body> </body>
<?php
sleep(5);
header("Location: index.php?action=queuing");
?>
</html> </html>
Loading…
Cancel
Save