X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2FObj%2Fuser.phh;h=623575976666863d3b01db46a8c17602eb2efadd;hb=d40b54308d7b7cbeaaf0b997fcf5f9dcbef64518;hp=8ffeee8d4eea5d08aead0e2384ef05fc69e332be;hpb=11351a969a05274d75e84160b0b584e4e4901d1f;p=brisk.git diff --git a/web/Obj/user.phh b/web/Obj/user.phh index 8ffeee8..6235759 100644 --- a/web/Obj/user.phh +++ b/web/Obj/user.phh @@ -63,6 +63,10 @@ define('USER_FLAG_TY_FIRONLY', 0x200000); // done define('USER_FLAG_TY_SUSPEND', 0x400000); // done define('USER_FLAG_TY_DISABLE', 0x800000); // done +define('USER_DIS_REA_INVMAIL', 1); +define('USER_DIS_REA_LICENCE', 2); +define('USER_DIS_REA_BANNED', 3); + // 240 is the right value, 600 is for fwrite error test define('RD_ENDTIME_DELTA', 240); define('RD_KEEPALIVE_TOUT', 4); @@ -312,13 +316,21 @@ class User { $this->flags = ($flags_old | ($flags & $mask)); } - function store_set() + function prefs_store() { if (($bdb = BriskDB::create()) == FALSE) { return FALSE; } return ($bdb->user_prefs_update($this->code, ($this->flags & (USER_FLAG_TY_ALL | USER_FLAG_MAP_AUTH)), - $this->rec->supp_comp)); + $this->rec->supp_comp_get())); + } + + function licence_store() + { + if (($bdb = BriskDB::create()) == FALSE) { + return FALSE; + } + return ($bdb->user_licence_update($this->code, $this->rec->lice_vers_get())); } function rd_data_set($curtime, $transp, $enc, $stat, $subst, $step, $from) @@ -814,7 +826,7 @@ function is_supp_custom() return (TRUE); } /* - if ($this->rec->last_dona > 1356994800) { + if ($this->rec->last_dona_get() > 1356994800) { return (TRUE); } */