diff --git a/classes/User.php b/classes/User.php
index 09715a8..4662097 100644
--- a/classes/User.php
+++ b/classes/User.php
@@ -69,10 +69,15 @@ EMPTY_SLOT;
     {
         $dressed_item = [];
         $dressed_items = db::c()->query('SELECT * FROM inventory WHERE owner_id = ?i AND dressed_slot > 0', $this->id);
-       while ($row = $dressed_items->fetch_assoc()) {
-           $dressed_item[$row['dressed_slot']] = $row;
-       }
-        echo '<div style="text-align: center">';
+        while ($row = $dressed_items->fetch_assoc()) {
+            $dressed_item[$row['dressed_slot']] = $row;
+        }
+        echo <<<USERINFO
+<table width=100%>
+    <tr>
+        <td style="width: 250px; vertical-align: top;">
+            <div style="text-align: center">
+USERINFO;
         if ($this->align) {
             echo sprintf('<img src="/i/align_%s.png" alt="Склонность">', $this->align);
         }
@@ -84,7 +89,8 @@ EMPTY_SLOT;
         if ($this->clan) {
             echo sprintf('<img src="/i/clan/%s.png" alt="%s">', $this->clan, $this->clan);
         }
-        echo '</div>
+        echo <<<USERINFO
+</div>
 <div style="width: 100%; height: 16px; background: #ffaaff; overflow: hidden; border-radius: 3px; font-size: 14px; text-align: center;">
     добавить здоровье
 </div>
@@ -93,7 +99,8 @@ EMPTY_SLOT;
         <td width=62 valign=top>
             <table width=100%>
                 <tr>
-                    <td>';
+                    <td>
+USERINFO;
         if (isset($dressed_item[1])) {
             $this->showItem($dressed_item[1]);
         } else {
@@ -173,9 +180,10 @@ USERINFO;
         } else {
             $this->showItem(11);
         }
-    echo <<<USERINFO
+        echo <<<USERINFO
 </div>
-
+</td>
+<td width="100%">
 Имя {$this->login} <br>
 Сила {$this->strength} <br>
 Ловкость {$this->dexterity} <br>
@@ -184,7 +192,18 @@ USERINFO;
 Интеллект {$this->intelligence} <br>
 Мудрость {$this->wisdom} <br>
 Находится в {$this->getRoomName($this->room)}<br>
+</td>
+        <td style="vertical-align: top; width: 100px; text-align: center;">
+            <img src="i/zodiac/<?= star_sign($this->borndate); ?>.png" alt="Родовой знак">
+        </td>
+    </tr>
+</table>
+
 USERINFO;
+        if ($this->married) {
+            echo sprintf('<a href = "inf.php?%s" target = _blank ><img alt = "В браке с %s" src = "i/married.gif" title = "В браке с %s"></a >', $this->married, $this->married, $this->married);
+        }
+
 
 //        if (isset($dressed_item[1])) {
 //            $this->showItem($dressed_item[1]);
diff --git a/inf.php b/inf.php
index 28b8cc1..36d4595 100644
--- a/inf.php
+++ b/inf.php
@@ -33,7 +33,7 @@ if (empty($user->id)): ?>
         <title>Ошибка</title>
     </head>
     <body style="color: #666; background-color: #d5d5d5; text-align: center; font-family: Consolas,monospace;">
-    Ошибка: персонаж <em><?=$login?></em> не найден...
+    Ошибка: персонаж <em><?= $login ?></em> не найден...
     <p><a style="color: #99f" href="javascript:window.history.go(-1);">←назад</a></p>
     </body>
     </html>
@@ -48,24 +48,13 @@ if (empty($user->id)): ?>
 <body>
 <?php if ($user->admin === 1 && private_access($uid) !== ADMINISTRATOR_ACCESS && file_exists('customuserdata/' . $user['id'])) {
     die(file_get_contents('customuserdata/' . $user['id']));
+}
+try {
+    $user->showUserInfo();
+} catch (Exception $e) {
+    echo "<div class='private'>Ошибка классового генератора персонажа showUserInfo(): {$e}</div>";
 } ?>
-<table width=100%>
-    <tr>
-        <td style="width: 250px; vertical-align: top;">
-            <?php
-            try {$user->showUserInfo();} catch (Exception $e) {echo "<div class='private'>Ошибка классового генератора персонажа showUserInfo(): {$e}</div>";}
-            if (!empty($user->married)): ?>
-                <a href="inf.php?<?= $user->married ?>" target=_blank>
-                    <img alt="В браке с <?= $user->married ?>" src="i/married.gif"
-                         title="В браке с <?= $user->married ?>">
-                </a>
-            <?php endif; ?>
-        </td>
-        <td style="vertical-align: top; width: 100px; text-align: center;">
-            <img src="i/zodiac/<?= star_sign($user->borndate); ?>.png" alt="Родовой знак">
-        </td>
-    </tr>
-</table>
+
 <hr>
 <!-- Нижняя часть -->
 <?php
@@ -74,7 +63,9 @@ try {
     if ($effect['time'] && !private_access($uid)) {
         die('<h3>Персонаж обезличен!</h3>');
     }
-} catch (Exception $e) {echo "<div class='private'>Ошибка обезличивателя: {$e}</div>";}
+} catch (Exception $e) {
+    echo "<div class='private'>Ошибка обезличивателя: {$e}</div>";
+}
 if (!empty($user->realname)) {
     echo "Имя: " . $user->realname . "<br>";
 }