projects
/
brisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
manage acceptance of new licence
[brisk.git]
/
web
/
Obj
/
user.phh
diff --git
a/web/Obj/user.phh
b/web/Obj/user.phh
index
8ffeee8
..
6235759
100644
(file)
--- 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_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);
// 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));
}
$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)),
{
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)
}
function rd_data_set($curtime, $transp, $enc, $stat, $subst, $step, $from)
@@
-814,7
+826,7
@@
function is_supp_custom()
return (TRUE);
}
/*
return (TRUE);
}
/*
- if ($this->rec->last_dona > 1356994800) {
+ if ($this->rec->last_dona
_get()
> 1356994800) {
return (TRUE);
}
*/
return (TRUE);
}
*/