Ломаем всё, отсоединяя класс 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

@@ -39,6 +39,7 @@ $ids = $_GET['ids'] ?? null;
$setShadow = $_POST['setshadow'] ?? null;
$edit = $_GET['edit'] ?? null;
// Подготавливаем отображение инфы и предметов.
$userInfo = new UserInfo($user->id);
$getItemsBonuses = new DressedItems($_SESSION['uid']);
$data_query = 'SELECT * FROM inventory WHERE owner_id = ?i AND dressed_slot = 0 AND on_sale = 0';
$data = db::c()->query($data_query, $_SESSION['uid']);
@@ -47,6 +48,7 @@ while ($row = $data->fetch_assoc()) {
$iteminfo[] = new InventoryItem($row);
}
/* === проверяем соответствие комнаты и скрипта === */
if (in_array($user->room, [20, 21, 26, 48, 51, 52, 651, 2655, 2601, 2701, 2702, 2111], 1)) {
header('Location: city.php');