info['sex'], $u->info['level'], $u->info['login'], $u->info['id'], $u->info['align'], $u->info['clan']] ); $statnames = new Stat(); $statnames->getRequirement(); $code = PassGen::intCode(); $imgsrc = Config::img(); $str2 = ''; foreach ($shadows as $shadow) { $tr = true; $str = ''; $data = Conversion::dataStringToArray($shadow['tr']); if ($shadow['level'] > 0) { $str .= "\r• Уровень персонажа: {$shadow['level']}"; } if (!empty($shadow['itm'])) { $needItems = []; foreach (explode(',', $shadow['itm']) as $itemId) { if ($itemId < 1) { continue; } $item = Db::getRow('select item_id as id, name from items_users left join items_main on item_id = items_main.id where item_id = ? and inodet > 0 and inshop = 0 and uid = ?', [$itemId, $u->info['id']]); if (!$item['id']) { $tr = false; } $needItems[] = "«{$item['name']}»"; } if (!empty($needItems)) { $str .= "\r• Предметы: " . implode(', ', $needItems); } } foreach ($statnames->sysRequirementNames as $srn) { if (!isset($data['tr_' . $srn])) { continue; } $str .= "\r• $statnames->requirementNames[$srn]: " . $data['tr_' . $srn]; if ($data['tr_' . $srn] <= $u->stats[$srn]) { continue; } $tr = false; } if ((!empty($shadow['tr']) || !empty($shadow['itm'])) && !$tr) { continue; } if (!empty($str)) { $str = "Требуется минимальное:$str"; } $str2 .= << HTML; } ?>
info['id']) ?>