X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fbriskin5%2Findex_wr.php;h=9b269f7f74e0f5dd01b32bc02cdb0cfa38b67df0;hb=abe1151407fb084089a8dfa12ea081b95630a1fd;hp=48cc433421ed03639d8f3c421fbaca5ccc8b61f9;hpb=47696cec5d0749f2ff8c4575e942902c5522d06c;p=brisk.git diff --git a/web/briskin5/index_wr.php b/web/briskin5/index_wr.php index 48cc433..9b269f7 100644 --- a/web/briskin5/index_wr.php +++ b/web/briskin5/index_wr.php @@ -2,7 +2,7 @@ /* * brisk - index_wr.php * - * Copyright (C) 2006-2009 Matteo Nastasi + * Copyright (C) 2006-2011 Matteo Nastasi * mailto: nastasi@alternativeoutput.it * matteo.nastasi@milug.org * web: http://www.alternativeoutput.it @@ -20,10 +20,11 @@ * not, write to the Free Software Foundation, Inc, 59 Temple Place - * Suite 330, Boston, MA 02111-1307, USA. * - * $Id$ - * */ + +$G_base = "../"; + require_once("../Obj/brisk.phh"); // require_once("../Obj/proxyscan.phh"); require_once("Obj/briskin5.phh"); @@ -49,6 +50,8 @@ log_wr('COMM: '.$mesg); if ($table_idx < 0 || $table_idx >= TABLE_N) exit; +log_mop(0, 'bin::index_wr.php: COMM: '.xcapemesg($mesg)); + $sem = Briskin5::lock_data($table_idx); if (($bri = &Briskin5::load_data($table_idx,$table_token)) == FALSE) { @@ -67,8 +70,9 @@ if (($user = &$bri->get_user($sess, &$idx)) == FALSE) { $argz = explode('|', $mesg); log_wr('POSTSPLIT: '.$argz[0]); +log_mop($user->step, 'bin::index_wr.php: after get_user()'); -if ($argz[0] == 'shutdown') { +if (false && $argz[0] == 'shutdown') { log_auth($user_cur->sess, "Shutdown session. delegate to room gc the autologout"); log_rd2("bin5/index_wr.php: AUTO LOGOUT."); @@ -165,7 +169,7 @@ else if ($user->stat == 'table') { log_wr(sprintf("GIOCO FINITO !!!")); - $table->mult *= 2; + $table->mult += 1; $table->old_reason = sprintf("Ha lasciato %s perché aveva al massimo 2 punti.", xcape($user->name)); $table->game_next(); @@ -278,7 +282,7 @@ else if ($user->stat == 'table') { log_wr(sprintf("GIOCO FINITO !!!")); $table->old_reason = "Hanno passato tutti."; - $table->mult *= 2; + $table->mult += 1; $table->game_next(); $table->game_init(&$bri->user); @@ -483,7 +487,7 @@ else if ($user->stat == 'table') { } log_legal($curtime, $user, "STAT:BRISKIN5:FINISH_GAME", $plist); if ($user->table_orig < TABLES_AUTH_N) - log_points($curtime, xcapelt($user), "STAT:BRISKIN5:FINISH_GAME", $plist); + log_points($curtime, xcapelt($user->name), "STAT:BRISKIN5:FINISH_GAME", $plist); $table->game_next(); $table->game_init(&$bri->user); @@ -515,6 +519,7 @@ else if ($user->stat == 'table') { } log_wr("before save data"); Briskin5::save_data($bri); +log_mop($user->step, 'bin::index_wr.php: after save_data()'); Briskin5::unlock_data($sem); exit;