projects
/
brisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
aggiunto id [3]
[brisk.git]
/
web
/
index_rd.php
diff --git
a/web/index_rd.php
b/web/index_rd.php
index
994fe87
..
bfa715c
100644
(file)
--- a/
web/index_rd.php
+++ b/
web/index_rd.php
@@
-64,6
+64,7
@@
function maincheck($sess, $cur_stat, $cur_subst, $cur_step, &$new_stat, &$new_su
// Aggiorna l'expire time lato server
if ($first_loop == TRUE) {
if (($user = &get_user($bri, $sess, $idx)) == FALSE) {
// 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");
return (unrecerror());
}
log_auth($sess, "update lacc");
@@
-78,8
+79,9
@@
function maincheck($sess, $cur_stat, $cur_subst, $cur_step, &$new_stat, &$new_su
}
unlock_data($sem);
}
}
unlock_data($sem);
}
- else
+ else
{
return (FALSE);
return (FALSE);
+ }
if (($user = &get_user(&$bri, $sess, $idx)) == FALSE) {
return (unrecerror());
if (($user = &get_user(&$bri, $sess, $idx)) == FALSE) {
return (unrecerror());
@@
-96,6
+98,7
@@
function maincheck($sess, $cur_stat, $cur_subst, $cur_step, &$new_stat, &$new_su
$sem = lock_data();
$bri = &load_data();
if (($user = &get_user($bri, $sess, $idx)) == FALSE) {
$sem = lock_data();
$bri = &load_data();
if (($user = &get_user($bri, $sess, $idx)) == FALSE) {
+ unlock_data($sem);
return (unrecerror());
}
if ($user->the_end)
return (unrecerror());
}
if ($user->the_end)
@@
-113,6
+116,7
@@
function maincheck($sess, $cur_stat, $cur_subst, $cur_step, &$new_stat, &$new_su
}
else {
log_rd2($sess, "TRANS NON ATTIVATO");
}
else {
log_rd2($sess, "TRANS NON ATTIVATO");
+ unlock_data($sem);
}
}
}
}
@@
-138,13
+142,12
@@
function maincheck($sess, $cur_stat, $cur_subst, $cur_step, &$new_stat, &$new_su
$new_stat = $user->stat;
$new_subst = $user->subst;
$new_step = $user->step;
$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) {
}
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) {
return (unrecerror());
}
if ($cur_step < $user->step) {