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
314dd21
..
9d5b463
100644
(file)
--- a/
web/briskin5/index_wr.php
+++ b/
web/briskin5/index_wr.php
@@
-2,7
+2,10
@@
/*
* brisk - index_wr.php
*
/*
* brisk - index_wr.php
*
- * Copyright (C) 2006 matteo.nastasi@milug.org
+ * Copyright (C) 2006-2008 Matteo Nastasi
+ * mailto: nastasi@alternativeoutput.it
+ * matteo.nastasi@milug.org
+ * web: http://www.alternativeoutput.it
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@
-147,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);
@@
-408,11
+411,10
@@
else if ($user->stat == 'table') {
$turn_nex = ($table->gstart + $table->turn) % BRISKIN5_PLAYERS_N;
log_wr(sprintf("The winner is: [%d] [%s]", $winner, $bri->user[$table->player[$winner]]->name));
$turn_nex = ($table->gstart + $table->turn) % BRISKIN5_PLAYERS_N;
log_wr(sprintf("The winner is: [%d] [%s]", $winner, $bri->user[$table->player[$winner]]->name));
- $card_take = sprintf("sleep(gst,2000);|cards_take(%d);",
- $winner, $winner);
- $player_cur = "remark_off();" . $card_take . "|";
+ $card_take = sprintf("sleep(gst,2000);|cards_take(%d);|", $winner);
+ $player_cur = "remark_off();" . $card_take;
if ($turn_cur != $turn_nex)
if ($turn_cur != $turn_nex)
- $player_nex = $card_play . $card_take
. "|"
;
+ $player_nex = $card_play . $card_take;
else
$player_nex = "";
if ($table->turn < (BRISKIN5_PLAYERS_N * 8)) /* game NOT finished */
else
$player_nex = "";
if ($table->turn < (BRISKIN5_PLAYERS_N * 8)) /* game NOT finished */
@@
-440,12
+442,13
@@
else if ($user->stat == 'table') {
$retar[$i] = $ret;
}
$retar[$i] = $ret;
}
-
-
-
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 */
/* ************************************************ */