+
+
+
+
+ // $ret .= table_act_content(($user->subst == 'standup'), $this->table[$i]->player_n, $i, $user->table,
+ // ($this->table[$i]->auth_only == FALSE ? TRUE : $user->flags & USER_FLAG_AUTH));
+
+ // function act_content($isstanding, $sitted, $table, $cur_table, $allowed)
+ function act_content(&$user)
+ {
+ $ret = "";
+ $isstanding = ($user->subst == 'standup');
+ $sitted = $this->player_n;
+ $table = $this->idx;
+ $cur_table = $user->table;
+ $allowed = TRUE;
+
+ if ($isstanding) {
+ if ($sitted < PLAYERS_N) {
+ if ($this->auth_only) {
+ if ($user->flags & USER_FLAG_AUTH)
+ $act = "sitreser";
+ else
+ $act = 'reserved';
+ }
+ else {
+ $act = 'sit';
+ }
+ }
+ }
+ else {
+ if ($table == $cur_table)
+ $act = 'wake';
+ else
+ $act = 'none';
+ }
+
+ if ($act != '')
+ $ret = sprintf('j_tab_act_cont(%d, \'%s\');', $table, $act);
+
+ return ($ret);
+ }
+
+