X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fbriskin5%2Findex_wr.php;h=8e894fd7c3bf17768bb9ba7c75f2533c9fa0f70b;hb=c3ccbbd5bc7c8534127fa10b4f88b81cffc6029a;hp=1eabe2c06a7f70c00b4f723cb36f3e4368c3af8b;hpb=6a7088b090b78123ccfaa3ba00e1ea81647b173c;p=brisk.git diff --git a/web/briskin5/index_wr.php b/web/briskin5/index_wr.php index 1eabe2c..8e894fd 100644 --- a/web/briskin5/index_wr.php +++ b/web/briskin5/index_wr.php @@ -47,10 +47,11 @@ log_load("bin5/index_wr.php"); */ log_wr('COMM: '.$mesg); -if ($table_idx < 0 || $table_idx >= TABLE_N) +$table_idx = (int)$table_idx; +if ($table_idx < 0 || $table_idx >= TABLES_N) exit; -log_mop(0, 'bin::index_wr.php: COMM: '.xcapemesg($mesg)); +log_wr(0, 'bin::index_wr.php: COMM: '.xcapemesg($mesg)); $sem = Bin5::lock_data(TRUE, $table_idx); @@ -70,7 +71,7 @@ if (($user = &$bri->get_user($sess, &$idx)) == FALSE) { $argz = explode('|', $mesg); log_wr('POSTSPLIT: '.$argz[0].' user->stat: ['.$user->stat.']'); -log_mop($user->step, 'bin::index_wr.php: after get_user()'); +log_wr($user->step, 'bin::index_wr.php: after get_user()'); if (false && $argz[0] == 'shutdown') { log_auth($user_cur->sess, "Shutdown session. delegate to room gc the autologout"); @@ -534,7 +535,7 @@ else if ($user->stat == 'table') { } log_wr("before save data"); Bin5::save_data($bri); -log_mop($user->step, 'bin::index_wr.php: after save_data()'); +log_wr($user->step, 'bin::index_wr.php: after save_data()'); Bin5::unlock_data($sem); exit;