projects
/
brisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
factorized user reset (and comm array clean added)
[brisk.git]
/
web
/
index_wr.php
diff --git
a/web/index_wr.php
b/web/index_wr.php
index
ea364cd
..
d7ccac2
100644
(file)
--- a/
web/index_wr.php
+++ b/
web/index_wr.php
@@
-57,12
+57,18
@@
log_wr('POSTSPLIT: '.$argz[0]);
if ($argz[0] == 'shutdown') {
log_auth($user->sess, "Shutdown session.");
if ($argz[0] == 'shutdown') {
log_auth($user->sess, "Shutdown session.");
+
+ $user->reset();
+ /* factorized with ->reset()
$tmp_sess = $user->sess;
$user->sess = "";
step_unproxy($tmp_sess);
$user->name = "";
$tmp_sess = $user->sess;
$user->sess = "";
step_unproxy($tmp_sess);
$user->name = "";
+ while (array_pop($user->comm) != NULL);
+ $user->step = 0;
$user->the_end = FALSE;
$user->the_end = FALSE;
-
+ */
+
log_rd2("AUTO LOGOUT.");
if ($user->subst == 'sitdown' || $user->stat == 'table')
$room->room_wakeup(&$user);
log_rd2("AUTO LOGOUT.");
if ($user->subst == 'sitdown' || $user->stat == 'table')
$room->room_wakeup(&$user);