From 3bc9bbb2921834fa33d0b0e15d96b60b9ff720ae Mon Sep 17 00:00:00 2001 From: lopar Date: Sun, 24 Jun 2018 23:03:57 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20=D1=84=D1=83=D0=BD?= =?UTF-8?q?=D0=BA=D1=86=D0=B8=D0=B8=20=D0=BE=D1=82=D0=BE=D0=B1=D1=80=D0=B0?= =?UTF-8?q?=D0=B6=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=BF=D1=80=D0=B5=D0=B4=D0=BC?= =?UTF-8?q?=D0=B5=D1=82=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- functions.php | 13 ++++++++----- post.php | 2 +- 2 files changed, 9 insertions(+), 6 deletions(-) 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']) { - +