X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Findex_wr.php;h=77460517f4b3bb4f06f80199e1f6c92b3bf3f143;hb=0e17eb7ed18d621be70d7890f531a2dc1cab2a42;hp=caf406fa0a09961c7dec877b053d4d1db3c18014;hpb=286da1eb1ec912c9d2c49a132f555b10e0084e53;p=brisk.git diff --git a/web/index_wr.php b/web/index_wr.php index caf406f..7746051 100644 --- a/web/index_wr.php +++ b/web/index_wr.php @@ -2,7 +2,7 @@ /* * brisk - index_wr.php * - * Copyright (C) 2006-2011 Matteo Nastasi + * Copyright (C) 2006-2012 Matteo Nastasi * mailto: nastasi@alternativeoutput.it * matteo.nastasi@milug.org * web: http://www.alternativeoutput.it @@ -197,9 +197,13 @@ function index_wr_main(&$room, $remote_addr, $get, $post, $cookie) log_wr('POSTSPLIT: '.$argz[0]); - log_wr($user->step, 'index_wr.php: after get_user()'); + // LACC UPDATED + $user->lacc = $curtime; - if ($argz[0] == 'shutdown') { + if ($argz[0] == 'ping') { + log_wr("PING RECEIVED"); + } + else if ($argz[0] == 'shutdown') { log_auth($user->sess, "Shutdown session."); $user->reset(); @@ -458,12 +462,6 @@ function index_wr_main(&$room, $remote_addr, $get, $post, $cookie) else if ($argz[0] == 'splash') { GLOBAL $G_with_splash, $G_splash_content, $G_splash_interval, $G_splash_idx; GLOBAL $G_splash_w, $G_splash_h, $G_splash_timeout; - /* $CO_splashdate = "CO_splashdate".$G_splash_idx; */ - /* if (($$CO_splashdate = gpcs_var("$CO_splashdate", $get, $post, $cookie)) === FALSE) */ - /* $$CO_splashdate = ""; */ - - /* GLOBAL $$CO_splashdate; */ - $user->comm[$user->step % COMM_N] = "gst.st = ".($user->step+1)."; "; $user->comm[$user->step % COMM_N] .= show_notify_ex(str_replace("\n", " ", $G_splash_content[$G_lang]), 0, $mlang_indwr['btn_backtotab'][$G_lang], $G_splash_w, $G_splash_h, true, 0); @@ -605,7 +603,7 @@ function index_wr_main(&$room, $remote_addr, $get, $post, $cookie) log_legal($curtime, 'xxx', $user, "STAT:CREATE_GAME", $plist); log_wr("pre new Bin5"); - if (($bri = new Bin5($room, $table_idx, $table_token)) == FALSE) + if (($bri = new Bin5($room, $table_idx, $table_token, $get, $post, $cookie)) == FALSE) log_wr("bri create: FALSE"); else log_wr("bri create: ".serialize($bri)); @@ -656,6 +654,7 @@ function index_wr_main(&$room, $remote_addr, $get, $post, $cookie) $user_cur->step_inc(); } log_wr("presave bri"); + $room->match_add($table_idx, $bri); log_wr("postsave bri"); } // change room