Ломаем всё, отсоединяя класс UserInfo от User.

This commit is contained in:
lopar
2020-08-30 13:44:57 +03:00
parent 555a32ce55
commit 7717d01f8f
5 changed files with 196 additions and 193 deletions

View File

@@ -6,17 +6,11 @@
* Project name: Battles-Game
*/
require_once 'config.php';
/**
* Класс-заглушка для работы глобальных переменных в функциях.
* Возвращает массив данных таблицы users.
*/
if (isset($_SESSION['uid'])) {
//$user = (new users_row($_SESSION['uid']))->result();
$user = new User($_SESSION['uid']);
} else {
echo "Не могу проинициализировать игрока!";
}
if ($user->id && $user->block) {
exit('user blocked!');
}