X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fbriskin5%2Findex_wr.php;h=be76b5880de0d0af59de1cb496ee760b78163f3a;hb=9918aa2a495f764fe4e227f04daff62ca59419d5;hp=fbc37c522f4ef09bbc157df4fb692bfc5325ab70;hpb=8ef84c5d0813096c4cc6cd05e3f213118ba8a33b;p=brisk.git diff --git a/web/briskin5/index_wr.php b/web/briskin5/index_wr.php index fbc37c5..be76b58 100644 --- a/web/briskin5/index_wr.php +++ b/web/briskin5/index_wr.php @@ -2,7 +2,7 @@ /* * brisk - index_wr.php * - * Copyright (C) 2006-2011 Matteo Nastasi + * Copyright (C) 2006-2012 Matteo Nastasi * mailto: nastasi@alternativeoutput.it * matteo.nastasi@milug.org * web: http://www.alternativeoutput.it @@ -73,9 +73,11 @@ function bin5_index_wr_main(&$bri, $remote_addr, $get, $post, $cookie) log_wr('POSTSPLIT: '.$argz[0].' user->stat: ['.$user->stat.']'); log_wr($user->step, 'bin::index_wr.php: after get_user()'); + + $user->lacc = $curtime; if ($argz[0] == 'ping') { - $user->lacc = $curtime; + log_wr("PING RECEIVED"); } else if (false && $argz[0] == 'shutdown') { log_auth($user_cur->sess, "Shutdown session. delegate to room gc the autologout"); @@ -109,8 +111,6 @@ function bin5_index_wr_main(&$bri, $remote_addr, $get, $post, $cookie) $bri->chatt_send(&$user,$mesg); } else if ($argz[0] == 'preferences_update') { - GLOBAL $CO_bin5_pref_ring_endauct; - log_wr("PER DI PREFERENCES_UPDATE"); if ($CO_bin5_pref_ring_endauct == "true") @@ -177,7 +177,8 @@ function bin5_index_wr_main(&$bri, $remote_addr, $get, $post, $cookie) $table->mult += 1; $table->old_reason = sprintf("Ha lasciato %s perché aveva al massimo 2 punti.", xcape($user->name)); - $table->game_next(); + // Non si cambia mazzo se si abbandona la partita + // $table->game_next(); $table->game_init(&$bri->user); for ($i = 0 ; $i < BIN5_PLAYERS_N ; $i++) {