WIP: разгрузка User:class от сторонних методов.

This commit is contained in:
2023-04-18 12:21:54 +03:00
parent 2bc67ce543
commit 02c76e76ad
15 changed files with 548 additions and 4100 deletions
+3 -1
View File
@@ -16,6 +16,8 @@ if (!isset($_GET['events']) && !isset($_GET['diplom']) && !isset($_GET['control'
$_GET['events'] = 1;
}
$storage = new \Clan\ItemStorage();
//Возможности текущего титула
$tt = [
0 => ['000000000', 'Доступные каналы'],
@@ -2294,7 +2296,7 @@ if ($u->info['clan_prava'] != 'glava') {
if ($itmc >= $lvl_prava[$res['level']][5]) {
echo '<font color="#FF0000"><b>Хранилище переполнено</b></font><br>';
} elseif (isset($itm['id'])) {
echo $u->set_cl_item($_GET['give_itm'], $u->info, $res['id']);
echo $storage->put($_GET['give_itm'], $res['id']);
}
}
if ($tt[4][0] == 1) {