X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Findex_wr.php;fp=web%2Findex_wr.php;h=bec14b75ade3ab04ea9ddb9cefed6effd273b0ef;hb=bd3aa68b123e6af44c44f3b155d280b40bbd7bd6;hp=28b476e7ade3f10cc60371f81ab28d1cb19d9a5a;hpb=8213ed93e33ca78165e8d957be2b00313c11f24b;p=brisk.git diff --git a/web/index_wr.php b/web/index_wr.php index 28b476e..bec14b7 100644 --- a/web/index_wr.php +++ b/web/index_wr.php @@ -129,9 +129,12 @@ function index_wr_main(&$brisk, $remote_addr_full, $get, $post, $cookie) log_load("index_wr.php"); $remote_addr = addrtoipv4($remote_addr_full); - if (($mesg = gpcs_var('mesg', $get, $post, $cookie)) === FALSE) + if (($mesg = gpcs_var('mesg', $get, $post, $cookie)) === FALSE) unset($mesg); + if (($cl_step = gpcs_var('stp', $get, NULL, NULL)) === FALSE) + $cl_step = -2; + if (($sess = gpcs_var('sess', $get, $post, $cookie)) === FALSE) $sess = ""; @@ -234,6 +237,10 @@ function index_wr_main(&$brisk, $remote_addr_full, $get, $post, $cookie) // LACC UPDATED $user->lacc = $curtime; + if ($user->cl_step < $cl_step) { + log_step(sprintf("%s|%s|%d|%d|%d|%d", $user->sess, $user->name, $user->step, $user->cl_step, $cl_step, $user->step - $user->cl_step)); + $user->cl_step = $cl_step; + } if ( ( ! $user->is_auth() ) && $brisk->ban_check($user->ip)) {