Merge branch 'master' of https://codefirst.iut.uca.fr/git/nathan.boileau/Scripted
continuous-integration/drone/push Build is passing Details

ServeurDeTest
nathan boileau 2 years ago
commit e7dbd61c56

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

Loading…
Cancel
Save