*/
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;
log_wr('POSTSPLIT: '.$argz[0]);
if ($argz[0] == 'shutdown') {
- log_auth($user_cur->sess, "Shutdown session.");
+ 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);
log_wr("Pre if!");
+// ARRAY_POP DISABLED
+// // CHECK
+ while (array_pop($user_cur->comm) != NULL);
+
$ret = "";
$ret .= sprintf('gst.st_loc++; gst.st=%d; createCookie("table_idx", %d, 24*365, cookiepath); createCookie("table_token", "%s", 24*365, cookiepath); the_end=true; window.onunload = null ; document.location.assign("briskin5/index.php");|', $user_cur->step+1, $table_idx, $table_token);