X-Git-Url: https://mop.ddnsfree.com/gitweb/?p=brisk.git;a=blobdiff_plain;f=web%2Fbriskin5%2Findex_wr.php;h=ee5d30442c46e9ff794521f411582b56fc518485;hp=37fd4d453f081b607d8c91f5368315f6e7d2a770;hb=a4964f13c6c883a655937d85ae50d0e0aff09226;hpb=f9c487a0bdd7dfb71d73b248b2e7080c2f4451a2 diff --git a/web/briskin5/index_wr.php b/web/briskin5/index_wr.php index 37fd4d4..ee5d304 100644 --- a/web/briskin5/index_wr.php +++ b/web/briskin5/index_wr.php @@ -34,6 +34,7 @@ require_once("Obj/briskin5.phh"); function bin5_index_wr_main(&$bin5, $remote_addr_full, $get, $post, $cookie) { GLOBAL $G_base, $G_dbasetype, $G_ban_list, $G_black_list; + GLOBAL $mlang_indwr, $G_lang; $remote_addr = addrtoipv4($remote_addr_full); @@ -199,11 +200,10 @@ function bin5_index_wr_main(&$bin5, $remote_addr_full, $get, $post, $cookie) $again = FALSE; } else if ($a_card <= 9) { - if ($a_card >= 0 && $a_card < 9 && $a_card > $table->asta_card) + $ret_s = ""; + if ($table->rules->engine(&$bin5, $curtime, BIN5_RULES_ASTA, $user, $ret_s, $a_card, $a_pnt)) { $again = FALSE; - else if ($a_card == 9 && $a_pnt > ($table->asta_pnt >= 61 ? $table->asta_pnt : 60) && $a_pnt <= 120) - $again = FALSE; - + } if ($again == FALSE) { log_wr("NUOVI ORZI."); @@ -219,6 +219,9 @@ function bin5_index_wr_main(&$bin5, $remote_addr_full, $get, $post, $cookie) if ($again) { // Qualcosa non andato bene, rifare $ret = sprintf('gst.st = %d; asta_pnt_set(%d);', $user->step+1, ($table->asta_pnt > 60 ? $table->asta_pnt + 1 : 61) ); + if ($ret_s != "") { + $ret .= show_notify($ret_s, 0, $mlang_indwr['btn_close'][$G_lang], 400, 150); + } $user->comm[$user->step % COMM_N] = $ret; $user->step_inc();