Замена 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
+6 -6
View File
@@ -262,7 +262,7 @@ $rz[$rt[$itm['type']]][1] ??= 'Прочие предметы';
</td>
</tr>
</table>
<? if (isset($itm['id'])) { ?>
<?php if (isset($itm['id'])) { ?>
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor='#3D3D3B'>
<tr valign=top>
<td></td>
@@ -288,7 +288,7 @@ $rz[$rt[$itm['type']]][1] ??= 'Прочие предметы';
<h2><?= $itm['name'] ?></h2>
<img src="https://img.new-combats.com/i/encicl/ln3.jpg" width="400" height="1">
</p>
<? if (file_exists(
<?php if (file_exists(
'img.new-combats.com/i/big/3d' . str_replace(
'.gif', '', str_replace('.png', '', $itm['img'])
) . '.jpg'
@@ -311,7 +311,7 @@ $rz[$rt[$itm['type']]][1] ??= 'Прочие предметы';
&nbsp;
</td>
<td width="480">
<img style="display:block" src="<? if (file_exists(
<img style="display:block" src="<?php if (file_exists(
'img.new-combats.com/i/big/3d' . str_replace(
'.gif', '', str_replace(
'.png', '', $itm['img']
@@ -321,7 +321,7 @@ $rz[$rt[$itm['type']]][1] ??= 'Прочие предметы';
'.gif', '', str_replace(
'.png', '', $itm['img']
)
) ?>.jpg<? } else { ?>https://img.new-combats.com/i/big/back.jpg<? } ?>" alt=""
) ?>.jpg<?php } else { ?>https://img.new-combats.com/i/big/back.jpg<?php } ?>" alt=""
width="480" height="360" border=1 id="bigim">
</td>
<td width="12" background="https://img.new-combats.com/i/encicl/line_right_13.gif">
@@ -342,7 +342,7 @@ $rz[$rt[$itm['type']]][1] ??= 'Прочие предметы';
</tr>
</table>
</div>
<? } ?>
<?php } ?>
<p align="center">&nbsp;</p>
<BR>
<table width="504" border="0" align=center cellpadding="0" cellspacing="0">
@@ -354,7 +354,7 @@ $rz[$rt[$itm['type']]][1] ??= 'Прочие предметы';
<td width="100%">
<A HREF="?id=<?= $itm['id'] ?>"><?= $itm['name'] ?></A>
<IMG SRC="https://img.new-combats.com/i/align/align0.gif" WIDTH=12 HEIGHT=15>
<? $crd = '';
<?php $crd = '';
if ($admin == 1) {
$crd = '<small><a href="javascript:window.open(\'https://new-combats.com/item_edit_data.php?edit_item_data=' . $itm['id'] . '\',\'winEdi1\',\'width=850,height=400,top=400,left=500,resizable=no,scrollbars=yes,status=no\');">Редактировать предмет</a> </small> &nbsp; &nbsp;';
echo $crd;