- AUTO-MAINTENANCE
. policy acceptance
. policy version
- . user policy acceptance (db field)
+ WIP . user policy acceptance (db field)
. show licence ([show me later, yes, no]/[yes, no])
. switch-off date
+ . opt - button on when arrived to the bottom of the licence
. show guaranteer
--- /dev/null
+-- add current licence version accepted by users
+ALTER TABLE #PFX#users DROP COLUMN lice_vers;
+ALTER TABLE #PFX#users ADD COLUMN lice_vers text DEFAULT ''; -- current accepted licence version
var $type;
var $last_dona;
var $supp_comp;
+ var $lice_vers;
- function LoginDBItem($code, $login, $pass, $email, $type, $last_dona, $supp_comp)
+ function LoginDBItem($code, $login, $pass, $email, $type, $last_dona, $supp_comp, $lice_vers)
{
$this->code = $code;
$this->login = $login;
$this->type = $type;
$this->last_dona = $last_dona;
$this->supp_comp = $supp_comp;
+ $this->lice_vers = $lice_vers;
}
static function LoginDBItemFromRecord($rec)
{
$ret = new LoginDBItem($rec->code, $rec->login, $rec->pass,
$rec->email, $rec->type, $rec->last_dona,
- $rec->supp_comp);
+ $rec->supp_comp, $ret->lice_vers);
return ($ret);
}
return $this->supp_comp;
}
+ function lice_vers_get()
+ {
+ return $this->lice_vers;
+ }
+
}
?>
\ No newline at end of file