Ajout action goToQueue

ServeurDeTest
johan 2 years ago
parent edb6e5b6ad
commit 06ebfb27e0

@ -72,10 +72,11 @@ class UserModel
}
$this->utilisateur_gateway->addToQueue($_SESSION['utilisateur'],$partie);
if ($this->utilisateur_gateway->queueFilled())
{
echo "Partie is launched"
// $this->launchGame();
/*$this->launchGame();*/
}
}
public function logout()
{
$_SESSION['role'] = 'visitor';

@ -59,7 +59,7 @@
<a
id="multi"
class="mb-3 text-uppercase d-flex justify-content-center align-items-center"
href="./Duel/Duel.html"
href="index.php?action=goToQueue"
style="width: 260px; height: 50px"
>
<span></span>

Loading…
Cancel
Save