stats, printf sanification
authorMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Mon, 30 Jun 2008 21:19:03 +0000 (21:19 +0000)
committerMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Mon, 30 Jun 2008 21:19:03 +0000 (21:19 +0000)
web/briskin5/index_wr.php

index c85147b..9d5b463 100644 (file)
@@ -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&eacute; 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    */
          /* ************************************************ */