X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Findex_wr.php;h=2b459d035732ee3f22c3063200e21aa00c1171f3;hb=3ad972807dfceca464574e0ce7cfc1ffe1e70013;hp=ea364cd9eba871edc86dc69fe13bd9db6dad972f;hpb=2ae8dac72522528be1c05fea5de272555d5330cf;p=brisk.git diff --git a/web/index_wr.php b/web/index_wr.php index ea364cd..2b459d0 100644 --- a/web/index_wr.php +++ b/web/index_wr.php @@ -22,8 +22,16 @@ */ require_once("Obj/brisk.phh"); +require_once("Obj/proxyscan.phh"); require_once("briskin5/Obj/briskin5.phh"); +// Use of proxies isn't allowed. +if (is_proxy()) { + sleep(5); + exit; +} +log_load("index_rd.php"); + if (DEBUGGING == "local" && $_SERVER['REMOTE_ADDR'] != '127.0.0.1') { echo "Debugging time!"; exit; @@ -57,12 +65,18 @@ log_wr('POSTSPLIT: '.$argz[0]); 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 = ""; + while (array_pop($user->comm) != NULL); + $user->step = 0; $user->the_end = FALSE; - + */ + log_rd2("AUTO LOGOUT."); if ($user->subst == 'sitdown' || $user->stat == 'table') $room->room_wakeup(&$user);