DONE . show licence ([show me later, yes, no]/[yes, no])
DONE . switch-off date
. checkbox for anonimous users with message when not checked
- . disable user reason field
+ . disable user reason integer field and remove SUSPEND state (db, php)
. opt - button on when arrived to the bottom of the licence
. opt - download licence
. min - check licence version between config file and licence file
-- 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
+
+-- add reason field for disabled users
+ALTER TABLE #PFX#users DROP COLUMN disa_reas;
+ALTER TABLE #PFX#users ADD COLUMN disa_reas integer DEFAULT 0; -- current disable reason
+
var $last_dona;
var $supp_comp;
var $lice_vers;
+ var $disa_reas;
- function LoginDBItem($code, $login, $pass, $email, $type, $last_dona, $supp_comp, $lice_vers)
+ function LoginDBItem($code, $login, $pass, $email, $type, $last_dona, $supp_comp, $lice_vers, $disa_reas)
{
$this->code = $code;
$this->login = $login;
$this->last_dona = $last_dona;
$this->supp_comp = $supp_comp;
$this->lice_vers = $lice_vers;
+ $this->disa_reas = $disa_reas;
}
static function LoginDBItemFromRecord($rec)
{
$ret = new LoginDBItem($rec->code, $rec->login, $rec->pass,
$rec->email, $rec->type, $rec->last_dona,
- $rec->supp_comp, $ret->lice_vers);
+ $rec->supp_comp, $rec->lice_vers, $rec->disa_reas);
return ($ret);
}
return $this->lice_vers;
}
+ function disa_reas_get()
+ {
+ return $this->disa_reas;
+ }
+
}
?>
\ No newline at end of file
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);