X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Findex_wr.php;h=5f901f51a8f12e485b24c7406949a22938fc6f48;hb=ef0eff447cc1d588c95b9b6bfc5da4cb14ba7af6;hp=ca9f78cc7596f80b12d237be662a7bd620e1fca7;hpb=15771956de22e6bc437f3ed2d4e503e3384ebd4f;p=brisk.git diff --git a/web/index_wr.php b/web/index_wr.php index ca9f78c..5f901f5 100644 --- a/web/index_wr.php +++ b/web/index_wr.php @@ -60,7 +60,23 @@ if ($argz[0] == 'shutdown') { log_rd2($sess, "SHUTDOWN FROM WHAT ???"); } else if ($user->stat == 'room') { - if ($argz[0] == 'logout') { + if ($argz[0] == 'help') { + $user->comm[$user->step % COMM_N] = "gst.st = ".($user->step+1)."; "; + $user->comm[$user->step % COMM_N] .= show_notify(str_replace("\n", " ", $G_room_help), 0, "torna ai tavoli", 600, 500); + + log_wr($sess, $user->comm[$user->step % COMM_N]); + $user->step++; + + } + else if ($argz[0] == 'about') { + $user->comm[$user->step % COMM_N] = "gst.st = ".($user->step+1)."; "; + $user->comm[$user->step % COMM_N] .= show_notify(str_replace("\n", " ", $G_room_about), 0, "torna ai tavoli", 400, 200); + + log_wr($sess, $user->comm[$user->step % COMM_N]); + $user->step++; + + } + else if ($argz[0] == 'logout') { $user->comm[$user->step % COMM_N] = "gst.st = ".($user->step+1)."; "; $user->comm[$user->step % COMM_N] .= sprintf('postact_logout();'); $user->the_end = TRUE; @@ -89,9 +105,7 @@ else if ($user->stat == 'room') { // set new status $user->subst = "sitdown"; $user->table = $table_idx; - $user->table_pos = $table->player_n; - $table->player[$table->player_n] = $idx; - $table->player_n++; + $user->table_pos = $table->user_add($idx); if ($table->player_n == PLAYERS_N) { // Start game for this table. @@ -154,10 +168,7 @@ else if ($user->stat == 'table' && $user->subst == 'asta') { log_wr($sess, "PER DI TABLEINFO"); $user->comm[$user->step % COMM_N] = "gst.st = ".($user->step+1)."; "; $user->comm[$user->step % COMM_N] .= show_table_info(&$bri, &$table, $user->table_pos); - log_wr($sess, $user->comm[$user->step % COMM_N]); - - $user->step++; } else if ($argz[0] == 'chatt') {