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); $this->utilisateur_gateway->addToQueue($_SESSION['utilisateur'],$partie);
if ($this->utilisateur_gateway->queueFilled()) if ($this->utilisateur_gateway->queueFilled())
{
echo "Partie is launched" echo "Partie is launched"
// $this->launchGame(); /*$this->launchGame();*/
}
} }
public function logout() public function logout()
{ {
$_SESSION['role'] = 'visitor'; $_SESSION['role'] = 'visitor';

@ -59,7 +59,7 @@
<a <a
id="multi" id="multi"
class="mb-3 text-uppercase d-flex justify-content-center align-items-center" 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" style="width: 260px; height: 50px"
> >
<span></span> <span></span>

Loading…
Cancel
Save