Отвязались от статой и тяжёлой функции showinf_pers()! Прочие мелкие правки.

This commit is contained in:
Igor Barkov (iwork)
2020-07-06 13:41:20 +03:00
parent 5ef6696614
commit f4d51b69af
3 changed files with 54 additions and 127 deletions
+6 -2
View File
@@ -150,7 +150,10 @@ $fbattle = new fbattle($user['battle']);
<table width=250 cellspacing=0 cellpadding=0>
<tr>
<td valign=top width=250 nowrap>
<?php echo showinf_pers($user['id'], 1, 1); ?>
<?php
$myinfo = new User($_SESSION['uid']);
$myinfo->showUserInfoInBattle();
?>
</td>
</tr>
</table>
@@ -484,7 +487,8 @@ $fbattle = new fbattle($user['battle']);
<?php
if ($fbattle->return == 1) {
echo showinf_pers($fbattle->enemy, 1);
$enemyInfo = new User($fbattle->enemy);
$enemyInfo->showUserInfoInBattle();
} else {
if ($fbattle->battle_data['type'] == 4 || $fbattle->battle_data['type'] == 5) {
$a = [6, 16];