Make subscription work

This commit is contained in:
2026-05-04 23:55:41 +02:00
parent 141618f2cd
commit 54bae3e9c9
8 changed files with 41 additions and 23 deletions

View File

@@ -21,6 +21,17 @@ class User extends PhpObject {
const COOKIE_ID_USER = 'subscriber';
const COOKIE_DURATION = 60 * 60 * 24 * 365; //1 year
const DEFAULT_USER = array(
'id' => 0,
'id_user' => 0,
'name' => '',
'email' => '',
'language' => '',
'timezone' => '',
'active' => self::USER_INACTIVE,
'clearance' => self::CLEARANCE_USER
);
/**
* Database Handle
* @var Db
@@ -35,16 +46,7 @@ class User extends PhpObject {
parent::__construct(__CLASS__);
$this->oDb = &$oDb;
$this->setUserId(0);
$this->asUserInfo = array(
'id' => 0,
Db::getId(self::USER_TABLE) => 0,
'name' => '',
'email' => '',
'language' => '',
'timezone' => '',
'active' => self::USER_INACTIVE,
'clearance' => self::CLEARANCE_USER
);
$this->asUserInfo = self::DEFAULT_USER;
$this->checkUserCookie();
}