X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Findex_rd.php;h=a8771d52008069d9ebf7b97c247ab085e1d81638;hb=53f1d7c93385df967eb95ece569aa2144626380b;hp=2c69a2b7008394b454e0ec8de25a35e4625ba6f7;hpb=15771956de22e6bc437f3ed2d4e503e3384ebd4f;p=brisk.git diff --git a/web/index_rd.php b/web/index_rd.php index 2c69a2b..a8771d5 100644 --- a/web/index_rd.php +++ b/web/index_rd.php @@ -23,7 +23,7 @@ require_once("brisk.phh"); -log_load($sess, "LOAD: index_rd.php"); +log_load($sess, "LOAD: index_rd.php ".$QUERY_STRING); $first_loop = TRUE; $the_end = FALSE; @@ -61,16 +61,18 @@ function maincheck($sess, $cur_stat, $cur_subst, $cur_step, &$new_stat, &$new_su /* Sync check (read only without modifications */ + ignore_user_abort(TRUE); if (($sem = lock_data()) != FALSE) { $bri = &load_data(); // Aggiorna l'expire time lato server if ($first_loop == TRUE) { if (($user = &$bri->get_user($sess, $idx)) == FALSE) { unlock_data($sem); + ignore_user_abort(FALSE); return (unrecerror()); } log_auth($sess, "update lacc"); - $user->lacc = time() + EXPIRE_TIME; + $user->lacc = time(); save_data($bri); $first_loop = FALSE; @@ -80,6 +82,7 @@ function maincheck($sess, $cur_stat, $cur_subst, $cur_step, &$new_stat, &$new_su save_data($bri); } unlock_data($sem); + ignore_user_abort(FALSE); } else { return (FALSE); @@ -97,10 +100,12 @@ function maincheck($sess, $cur_stat, $cur_subst, $cur_step, &$new_stat, &$new_su if ($cur_step == -1) { // FUNZIONE from_scratch DA QUI + ignore_user_abort(TRUE); $sem = lock_data(); $bri = &load_data(); if (($user = &$bri->get_user($sess, $idx)) == FALSE) { unlock_data($sem); + ignore_user_abort(FALSE); return (unrecerror()); } if ($user->the_end) @@ -115,10 +120,12 @@ function maincheck($sess, $cur_stat, $cur_subst, $cur_step, &$new_stat, &$new_su save_data($bri); unlock_data($sem); + ignore_user_abort(FALSE); } else { log_rd2($sess, "TRANS NON ATTIVATO"); unlock_data($sem); + ignore_user_abort(FALSE); } } @@ -146,10 +153,12 @@ function maincheck($sess, $cur_stat, $cur_subst, $cur_step, &$new_stat, &$new_su $new_step = $user->step; } else { + ignore_user_abort(TRUE); $sem = lock_data(); $bri = &load_data(); if (($user = &$bri->get_user($sess, $idx)) == FALSE) { unlock_data($sem); + ignore_user_abort(FALSE); return (unrecerror()); } if ($cur_step < $user->step) { @@ -187,6 +196,7 @@ function maincheck($sess, $cur_stat, $cur_subst, $cur_step, &$new_stat, &$new_su } unlock_data($sem); + ignore_user_abort(FALSE); }