mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-04-01 09:35:28 +00:00
implement welcome page for new sessions with access level settings #1
This commit is contained in:
parent
db2063bbc3
commit
2c9d0e7278
4 changed files with 181 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue