Замена short_tags и <?php echo.

This commit is contained in:
2023-03-31 19:54:33 +03:00
parent fdf063d527
commit 1b5bf26294
214 changed files with 3978 additions and 4014 deletions
+16 -16
View File
@@ -480,7 +480,7 @@ if ($inf['inTurnir'] > 0 && ($u->info['inTurnir'] == $inf['inTurnir'] || $u->inf
<html>
<head>
<title>Информация о <?php echo $inf['login']; ?></title>
<title>Информация о <?= $inf['login']; ?></title>
<meta
"description" name content="Просматривайте информацию о игровых персонажах браузерной игры Бойцовский Клуб.Играйте в
новый проект потивам браузерной игры combats.com версии 2."/>
@@ -806,7 +806,7 @@ if (isset($uer)) {
<div></div>
<div></div>
<script>tstlgnthm();
lafstReg[<?php echo $inf['id']; ?>] = 1;
lafstReg[<?= $inf['id']; ?>] = 1;
<?php
if ($inf['align'] == 9) {
$st['hpNow'] = $st['hpNow'] / ($st['hpAll'] / 100);
@@ -814,7 +814,7 @@ if (isset($uer)) {
$rgd[0] = '0.28';
}
?>
startHpRegen(<?php echo '"top",' . $inf['id'] . ',' . (0 + $st['hpNow']) . ',' . (0 + $st['hpAll']) . ',' . (0 + $st['mpNow']) . ',' . (0 + $st['mpAll']) . ',' . (time(
startHpRegen(<?= '"top",' . $inf['id'] . ',' . (0 + $st['hpNow']) . ',' . (0 + $st['hpAll']) . ',' . (0 + $st['mpNow']) . ',' . (0 + $st['mpAll']) . ',' . (time(
) - $inf['regHP']) . ',' . (time(
) - $inf['regMP']) . ',' . (0 + $rgd[0]) . ',' . (0 + $rgd[1]) . ''; ?>, 1);</script>
<?php
@@ -1080,7 +1080,7 @@ if (isset($uer)) {
}
?>
<div style="padding:5px;">
Сила: <?php echo statInfo('s1'); ?><BR>
Сила: <?= statInfo('s1'); ?><BR>
Ловкость: <?php statInfo('s2'); ?><BR>
Интуиция: <?php statInfo('s3'); ?><BR>
Выносливость: <?php statInfo('s4'); ?><BR>
@@ -1101,7 +1101,7 @@ if (isset($uer)) {
<?php if ($st['s11'] > 0) { ?>
Энергия: <?php statInfo('s11'); ?><BR>
<?php } ?>
<SPAN title=''>Рейтинг сегодня: <b><?php echo $inf['repexp']; ?></b></SPAN><BR>
<SPAN title=''>Рейтинг сегодня: <b><?= $inf['repexp']; ?></b></SPAN><BR>
</div>
<div style="height:1px; background-color:#999999; margin:3px;"></div>
<div style="padding:5px;">
@@ -1114,8 +1114,8 @@ if (isset($uer)) {
$inf['win'], 0, ",", " "
) . '</a>';
} ?><BR>
Поражений: <?php echo number_format($inf['lose'], 0, ",", " "); ?><BR>
Ничьих: <?php echo number_format($inf['nich'], 0, ",", " "); ?><BR>
Поражений: <?= number_format($inf['lose'], 0, ",", " "); ?><BR>
Ничьих: <?= number_format($inf['nich'], 0, ",", " "); ?><BR>
<?php }
$inf['mod_zvanie'] = htmlspecialchars($inf['mod_zvanie'], null);
if ($inf['clan'] > 0) {
@@ -2425,32 +2425,32 @@ if (isset($uer)) {
<table cellspacing=0 cellpadding=0>
<tr>
<td style='text-align: center; padding-bottom: 18px; width: 111px;'><!-- Зодиак -->
<img width="100" height="99" title="<?php echo $name_zodiak; ?>"
<img width="100" height="99" title="<?= $name_zodiak; ?>"
style="margin-bottom: 25px; padding:5px;"
src='https://img.new-combats.com/i/zodiac/<?php echo $id_zodiak; ?>.gif'>
src='https://img.new-combats.com/i/zodiac/<?= $id_zodiak; ?>.gif'>
<BR><BR>
<?php if ($inf['id'] >= 0) { ?>
<?php } elseif ($inf['align'] > 1 && $inf['align'] < 2) { ?>
<A href='https://paladins.<?php echo $c['host']; ?>/' target='_blank'>
<A href='https://paladins.<?= $c['host']; ?>/' target='_blank'>
<img width="100" height="97" style="padding:5px;"
src='https://img.new-combats.com/i/flag_light.gif'></A>
<BR>
<A href='https://paladins.<?php echo $c['host']; ?>/' target='_blank'>
<A href='https://paladins.<?= $c['host']; ?>/' target='_blank'>
<small>Орден Света</small></A>
<?php } elseif ($inf['align'] >= 3.01 && $inf['align'] <= 3.99) { ?>
<A target='_blank' href='https://tarmans.<?php echo $c['host']; ?>/'>
<A target='_blank' href='https://tarmans.<?= $c['host']; ?>/'>
<img width="100" height="97" style="padding:5px;"
src='https://img.new-combats.com/i/flag_dark.gif'></A>
<BR>
<A href='https://tarmans.<?php echo $c['host']; ?>/' target='_blank'><small>Армада</small></A>
<A href='https://tarmans.<?= $c['host']; ?>/' target='_blank'><small>Армада</small></A>
<?php } elseif ($inf['align'] >= 2 && $inf['align'] < 3) { ?>
<A target='_blank' href='https://chaos.<?php echo $c['host']; ?>/'>
<A target='_blank' href='https://chaos.<?= $c['host']; ?>/'>
<img width="100" height="97" style="padding:5px;"
src='https://img.new-combats.com/i/flag_haos.gif'></A>
<BR>
<A href='https://chaos.<?php echo $c['host']; ?>/' target='_blank'>
<A href='https://chaos.<?= $c['host']; ?>/' target='_blank'>
<small>Цитадель Хаоса</small></A>
<?php } else { ?>
<a target='_blank' href='/news'>
@@ -2498,7 +2498,7 @@ if ($inf['info_delete'] == 0 || (($u->info['align'] > 1 && $u->info['align'] < 2
<?php
if ($inf['name'] != '') {
?>
<b style="color:#444">Имя:</b> <?php echo $inf['name']; ?><BR><?php } ?>
<b style="color:#444">Имя:</b> <?= $inf['name']; ?><BR><?php } ?>
<b style="color:#444">Пол:</b>
<?php $sex[0] = 'Мужской';
$sex[1] = 'Женский';