Переезд impstats и additem..

This commit is contained in:
2023-04-16 02:54:34 +03:00
parent 3dc4cf7284
commit 2bc67ce543
127 changed files with 584 additions and 612 deletions

View File

@@ -1011,7 +1011,7 @@ if (isset($p['id']) || $u->info['align'] == 1 || $u->info['align'] == 3) {
$uer = "Персонаж $_POST[log_itm] не найден.";
}
if ($giv_itm['id'] > 0 && $usr['id'] > 0) {
$u->addItem($giv_itm['id'], $usr['id']);
\User\ItemsModel::addItem($giv_itm['id'], $usr['id']);
$uer = "Персонажу $_POST[log_itm] выдана вещь $giv_itm[name].";
$rtxt = $rang . ' &quot;' . $u->info['login'] . '&quot; Выдал' . $sx . ' персонажу &quot;' . $user_teleport['login'] . '&quot; вещь &quot;<b>' . $giv_itm['name'] . '</b>&quot;.';
}
@@ -1839,7 +1839,7 @@ if (isset($p['id']) || $u->info['align'] == 1 || $u->info['align'] == 3) {
)
);
if (isset($uad['id'])) {
$u->addItem(round((int)$_POST['add_item_to_user']), $uad['id']);
\User\ItemsModel::addItem(round((int)$_POST['add_item_to_user']), $uad['id']);
mysql_query(
'INSERT INTO `users_delo` (`onlyAdmin`,`hb`,`uid`,`time`,`city`,`text`,`login`,`ip`) VALUES ("1","0","' . $uad['id'] . '","' . time(
) . '","' . $uad['city'] . '","' . $rang . ' &quot;' . $u->info['login'] . '&quot; <font color=red>выдал предмет</font>: №' . round(