X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Findex_wr.php;h=b269c3b22c22b95e787ccfa6f6bd34a613c3121c;hb=ee1b4df5c8669ddc8749520085f4fb7525f9acd8;hp=b7cea12c8f9ea691a6befd06b46f6d9402ab4731;hpb=f437d09d029450191acaa44b647e64a4e6a0b272;p=brisk.git diff --git a/web/index_wr.php b/web/index_wr.php index b7cea12..b269c3b 100644 --- a/web/index_wr.php +++ b/web/index_wr.php @@ -161,8 +161,9 @@ else if ($user->stat == 'room') { $bri_table->game_init(&$bri->user); $curtime = time(); - - // init spawned users + // + // Init spawned users. + // for ($i = 0 ; $i < $table->player_n ; $i++) { $bri_user_cur = &$bri->user[$i]; $user_cur = &$room->user[$table->player[$i]]; @@ -183,7 +184,7 @@ else if ($user->stat == 'room') { log_wr($sess, "Pre if!"); $ret = ""; - $ret .= sprintf('gst.st_loc++; gst.st=%d; the_end=true; window.onunload = null ; document.location.assign("briskin5/briskin5.php?table_idx=%d");|', $user_cur->step+1, $table_idx); + $ret .= sprintf('gst.st_loc++; gst.st=%d; createCookie("table_idx", %d, 24*365, cookiepath); the_end=true; window.onunload = null ; document.location.assign("briskin5/briskin5.php");|', $user_cur->step+1, $table_idx); $user_cur->comm[$user_cur->step % COMM_N] = $ret; $user_cur->trans_step = $user_cur->step + 1;