- $pt_cur = calculate_points(&$table);
-
- $plist = "$table->table_token|$user->table_orig|$table->player_n";
- $ucodes = array();
- for ($i = 0 ; $i < BIN5_PLAYERS_N ; $i++) {
- $user_cur = &$bri->user[$table->player[$i]];
- $plist .= '|'.xcapelt($user_cur->name).'|'.$pt_cur[$i];
- $ucodes[$i] = $user_cur->code_get();
- }
- for ($i = 0 ; $i < BIN5_PLAYERS_N ; $i++) {
- $plist .= '|'.xcapelt($ucodes[$i]);
- }
- 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");
-
- if (($bdb = BriskDB::create()) != FALSE) {
- $bdb->bin5_points_save($curtime, $table->table_token, $user->table_orig, $ucodes, $pt_cur);
- unset($bdb);
- }
- else {
- log_points($remote_addr, $curtime, $user, "STAT:BRISKIN5:FINISH_GAME", "DATABASE CONNECTION FAILED");
+ /* $pt_cur = calculate_points(&$table); */
+ /* $table->game_next(1); */
+
+ /* $plist = "$table->table_token|$user->table_orig|$table->player_n"; */
+ /* $ucodes = array(); */
+ /* for ($i = 0 ; $i < BIN5_PLAYERS_N ; $i++) { */
+ /* $user_cur = &$bri->user[$table->player[$i]]; */
+ /* $plist .= '|'.xcapelt($user_cur->name).'|'.$pt_cur[$i]; */
+ /* $ucodes[$i] = $user_cur->code_get(); */
+ /* } */
+ /* for ($i = 0 ; $i < BIN5_PLAYERS_N ; $i++) { */
+ /* $plist .= '|'.xcapelt($ucodes[$i]); */
+ /* } */
+ /* 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"); */
+
+ /* if (($bdb = BriskDB::create()) != FALSE) { */
+ /* $bdb->bin5_points_save($curtime, $table, $user->table_orig, $ucodes, $pt_cur); */
+ /* unset($bdb); */
+ /* } */
+ /* else { */
+ /* log_points($remote_addr, $curtime, $user, "STAT:BRISKIN5:FINISH_GAME", "DATABASE CONNECTION FAILED"); */
+ /* } */
+ /* log_points($curtime, $user, "STAT:BRISKIN5:FINISH_GAME", $plist); */
+ /* } */
+
+ /* $table->game_init(&$bri->user); */
+
+ if ($table->rules_engine(&$bri, $curtime, BIN5_RULES_FINISH, $user)) {
+ for ($i = 0 ; $i < BIN5_PLAYERS_N ; $i++) {
+ $user_cur = &$bri->user[$table->player[$i]];
+ $retar[$i] .= show_table(&$bri,&$user_cur,$user_cur->step+1,TRUE, TRUE);