projects
/
brisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update infos
[brisk.git]
/
web
/
briskin5
/
index_wr.php
diff --git
a/web/briskin5/index_wr.php
b/web/briskin5/index_wr.php
index
c85147b
..
9d5b463
100644
(file)
--- a/
web/briskin5/index_wr.php
+++ b/
web/briskin5/index_wr.php
@@
-150,7
+150,7
@@
else if ($user->stat == 'table') {
log_wr(sprintf("GIOCO FINITO !!!"));
$table->mult *= 2;
log_wr(sprintf("GIOCO FINITO !!!"));
$table->mult *= 2;
- $table->old_reason = sprintf("Ha lasciato %s perch
e` aveva al massimo 2 punti.", $user->name
);
+ $table->old_reason = sprintf("Ha lasciato %s perch
é aveva al massimo 2 punti.", xcape($user->name)
);
$table->game_next();
$table->game_init(&$bri->user);
$table->game_next();
$table->game_init(&$bri->user);
@@
-445,6
+445,10
@@
else if ($user->stat == 'table') {
if ($table->turn == (BRISKIN5_PLAYERS_N * 8)) { /* game finished */
log_wr(sprintf("GIOCO FINITO !!!"));
if ($table->turn == (BRISKIN5_PLAYERS_N * 8)) { /* game finished */
log_wr(sprintf("GIOCO FINITO !!!"));
+ $plist = "$table->table_token|$user->table|$table->player_n";
+ $curtime = time();
+ log_legal($curtime, $user->sess, $user->name, "STAT:FINISH_GAME", $plist);
+
/* ************************************************ */
/* PRIMA LA PARTE PER LO SHOW DI CHI HA VINTO */
/* ************************************************ */
/* ************************************************ */
/* PRIMA LA PARTE PER LO SHOW DI CHI HA VINTO */
/* ************************************************ */