projects
/
brisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
index_rd_ifra.php removed (all things are moved into User or Bin5_user classes
[brisk.git]
/
web
/
briskin5
/
index_wr.php
diff --git
a/web/briskin5/index_wr.php
b/web/briskin5/index_wr.php
index
ab6878c
..
6cb1580
100644
(file)
--- a/
web/briskin5/index_wr.php
+++ b/
web/briskin5/index_wr.php
@@
-47,12
+47,13
@@
log_load("bin5/index_wr.php");
*/
log_wr('COMM: '.$mesg);
*/
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;
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($table_idx);
+$sem = Bin5::lock_data(
TRUE,
$table_idx);
if (($bri = Bin5::load_data($table_idx,$table_token)) == FALSE) {
echo "Bin5 Load data error";
if (($bri = Bin5::load_data($table_idx,$table_token)) == FALSE) {
echo "Bin5 Load data error";
@@
-70,7
+71,7
@@
if (($user = &$bri->get_user($sess, &$idx)) == FALSE) {
$argz = explode('|', $mesg);
log_wr('POSTSPLIT: '.$argz[0].' user->stat: ['.$user->stat.']');
$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");
if (false && $argz[0] == 'shutdown') {
log_auth($user_cur->sess, "Shutdown session. delegate to room gc the autologout");
@@
-490,7
+491,7
@@
else if ($user->stat == 'table') {
for ($i = 0 ; $i < BIN5_PLAYERS_N ; $i++) {
$plist .= '|'.xcapelt($ucodes[$i]);
}
for ($i = 0 ; $i < BIN5_PLAYERS_N ; $i++) {
$plist .= '|'.xcapelt($ucodes[$i]);
}
- log_legal($curtime, $user, "STAT:BRISKIN5:FINISH_GAME", $plist);
+ log_legal($curtime,
'xxx',
$user, "STAT:BRISKIN5:FINISH_GAME", $plist);
if ($user->table_orig < TABLES_AUTH_N) {
require_once("../Obj/dbase_".$G_dbasetype.".phh");
if ($user->table_orig < TABLES_AUTH_N) {
require_once("../Obj/dbase_".$G_dbasetype.".phh");
@@
-534,7
+535,7
@@
else if ($user->stat == 'table') {
}
log_wr("before save data");
Bin5::save_data($bri);
}
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;
Bin5::unlock_data($sem);
exit;