X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fbriskin5%2Findex_wr.php;h=9f9764f6b0541058aed373d2f78468e677a6e28c;hb=1b6daccdeadaeb0d99bddaf9cb200d4c3806128c;hp=63c21f6d293b2c6ed3b81c2c6f6d38cb97c3fbea;hpb=0807954347e30ef73c91b9e5ce207971fb59e505;p=brisk.git diff --git a/web/briskin5/index_wr.php b/web/briskin5/index_wr.php index 63c21f6..9f9764f 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 @@ -38,10 +38,12 @@ require_once("Obj/briskin5.phh"); /* * MAIN */ -function bin5_index_wr_main(&$bri, $remote_addr, $get, $post, $cookie) +function bin5_index_wr_main(&$bri, $remote_addr_full, $get, $post, $cookie) { GLOBAL $G_base, $G_dbasetype; + $remote_addr = addrtoipv4($remote_addr_full); + $curtime = time(); if ($bri == NULL) { return FALSE; @@ -177,7 +179,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++) { @@ -494,7 +497,7 @@ function bin5_index_wr_main(&$bri, $remote_addr, $get, $post, $cookie) for ($i = 0 ; $i < BIN5_PLAYERS_N ; $i++) { $plist .= '|'.xcapelt($ucodes[$i]); } - log_legal($curtime, 'xxx', $user, "STAT:BRISKIN5:FINISH_GAME", $plist); + log_legal($curtime, $user->ip, $user, "STAT:BRISKIN5:FINISH_GAME", $plist); if ($user->table_orig < TABLES_AUTH_N) { require_once("../Obj/dbase_".$G_dbasetype.".phh");