X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Findex_wr.php;h=6995a18c04c58c64181f3f724fdaa8f5fd63d21a;hb=8ef84c5d0813096c4cc6cd05e3f213118ba8a33b;hp=ea74d07d189bedeaf66252b3d14c3fa3a5888782;hpb=59405cb2d266e88d266a0e7407a20929368733d1;p=brisk.git diff --git a/web/index_wr.php b/web/index_wr.php index ea74d07..6995a18 100644 --- a/web/index_wr.php +++ b/web/index_wr.php @@ -81,7 +81,7 @@ $mlang_indwr = array( 'btn_backtotab' => array( 'it' => 'Torna ai tavoli.', function index_wr_main(&$room, $remote_addr, $get, $post, $cookie) { - GLOBAL $G_black_list, $G_lang, $G_room_help, $G_room_about, $mlang_indwr; + GLOBAL $G_shutdown, $G_black_list, $G_lang, $G_room_help, $G_room_about, $mlang_indwr; log_load("index_wr.php"); @@ -199,7 +199,10 @@ function index_wr_main(&$room, $remote_addr, $get, $post, $cookie) log_wr($user->step, 'index_wr.php: after get_user()'); - if ($argz[0] == 'shutdown') { + if ($argz[0] == 'ping') { + $user->lacc = $curtime; + } + else if ($argz[0] == 'shutdown') { log_auth($user->sess, "Shutdown session."); $user->reset(); @@ -346,7 +349,7 @@ function index_wr_main(&$room, $remote_addr, $get, $post, $cookie) $dobreak = FALSE; do { - log_wr("INFO:SKIP:argz == poll name: [".$cli_name."] AUTH: ".($user->flags & USER_FLAG_AUTH)); + log_wr("INFO:SKIP:argz == poll name: [".$cli_poll_name."] AUTH: ".($user->flags & USER_FLAG_AUTH)); if (($user->flags & USER_FLAG_AUTH) != USER_FLAG_AUTH) { // MLANG: Per partecipare al sondaggio devi essere autenticato. $mesg_to_user = sprintf('chatt_sub("%s", [2, "%s"],"%s");', $dt, NICKSERV, $mlang_indwr['pollmust'][$G_lang]); @@ -572,8 +575,6 @@ function index_wr_main(&$room, $remote_addr, $get, $post, $cookie) if ($table->player_n == PLAYERS_N) { log_wr("WARN:FSM: Sitdown unreachable, table full."); return FALSE; - Room::unlock_data($sem); - exit; } // set new status @@ -595,7 +596,7 @@ function index_wr_main(&$room, $remote_addr, $get, $post, $cookie) // // Create new spawned table - $bri_sem = Bin5::lock_data(TRUE, $table_idx); + // $bri_sem = Bin5::lock_data(TRUE, $table_idx); $table_token = uniqid(""); $room->table[$table_idx]->table_token = $table_token; $room->table[$table_idx]->table_start = $curtime; @@ -658,6 +659,7 @@ function index_wr_main(&$room, $remote_addr, $get, $post, $cookie) $user_cur->step_inc(); } log_wr("presave bri"); + $room->match_add($table_idx, $bri); log_wr("postsave bri"); } // change room