Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mathieu Loiseau
GameOfWords
Commits
27bc247a
Commit
27bc247a
authored
May 09, 2017
by
Mathieu Loiseau
Browse files
recupScore a.k.a the old notification system
parent
20d92be3
Changes
6
Hide whitespace changes
Inline
Side-by-side
controllers/diviner.result.class.php
View file @
27bc247a
...
...
@@ -52,8 +52,6 @@ class diviner_result
require_once
(
"./controllers/traces.handler.class.php"
);
$th
=
new
TracesHandler
();
$th
->
augur_win
(
$this
->
recording_id
,
$this
->
duration
);
//for dynamic notification don't want to take the time to understand them…
$_SESSION
[
"notif"
][
"notification_error"
][
"Devin"
]
=
'diviner_timeout'
;
//used in view
$tmpRecording
=
new
Recording
(
$this
->
recording_id
);
$this
->
oracle
=
$tmpRecording
->
get_oracle_id
();
...
...
@@ -68,7 +66,7 @@ class diviner_result
private
function
display
()
{
//for dynamic notification don't want to take the time to understand them…
$_SESSION
[
"notif"
][
"notification_done"
][
"
D
evin"
]
=
'points'
;
$_SESSION
[
"notif"
][
"notification_done"
][
"
d
evin"
]
=
'points'
;
include
(
'./views/diviner.result.html'
);
return
true
;
}
...
...
controllers/diviner.timeout.class.php
View file @
27bc247a
...
...
@@ -80,7 +80,7 @@ class diviner_timeout
}
$th
->
augur_loss
(
$this
->
partieID
,
$this
->
rec
->
get_id
(),
$duration
);
//for dynamic notification don't want to take the time to understand them…
$_SESSION
[
"notif"
][
"notification_error"
][
"
D
evin"
]
=
'diviner_timeout'
;
$_SESSION
[
"notif"
][
"notification_error"
][
"
d
evin"
]
=
'diviner_timeout'
;
return
false
;
}
...
...
controllers/druid.arbitrage.class.php
View file @
27bc247a
...
...
@@ -137,7 +137,7 @@ class druid_arbitrage
//could change $this->invalidate to validate…
$th
->
druid_validate
(
$this
->
enregistrement
,
!
$this
->
invalidate
(),
$this
->
revoke
);
//for dynamic notification don't want to take the time to understand them…
$_SESSION
[
"notif"
][
"notification_done"
][
"
D
ruide"
]
=
'pointsDruide'
;
$_SESSION
[
"notif"
][
"notification_done"
][
"
d
ruide"
]
=
'pointsDruide'
;
header
(
'Location: index.php?page.home.html'
);
}
return
true
;
...
...
controllers/oracle.alea.exist.class.php
View file @
27bc247a
...
...
@@ -59,7 +59,7 @@ class oracle_alea_exist
else
{
array_push
(
$this
->
errors
,
'noCardBD'
);
//for dynamic notification don't want to take the time to understand them…
$_SESSION
[
"notif"
][
"notification_error"
][
"
O
racle"
]
=
'noCardBD'
;
$_SESSION
[
"notif"
][
"notification_error"
][
"
o
racle"
]
=
'noCardBD'
;
$res
=
false
;
}
return
$res
;
...
...
controllers/oracle.result.class.php
View file @
27bc247a
...
...
@@ -45,11 +45,11 @@ class oracle_result
{
if
(
isset
(
$_POST
[
'submit_form'
])
)
{
//for dynamic notification don't want to take the time to understand them…
$_SESSION
[
"notif"
][
"notification_done"
][
"
O
racle"
]
=
'pointsOracle'
;
$_SESSION
[
"notif"
][
"notification_done"
][
"
o
racle"
]
=
'pointsOracle'
;
}
else
{
//for dynamic notification don't want to take the time to understand them…
$_SESSION
[
"notif"
][
"notification_error"
][
"
O
racle"
]
=
'giveUpOracle'
;
$_SESSION
[
"notif"
][
"notification_error"
][
"
o
racle"
]
=
'giveUpOracle'
;
}
return
true
;
...
...
models/RecupScore.php
View file @
27bc247a
...
...
@@ -12,14 +12,17 @@
$langue
=
$_SESSION
[
"langDevin"
];
}
$roleUt
=
"score"
.
$role
;
$roleUt
=
"score
_
"
.
$role
;
$sql
=
'SELECT '
.
$roleUt
.
' FROM `s
core
` WHERE `userid`="'
.
$user
->
id
.
'" AND langue="'
.
$lang_iso
->
french_for
(
$langue
)
.
'"'
;
$sql
=
'SELECT
`
'
.
$roleUt
.
'
`
FROM `s
tats
` WHERE `userid`="'
.
$user
->
id
.
'" AND langue="'
.
$lang_iso
->
french_for
(
$langue
)
.
'"'
;
$res
=
$db
->
query
(
$sql
);
$resultat
=
mysqli_fetch_assoc
(
$res
);
$resultat
=
'err'
;
if
(
$db
->
query
(
$sql
)){
$resultat
=
$db
->
fetch_assoc
(
$res
);
$resultat
=
$resultat
[
$roleUt
];
}
return
$resultat
[
$roleUt
]
;
return
$resultat
;
}
?>
Write
Preview
Supports
Markdown
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