implement welcome page for new sessions with access level settings #1

This commit is contained in:
ghost 2023-09-11 02:54:44 +03:00
parent db2063bbc3
commit 2c9d0e7278
4 changed files with 181 additions and 0 deletions

View file

@ -537,6 +537,17 @@ class Database {
return $query->rowCount();
}
public function updateUserPublic(int $userId, bool $public, int $timeUpdated) : int {
$this->_debug->query->update->total++;
$query = $this->_db->prepare('UPDATE `user` SET `public` = ?, `timeUpdated` = ? WHERE `userId` = ?');
$query->execute([(int) $public, $timeUpdated, $userId]);
return $query->rowCount();
}
// Magnet
public function addMagnet(int $userId,
int $xl,