projects
/
brisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
version and description updated
[brisk.git]
/
web
/
briskin5
/
index_wr.php
diff --git
a/web/briskin5/index_wr.php
b/web/briskin5/index_wr.php
index
5a2644f
..
1eabe2c
100644
(file)
--- a/
web/briskin5/index_wr.php
+++ b/
web/briskin5/index_wr.php
@@
-52,9
+52,9
@@
if ($table_idx < 0 || $table_idx >= TABLE_N)
log_mop(0, 'bin::index_wr.php: COMM: '.xcapemesg($mesg));
log_mop(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) {
+if (($bri = Bin5::load_data($table_idx,$table_token)) == FALSE) {
echo "Bin5 Load data error";
log_wr("Bin5 Load data error");
Bin5::unlock_data($sem);
echo "Bin5 Load data error";
log_wr("Bin5 Load data error");
Bin5::unlock_data($sem);
@@
-69,7
+69,7
@@
if (($user = &$bri->get_user($sess, &$idx)) == FALSE) {
}
$argz = explode('|', $mesg);
}
$argz = explode('|', $mesg);
-log_wr('POSTSPLIT: '.$argz[0]);
+log_wr('POSTSPLIT: '.$argz[0]
.' user->stat: ['.$user->stat.']'
);
log_mop($user->step, 'bin::index_wr.php: after get_user()');
if (false && $argz[0] == 'shutdown') {
log_mop($user->step, 'bin::index_wr.php: after get_user()');
if (false && $argz[0] == 'shutdown') {
@@
-77,7
+77,7
@@
if (false && $argz[0] == 'shutdown') {
log_rd2("bin5/index_wr.php: AUTO LOGOUT.");
if ($user->stat == 'table') {
log_rd2("bin5/index_wr.php: AUTO LOGOUT.");
if ($user->stat == 'table') {
- $bri->table_wakeup(
&
$user);
+ $bri->table_wakeup($user);
// to force the logout
$user->lacc = 0;
}
// to force the logout
$user->lacc = 0;
}
@@
-91,7
+91,7
@@
if (false && $argz[0] == 'shutdown') {
*********************/
else if ($user->stat == 'table') {
$user->laccwr = time();
*********************/
else if ($user->stat == 'table') {
$user->laccwr = time();
- $table =
&
$bri->table[$user->table];
+ $table = $bri->table[$user->table];
if ($argz[0] == 'tableinfo') {
log_wr("PER DI TABLEINFO");
if ($argz[0] == 'tableinfo') {
log_wr("PER DI TABLEINFO");
@@
-347,7
+347,7
@@
else if ($user->stat == 'table') {
if ($table->asta_win > -1 &&
$user->table_pos == $table->asta_win) {
$a_brisco = $argz[1];
if ($table->asta_win > -1 &&
$user->table_pos == $table->asta_win) {
$a_brisco = $argz[1];
- if ($a_brisco >= 0 && $a_brisco <
(BIN5_PLAYERS_N == 5 ? 40 : 24)
) {
+ if ($a_brisco >= 0 && $a_brisco <
40
) {
$table->briscola = $a_brisco;
$table->friend = $table->card[$a_brisco]->owner;
log_wr("GSTART 2");
$table->briscola = $a_brisco;
$table->friend = $table->card[$a_brisco]->owner;
log_wr("GSTART 2");