/*
* 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;
$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++) {
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");