X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fbriskin5%2Findex_wr.php;h=4c6f0c6f4af097c11761aadc4b53eac0c63d97af;hb=a00b90507135651af999d563310a85faf82b4463;hp=9d5b4633c91c337b7366520241ad0f62436712d7;hpb=ba124be15839e2a62fa793b70869e0209f8daf90;p=brisk.git diff --git a/web/briskin5/index_wr.php b/web/briskin5/index_wr.php index 9d5b463..4c6f0c6 100644 --- a/web/briskin5/index_wr.php +++ b/web/briskin5/index_wr.php @@ -2,7 +2,7 @@ /* * brisk - index_wr.php * - * Copyright (C) 2006-2008 Matteo Nastasi + * Copyright (C) 2006-2009 Matteo Nastasi * mailto: nastasi@alternativeoutput.it * matteo.nastasi@milug.org * web: http://www.alternativeoutput.it @@ -120,8 +120,12 @@ else if ($user->stat == 'table') { $logout_cont = FALSE; } } - else - $user->bantime = $user->laccwr + BAN_TIME; + else { + require_once("../Obj/hardban.phh"); + Hardbans::add(($user->flags & USER_FLAG_AUTH ? $user->name : FALSE), + $user->ip, $user->sess, $user->laccwr + BAN_TIME); + } + // $user->bantime = $user->laccwr + BAN_TIME; if ($logout_cont == TRUE) { $bri->table_wakeup(&$user); @@ -150,7 +154,7 @@ else if ($user->stat == 'table') { log_wr(sprintf("GIOCO FINITO !!!")); $table->mult *= 2; - $table->old_reason = sprintf("Ha lasciato %s perché aveva al massimo 2 punti.", xcape($user->name)); + $table->old_reason = sprintf("Ha lasciato %s perché aveva al massimo 2 punti.", xcape($user->name)); $table->game_next(); $table->game_init(&$bri->user); @@ -286,9 +290,11 @@ else if ($user->stat == 'table') { $table->asta_pla[$i] = FALSE; } else { - //"gst.st = ".($user->step+1)."; dispose_asta(".($table->asta_card + 1).",".-($table->asta_pnt).", true); remark_off();"; - $user->comm[$user->step % COMM_N] = sprintf( "gst.st = %d; dispose_asta(%d, %d, false); remark_off();", $user->step+1, $table->asta_card + 1,-($table->asta_pnt)); + /* + $user->comm[$user->step % COMM_N] = sprintf( "gst.st = %d; dispose_asta(%d, %d, false); remark_off();", + $user->step+1, $table->asta_card + 1,-($table->asta_pnt)); $user->step_inc(); + */ for ($i = 1 ; $i < BRISKIN5_PLAYERS_N ; $i++) { $chooser = ($table->gstart + $i) % BRISKIN5_PLAYERS_N; if ($table->asta_pla[$chooser]) { @@ -300,10 +306,11 @@ else if ($user->stat == 'table') { for ($i = 0 ; $i < BRISKIN5_PLAYERS_N ; $i++) { $user_cur = &$bri->user[$table->player[$i]]; - $ret = sprintf('gst.st = %d; %s', $user_cur->step+1, $showst); + $ret = sprintf('gst.st = %d; %s dispose_asta(%d, %d, false);', $user_cur->step+1, $showst, + $table->asta_card + 1,-($table->asta_pnt)); if ($i == $chooser) { - $ret .= "choose_seed(". $table->asta_card."); \$(\"asta\").style.visibility = \"hidden\"; remark_on();"; + $ret .= "choose_seed(". $table->asta_card."); remark_on();"; } else { $ret .= "remark_off();"; @@ -447,7 +454,7 @@ else if ($user->stat == 'table') { $plist = "$table->table_token|$user->table|$table->player_n"; $curtime = time(); - log_legal($curtime, $user->sess, $user->name, "STAT:FINISH_GAME", $plist); + log_legal($curtime, $user, "STAT:FINISH_GAME", $plist); /* ************************************************ */ /* PRIMA LA PARTE PER LO SHOW DI CHI HA VINTO */