diff --git a/functions.php b/functions.php index e03f1fe..1763e26 100644 --- a/functions.php +++ b/functions.php @@ -2711,7 +2711,7 @@ function show_shop_items($it, $from = 'shop') * @param bool $returned * @return string */ -function showitem($row, $type, $returned = false) +function showitem($row, $type, $returned = false, $infOnly = false) { global $user, $runes_exp; $returnHTML = ''; @@ -2730,11 +2730,12 @@ function showitem($row, $type, $returned = false) $incmagic['cur'] = $row['includemagicdex']; $incmagic['max'] = $row['includemagicmax']; - if (!$row['count'] || $type == 10) { + $returnHTML .= ''; + if ((!$row['count'] || $type == 10) && $infOnly == false) { $up = ($row['upgrade'] > 0 ? " [" . $row['upgrade'] . "]" : ""); - $returnHTML .= ''; + $returnHTML .= ''; if ($incmagic['max']) { - $returnHTML .= "
";// 2)?" style='background-image:url(i/blink.gif);' ":"")." src='i/sh/{$row['img']}' style=\"margin:0px,0px,-100000%,0px;\">
+ $returnHTML .= "
"; } else { $returnHTML .= " 2) ? " style='background-image:url(i/blink.gif);' " : "") . " src='i/sh/{$row['img']}'>
"; } @@ -2777,10 +2778,12 @@ function showitem($row, $type, $returned = false) if ($row["koll"] > 1) $returnHTML .= " "; $returnHTML .= ""; } else { - $returnHTML .= "Улучшить"; + $returnHTML .= "Улучшить"; } } + $returnHTML .= ""; + if ($row['destinyinv'] > 0) { $returnHTML .= "{$row['name']}{$up} (Масса: {$row['massa']})\"Этот" . (($row['present']) ? ' Этот предмет вам подарил ' . $row['present'] . '. Вы не сможете передать этот предмет кому-либо еще.' : "") . "
"; } elseif ($row['destiny'] > 0) { diff --git a/post.php b/post.php index 0d4669e..b435e72 100644 --- a/post.php +++ b/post.php @@ -111,7 +111,7 @@ if ($_SESSION['receiverName']) { - +