X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Findex_wr.php;h=d7ccac2d88a892f8447d6baa61de40422b08dbdc;hb=408f27514f5af91523b71c284cff0b292865e867;hp=d4138eec084d9b334e29ce636217a4f02c6745b3;hpb=19ce01ca763746cd34934940c4c4ed962e2449bc;p=brisk.git diff --git a/web/index_wr.php b/web/index_wr.php index d4138ee..d7ccac2 100644 --- a/web/index_wr.php +++ b/web/index_wr.php @@ -56,13 +56,19 @@ $argz = explode('|', $mesg); log_wr('POSTSPLIT: '.$argz[0]); if ($argz[0] == 'shutdown') { - log_auth($user_cur->sess, "Shutdown session."); + log_auth($user->sess, "Shutdown session."); + + $user->reset(); + /* factorized with ->reset() $tmp_sess = $user->sess; $user->sess = ""; step_unproxy($tmp_sess); $user->name = ""; + while (array_pop($user->comm) != NULL); + $user->step = 0; $user->the_end = FALSE; - + */ + log_rd2("AUTO LOGOUT."); if ($user->subst == 'sitdown' || $user->stat == 'table') $room->room_wakeup(&$user); @@ -190,6 +196,10 @@ else if ($user->stat == 'room') { log_wr("Pre if!"); +// ARRAY_POP DISABLED +// // 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);