// Aggiorna l'expire time lato server
if ($first_loop == TRUE) {
if (($user = &get_user($bri, $sess, $idx)) == FALSE) {
+ unlock_data($sem);
return (unrecerror());
}
log_auth($sess, "update lacc");
unlock_data($sem);
}
else {
- unlock_data($sem);
return (FALSE);
}
$sem = lock_data();
$bri = &load_data();
if (($user = &get_user($bri, $sess, $idx)) == FALSE) {
+ unlock_data($sem);
return (unrecerror());
}
if ($user->the_end)
$new_stat = $user->stat;
$new_subst = $user->subst;
$new_step = $user->step;
-
- unlock_data($sem);
}
else {
$sem = lock_data();
$bri = &load_data();
if (($user = &get_user($bri, $sess, $idx)) == FALSE) {
+ unlock_data($sem);
return (unrecerror());
}
if ($cur_step < $user->step) {