ServeurDeTest
johan 2 years ago
parent dffcca8afd
commit f9c5c7cd85

@ -7,7 +7,7 @@ class UserController
try { try {
global $dsn, $rep, $vues, $error; global $dsn, $rep, $vues, $error;
$action = $_REQUEST['action']; $action = $_REQUEST['action'];
//register_event_handler('add_to_queue',array($this,"onAddToQueue")); echo $action;
switch ($action) { switch ($action) {
case NULL: case NULL:
$this->goToHome(); $this->goToHome();
@ -210,6 +210,7 @@ class UserController
'<script> '<script>
io.to($userGroup).emit("launchGame"); io.to($userGroup).emit("launchGame");
<script/>'; <script/>';
} catch (Exception $e) { } catch (Exception $e) {
$error = $e->getMessage(); $error = $e->getMessage();
require($rep . $vues['erreur']); require($rep . $vues['erreur']);

Loading…
Cancel
Save