From: Matteo Nastasi (mop) Date: Mon, 30 Jun 2008 21:19:03 +0000 (+0000) Subject: stats, printf sanification X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=15f97d0b5822a3fed34ec24b6a895da64b024d9a;p=brisk.git stats, printf sanification --- diff --git a/web/briskin5/index_wr.php b/web/briskin5/index_wr.php index c85147b..9d5b463 100644 --- 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; - $table->old_reason = sprintf("Ha lasciato %s perche` 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); @@ -445,6 +445,10 @@ else if ($user->stat == 'table') { 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 */ /* ************************************************ */