This commit is contained in:
lopar
2021-03-11 00:55:08 +02:00
parent 9a75e9d949
commit cbccdd754f
3 changed files with 55 additions and 55 deletions

View File

@@ -3,7 +3,6 @@
namespace Battles;
use Battles\Database\DBPDO;
use Exceptions\GameException;
class User
{
@@ -448,4 +447,8 @@ class User
self::$db->execute('UPDATE users SET realname = ?, info = ? WHERE id = ?', [$this->realname, $this->info, $this->id]);
}
public function setOnline()
{
self::$db->execute('update online set real_time = ? where user_id = ?', [time(), $this->getId()]);
}
}

View File

@@ -1,7 +1,6 @@
<?php
namespace Battles;
use Battles\Models\EffectsModel;
use Exceptions\GameException;
class UserInfo extends UserStats
{