X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Findex_wr.php;h=7fbf6a383f16ede6d412556aaef7fb73895c2fd8;hb=b1ab2024d5e2e81099c704a6b78ef9d5476c5f62;hp=b3362fed77bd517ddc8adb28470bcab799ba3920;hpb=64324151dd1c46452714cadd04efa259d08973b0;p=brisk.git diff --git a/web/index_wr.php b/web/index_wr.php index b3362fe..7fbf6a3 100644 --- a/web/index_wr.php +++ b/web/index_wr.php @@ -60,6 +60,8 @@ if ($argz[0] == 'shutdown') { log_rd2($sess, "SHUTDOWN FROM WHAT ???"); } else if ($user->stat == 'room') { + $user->laccwr = time(); + 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); @@ -113,7 +115,8 @@ else if ($user->stat == 'room') { $table->init(); $table->game_init(&$bri); - + $curtime = time(); + for ($i = 0 ; $i < $table->player_n ; $i++) { $user_cur = &$bri->user[$table->player[$i]]; log_wr($sess, "Pre if!"); @@ -127,6 +130,7 @@ else if ($user->stat == 'room') { $user_cur->stat = 'table'; $user_cur->subst = 'asta'; + $user_cur->laccwr = $curtime; $user_cur->step++; $user_cur->comm[$user_cur->step % COMM_N] = show_table(&$bri,&$user_cur,$user_cur->step+1,TRUE, FALSE); @@ -156,6 +160,7 @@ else if ($user->stat == 'room') { * * ***************/ else if ($user->stat == 'table' && $user->subst == 'asta') { + $user->laccwr = time(); $table = &$bri->table[$user->table]; if ($argz[0] == 'logout') {