X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Findex_wr.php;h=c80396d7ae889d25aa462b9ed7d68aabfafb20b0;hb=b804ca474cbf9e02703043b2d6e41cf52c9889ed;hp=3e2c027baa5621812bee2fbb627131dd9e06cc29;hpb=196926208788f38d8ca9813860f59bf2c4a33d2e;p=brisk.git diff --git a/web/index_wr.php b/web/index_wr.php index 3e2c027..c80396d 100644 --- a/web/index_wr.php +++ b/web/index_wr.php @@ -116,7 +116,7 @@ else if ($user->stat == 'room') { /* TODO: refact to a function */ if ($user->bantime > $user->laccwr) { $user->comm[$user->step % COMM_N] = "gst.st = ".($user->step+1)."; "; - $user->comm[$user->step % COMM_N] .= show_notify("
Ti sei alzato da un tavolo senza il consenso degli altri giocatori. Dovrai aspettare ancora ".secstoword($user->bantime - $user->laccwr)." prima di poterti sedere nuovamente.", 2000, "Torna in piedi.", 400, 100); + $user->comm[$user->step % COMM_N] .= show_notify("
Ti sei alzato da un tavolo senza il consenso degli altri giocatori. Dovrai aspettare ancora ".secstoword($user->bantime - $user->laccwr)." prima di poterti sedere nuovamente.", 2000, "resta in piedi.", 400, 100); $user->step_inc(); Room::save_data($room); @@ -190,6 +190,8 @@ else if ($user->stat == 'room') { log_wr("Pre if!"); + // CHECK + while (array_pop($user_cur->comm) != NULL); $ret = ""; $ret .= sprintf('gst.st_loc++; gst.st=%d; createCookie("table_idx", %d, 24*365, cookiepath); createCookie("table_token", "%s", 24*365, cookiepath); the_end=true; window.onunload = null ; document.location.assign("briskin5/index.php");|', $user_cur->step+1, $table_idx, $table_token);