Ломаем всё, отсоединяя класс UserInfo от User.
This commit is contained in:
2
main.php
2
main.php
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user