Замена 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

View File

@@ -135,16 +135,16 @@ if (isset($_GET['itm']) && $qst_hram && $_GET['itm'] > 0) {
</style>
<div id="hint3" style="visibility:hidden"></div>
<? if (isset($_GET['r'])) { ?>
<?php if (isset($_GET['r'])) { ?>
<TABLE width="100%" cellspacing="0" cellpadding="0">
<tr>
<td valign="top">
<div align="center" class="pH3">Храм Знаний <? if ($_GET['r'] == 2) {
<div align="center" class="pH3">Храм Знаний <?php if ($_GET['r'] == 2) {
echo ', Алтарь рун';
} elseif ($_GET['r'] == 1) {
echo ', Алтарь предметов';
} ?></div>
<div align="left"><? if ($re != '') {
<div align="left"><?php if ($re != '') {
echo '<font color="red"><b>' . $re . '</b></font>';
} ?></div>
<td width="280" valign="top" align="right">
@@ -155,7 +155,7 @@ if (isset($_GET['itm']) && $qst_hram && $_GET['itm'] > 0) {
<table border="0" cellpadding="0" cellspacing="0">
<tr align="right" valign="top">
<td><!-- -->
<? echo $goLis; ?>
<?= $goLis; ?>
<!-- -->
<table border="0" cellspacing="0" cellpadding="0">
<tr>
@@ -169,8 +169,8 @@ if (isset($_GET['itm']) && $qst_hram && $_GET['itm'] > 0) {
<td bgcolor="#D3D3D3" nowrap="nowrap"><a href="#"
id="greyText"
class="menutop"
onclick="location='main.php?loc=3.180.0.267&rnd=<? echo $code; ?>';"
title="<? thisInfRm('3.180.0.267', 1); ?>">Центральная
onclick="location='main.php?loc=3.180.0.267&rnd=<?= $code; ?>';"
title="<?php thisInfRm('3.180.0.267', 1); ?>">Центральная
площадь</a></td>
</tr>
</table>
@@ -187,12 +187,12 @@ if (isset($_GET['itm']) && $qst_hram && $_GET['itm'] > 0) {
</tr>
</table>
<br/><br/>
<input type="button" class="btn" value="Обновить" onclick="location.href = '<? if (isset($_GET['r'])) {
<input type="button" class="btn" value="Обновить" onclick="location.href = '<?php if (isset($_GET['r'])) {
echo 'main.php?r=' . floor($_GET['r']);
} else {
echo 'main.php';
} ?>';"/><? if (isset($_GET['r'])) { ?> &nbsp; <input class="btn" type="button" value="Вернуться"
onclick="location.href = 'main.php';"/><? } ?><br><br>
} ?>';"/><?php if (isset($_GET['r'])) { ?> &nbsp; <input class="btn" type="button" value="Вернуться"
onclick="location.href = 'main.php';"/><?php } ?><br><br>
</td>
</table>
<div id="textgo" style="visibility:hidden;"></div>
@@ -203,18 +203,18 @@ if (!isset($_GET['r'])) {
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="250" valign="top"><? $usee = $u->getInfoPers($u->info['id'], 0);
<td width="250" valign="top"><?php $usee = $u->getInfoPers($u->info['id'], 0);
if ($usee != false) {
echo $usee[0];
} else {
echo 'information is lost.';
} ?></td>
<td width="230" valign="top" style="padding-top:19px;"><? require_once('modules_data/stats_loc.php'); ?></td>
<td width="230" valign="top" style="padding-top:19px;"><?php require_once('modules_data/stats_loc.php'); ?></td>
<td valign="top">
<div align="right">
<table border="0" cellpadding="0" cellspacing="0">
<tr align="right" valign="top">
<td><? if ($re != '') {
<td><?php if ($re != '') {
echo '<font color="red"><b>' . $re . '</b></font>';
} ?>
<table width="500" border="0" cellspacing="0" cellpadding="0">
@@ -244,7 +244,7 @@ if (!isset($_GET['r'])) {
-->
</script>
<div style="position: absolute; left: 437px; top: 96px; width: 48px; height: 33px; z-index: 94;">
<img <? thisInfRm('1.180.0.323'); ?>
<img <?php thisInfRm('1.180.0.323'); ?>
src="https://img.new-combats.com/city/ap_exit.gif"
width="57" height="26" class="aFilter"/></div>
<div style="position: absolute; left: 191px; top: 12px; width: 75px; height: 68px; z-index: 94;">
@@ -253,27 +253,27 @@ if (!isset($_GET['r'])) {
width="120" height="220" class="aFilter"
title="Диалог с Арквиерро"/></div>
<div style="position: absolute; left: 30px; top: 127px; width: 48px; height: 33px; z-index: 94;">
<img <? if ($qst_hram == false) {
<img <?php if ($qst_hram == false) {
echo 'onclick="alert(\'Арквиерро: Вы не допущены к котлам! (Выполните задание)\');"';
} else { ?> onclick="location.href='main.php?r=1'" <? } ?>
} else { ?> onclick="location.href='main.php?r=1'" <?php } ?>
title="Алтарь Предметов"
src="https://img.new-combats.com/city/ap_altar1.gif"
width="147" height="93" class="aFilter"/></div>
<div style="position: absolute; left: 333px; top: 129px; width: 48px; height: 33px; z-index: 94;">
<img <? if ($qst_hram == false) {
<img <?php if ($qst_hram == false) {
echo 'onclick="alert(\'Арквиерро: Вы не допущены к котлам! (Выполните задание)\');"';
} else { ?> onclick="location.href='main.php?r=2'" <? } ?>
} else { ?> onclick="location.href='main.php?r=2'" <?php } ?>
title="Алтарь Рун"
src="https://img.new-combats.com/city/ap_altar2.gif"
width="147" height="93" class="aFilter"/></div>
<div style="position: absolute; left: 437px; top: 96px; width: 48px; height: 33px; z-index: 94;">
<img <? thisInfRm('3.180.0.267'); ?>
<img <?php thisInfRm('3.180.0.267'); ?>
src="https://img.new-combats.com/city/ap_exit.gif"
width="57" height="26" class="aFilter"/></div>
<div id="snow"></div>
<? echo $goline; ?> </div>
<?= $goline; ?> </div>
</td>
</tr>
</table>
@@ -294,7 +294,7 @@ if (!isset($_GET['r'])) {
сайтах, типа &quot;новый город&quot;, &quot;лотерея&quot;, &quot;там, где все дают на халяву&quot;. Пароль не
нужен ни паладинам, ни кланам, ни администрации, <U>только взломщикам</U> для кражи вашего героя.<br/>
<em>Администрация.</em></small> <br/>
<? echo $rowonmax; ?><br/>
<?= $rowonmax; ?><br/>
</div></td>
</tr>
</table>
@@ -340,7 +340,7 @@ if (!isset($_GET['r'])) {
</tr>
<tr>
<td width="300" valign="top">
<b>Репутация: <? echo 0 + $u->rep['rep1']; ?></b><span id="add_rep"></span>
<b>Репутация: <?= 0 + $u->rep['rep1']; ?></b><span id="add_rep"></span>
<br/><br/>
<center><span id="use_item">Предмет не выбран</span><br/><br/>
<input class="btn" type="button" value="Растворить"
@@ -353,7 +353,7 @@ if (!isset($_GET['r'])) {
<td valign="top">
<!-- -->
<table width="100%" border="0" cellspacing="1" align="center" cellpadding="0" bgcolor="#A5A5A5">
<? if ($u->info['invBlock'] == 0) {
<?php if ($u->info['invBlock'] == 0) {
echo $itmAllSee;
} else {
echo '<div align="center" style="padding:10px;background-color:#A5A5A5;"><form method="post" action="main.php?inv=1&otdel=' . $_GET['otdel'] . '&relockinvent"><b>Рюкзак закрыт.</b><br><img title="Замок для рюкзака" src="https://img.new-combats.com/i/items/box_lock.gif"> Введите пароль: <input id="relockInv" name="relockInv" type="password"><input type="submit" value="Открыть"></form></div>';
@@ -363,7 +363,7 @@ if (!isset($_GET['r'])) {
</td>
</tr>
</table>
<? } elseif ($_GET['r'] == 2) {
<?php } elseif ($_GET['r'] == 2) {
$itmAll = '';
$itmAllSee = '';
$itmAll = $u->genInv(14, '`iu`.`uid`="' . $u->info['id'] . '" AND `iu`.`delete` = "0" AND `iu`.`inOdet`="0" AND `iu`.`inShop`="0" AND (`im`.`type` = 31 OR`im`.`type` = 72) ORDER BY `lastUPD` DESC');
@@ -450,7 +450,7 @@ if (!isset($_GET['r'])) {
</tr>
<tr>
<td width="300" valign="top">
<b>Репутация: <? echo 0 + $u->rep['rep1']; ?></b><span id="add_rep"></span>
<b>Репутация: <?= 0 + $u->rep['rep1']; ?></b><span id="add_rep"></span>
<br/><br/>
<center>
@@ -474,7 +474,7 @@ if (!isset($_GET['r'])) {
<td valign="top">
<!-- -->
<table width="100%" border="0" cellspacing="1" align="center" cellpadding="0" bgcolor="#A5A5A5">
<? if ($u->info['invBlock'] == 0) {
<?php if ($u->info['invBlock'] == 0) {
echo $itmAllSee;
} else {
echo '<div align="center" style="padding:10px;background-color:#A5A5A5;"><form method="post" action="main.php?inv=1&otdel=' . $_GET['otdel'] . '&relockinvent"><b>Рюкзак закрыт.</b><br><img title="Замок для рюкзака" src="https://img.new-combats.com/i/items/box_lock.gif"> Введите пароль: <input id="relockInv" name="relockInv" type="password"><input type="submit" value="Открыть"></form></div>';
@@ -485,4 +485,4 @@ if (!isset($_GET['r'])) {
</tr>
</table>
<? } ?>
<?php } ?>