X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fbriskin5%2Findex_wr.php;h=fbc37c522f4ef09bbc157df4fb692bfc5325ab70;hb=8ef84c5d0813096c4cc6cd05e3f213118ba8a33b;hp=d865972eff372a9922cecdaaca4875d659c540d3;hpb=64168bc6e7d5cfe46ac0120bb7b449b5d5f37c1b;p=brisk.git diff --git a/web/briskin5/index_wr.php b/web/briskin5/index_wr.php index d865972..fbc37c5 100644 --- a/web/briskin5/index_wr.php +++ b/web/briskin5/index_wr.php @@ -42,6 +42,7 @@ function bin5_index_wr_main(&$bri, $remote_addr, $get, $post, $cookie) { GLOBAL $G_base, $G_dbasetype; + $curtime = time(); if ($bri == NULL) { return FALSE; } @@ -73,7 +74,10 @@ function bin5_index_wr_main(&$bri, $remote_addr, $get, $post, $cookie) log_wr('POSTSPLIT: '.$argz[0].' user->stat: ['.$user->stat.']'); log_wr($user->step, 'bin::index_wr.php: after get_user()'); - if (false && $argz[0] == 'shutdown') { + if ($argz[0] == 'ping') { + $user->lacc = $curtime; + } + else if (false && $argz[0] == 'shutdown') { log_auth($user_cur->sess, "Shutdown session. delegate to room gc the autologout"); log_rd2("bin5/index_wr.php: AUTO LOGOUT."); @@ -481,7 +485,6 @@ function bin5_index_wr_main(&$bri, $remote_addr, $get, $post, $cookie) $pt_cur = calculate_points(&$table); $plist = "$table->table_token|$user->table_orig|$table->player_n"; - $curtime = time(); $ucodes = array(); for ($i = 0 ; $i < BIN5_PLAYERS_N ; $i++) { $user_cur = &$bri->user[$table->player[$i]];