Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
projet-cdaw
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Thibaut Felten
projet-cdaw
Commits
6b7bb5c0
Commit
6b7bb5c0
authored
Dec 04, 2020
by
Robin Borgogno
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enlevage des console.log
parent
356da694
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1 addition
and
8 deletions
+1
-8
ResultController.class.php
backend/MVC/controller/ResultController.class.php
+0
-3
Online.class.php
backend/MVC/model/Online.class.php
+0
-4
Role.class.php
backend/MVC/model/Role.class.php
+0
-0
Role.sql.php
backend/MVC/sql/Role.sql.php
+0
-0
JoinPrivate.vue
frontend/src/views/JoinPrivate.vue
+1
-1
No files found.
backend/MVC/controller/ResultController.class.php
View file @
6b7bb5c0
...
...
@@ -36,9 +36,6 @@ class ResultController extends Controller {
case
'OPTIONS'
:
return
Response
::
okresponse
(
json_encode
(
"OPTIONS"
));
// $data = json_decode(file_get_contents("php://input"),TRUE);
// return $this->deleteLine($data);
// break;
}
return
Response
::
errorResponse
(
"unsupported parameters or method in game"
);
...
...
backend/MVC/model/Online.class.php
View file @
6b7bb5c0
...
...
@@ -20,8 +20,6 @@ class Online extends Model {
$idmin
=
$res
[
0
]
->
USER_ID
;
if
(
$id
==
$idmin
){
$game
=
Online
::
getIdGame
();
// print_r($game);
// exit;
if
(
count
(
$game
)
==
1
){
Online
::
deleteUserOnline
(
array
(
":id"
=>
$id
));
Game
::
addUserGame
(
array
(
":GAME_ID"
=>
$game
[
0
]
->
GAME_ID
,
":USER_ID"
=>
$id
));
...
...
@@ -30,8 +28,6 @@ class Online extends Model {
else
{
$idgame
=
Game
::
createGame
(
array
(
":GAME_DESC"
=>
"Desc"
,
":private"
=>
"0"
));
Online
::
deleteUserOnline
(
array
(
":id"
=>
$id
));
// print_r($idgame);
// exit;
Game
::
addUserGame
(
array
(
":GAME_ID"
=>
$idgame
[
0
]
->
id
,
":USER_ID"
=>
$id
));
return
$idgame
[
0
]
->
id
;
...
...
backend/MVC/model/Role.class.php
deleted
100644 → 0
View file @
356da694
backend/MVC/sql/Role.sql.php
deleted
100644 → 0
View file @
356da694
frontend/src/views/JoinPrivate.vue
View file @
6b7bb5c0
...
...
@@ -76,7 +76,7 @@ export default {
method
:
'POST'
,
body
:
JSON
.
stringify
(
data
)
};
game
.
id
=
this
.
idgame
;
let
response
=
await
fetch
(
url
,
params
)
await
fetch
(
url
,
params
)
this
.
$router
.
push
(
"/playerPrivate"
)
}
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment