var $table_pos; // idx on the table
var $table_token;// token that identify a game on a table
var $flags; // Bitfield with: AUTHENTICATE: 0x02
+ var $rec; // field with user db record or FALSE
var $the_end; // Flag to change the end of the session
var $chat_lst; // Last chat line
$thiz->exitislock = TRUE;
$thiz->flags = 0x00;
-
+ $thiz->rec = FALSE;
+
$thiz->chattime = array_fill(0, CHAT_N, 0);
$thiz->chat_cur = 0;
$thiz->chat_lst = "";
$this->exitislock = $from->exitislock;
$this->flags = $from->flags;
+ $this->rec = $from->rec;
$this->chattime = array();
for ($i = 0 ; $i < CHAT_N ; $i++)
$thiz->the_end = $from->the_end;
$thiz->flags = $from->flags;
+ $thiz->rec = $from->rec;
$thiz->chattime = array_fill(0, CHAT_N, 0);
$thiz->chat_cur = 0;
if (($bdb = BriskDB::create()) == FALSE) {
return FALSE;
}
- return ($bdb->user_update_flags($this->code, ($this->flags & (USER_FLAG_TY_ALL | USER_FLAG_MAP_AUTH))));
+ return ($bdb->user_prefs_update($this->code, ($this->flags & (USER_FLAG_TY_ALL | USER_FLAG_MAP_AUTH)),
+ $this->rec->supp_comp));
}
function rd_data_set($curtime, $transp, $enc, $stat, $subst, $step, $from)
$is_super = $this->flags & USER_FLAG_TY_SUPER;
$ret .= show_notify_ex(str_replace("\n", " ", $G_splash_content[$G_lang]),
($is_super ? 0 : $G_splash_timeout),
- $mlang_indrd[($is_super ? 'btn_btotabsup' : 'btn_backtotab')][$G_lang],
+ // $mlang_indrd[($is_super ? 'btn_btotabsup' : 'btn_backtotab')][$G_lang],
+ $mlang_indrd['btn_backtotab'][$G_lang],
$G_splash_w, $G_splash_h, true,
($is_super ? 0 : $G_splash_timeout));
$ret .= sprintf('|createCookie("CO_splashdate%d", %d, 24*365, cookiepath);', $G_splash_idx, $curtime);
return $c::BASE;
}
+function is_supp_custom()
+{
+ if ($this->rec != FALSE) {
+ if ($this->flags & USER_FLAG_TY_SUPER) {
+ return (TRUE);
+ }
+ /*
+ if ($this->rec->last_dona > 1356994800) {
+ return (TRUE);
+ }
+ */
+ }
+ return (FALSE);
+}
+
} // end class User