ServeurDeTest
johan 2 years ago
parent d32c77c3ee
commit 00849bd963

@ -1,11 +1,10 @@
<?php
require("server.js");
class UserController
{
function __construct()
{
try {
global $dsn, $rep, $vues, $error, $server;
global $dsn, $rep, $vues, $error;
$action = $_REQUEST['action'];
echo $action;
switch ($action) {
@ -206,8 +205,8 @@ class UserController
$model = new UserModel();
$model->addToQueue();
$userGroup = $model->findUserGroup();
$io = get_io();
$io->to($userGroup)->emit("launchGame");
//$io = get_io();
//$io->to($userGroup)->emit("launchGame");
} catch (Exception $e) {
$error = $e->getMessage();
require($rep . $vues['erreur']);

Loading…
Cancel
Save