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

@@ -557,7 +557,7 @@ body {
</style>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<? if( $roomSection == 0 ) { ?>
<?php if( $roomSection == 0 ) { ?>
<td><div style="padding-left:0px;" align="center">
<h3>Вход в подземелье</h3>
</div></td>
@@ -567,18 +567,18 @@ body {
<tr>
<td width="100%">&nbsp;</td>
<td>
<? if($roomSection==0) { ?>
<?php if($roomSection==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>
<td nowrap="nowrap"><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#DEDEDE">
<tr>
<td bgcolor="#D3D3D3"><img src="https://img.new-combats.com/i/move/links.gif" width="9" height="7" /></td>
<td bgcolor="#D3D3D3" nowrap="nowrap"><a href="#" id="greyText" class="menutop" onclick="location='main.php?loc=<? if($u->info['city']=='abandonedplain') { echo '3.180.0.267'; } elseif($u->info['city']=='fallenearth') { echo '6.180.0.102'; } elseif($u->info['room']==188) { echo '1.180.0.4'; } elseif($u->info['room']==393) { echo '1.180.0.2'; } elseif($u->info['room']==372) { echo '1.180.0.323'; }elseif($u->info['room']==395) { echo '2.180.0.231'; }elseif($u->info['room']==397) { echo '2.180.0.229'; } elseif($u->info['room']==242) { echo '2.180.0.236'; } elseif($u->info['room']==321) { echo '1.180.0.213'; } else { echo '1.180.0.321'; } ?>&rnd=<? echo $code; ?>';" title="<?
<td bgcolor="#D3D3D3" nowrap="nowrap"><a href="#" id="greyText" class="menutop" onclick="location='main.php?loc=<?php if($u->info['city']=='abandonedplain') { echo '3.180.0.267'; } elseif($u->info['city']=='fallenearth') { echo '6.180.0.102'; } elseif($u->info['room']==188) { echo '1.180.0.4'; } elseif($u->info['room']==393) { echo '1.180.0.2'; } elseif($u->info['room']==372) { echo '1.180.0.323'; }elseif($u->info['room']==395) { echo '2.180.0.231'; }elseif($u->info['room']==397) { echo '2.180.0.229'; } elseif($u->info['room']==242) { echo '2.180.0.236'; } elseif($u->info['room']==321) { echo '1.180.0.213'; } else { echo '1.180.0.321'; } ?>&rnd=<?= $code; ?>';" title="<?php
if($u->info['city']=='fallenearth'){
thisInfRm('6.180.0.102',1);
}elseif($u->info['city']=='abandonedplain'){
@@ -630,21 +630,21 @@ body {
</table></td>
</tr>
</table>
<? } ?>
<?php } ?>
</td>
</tr>
</table>
</div></td>
</tr>
</table>
<? if( $roomSection == 1 ) { ?>
<?php if( $roomSection == 1 ) { ?>
<td><div style="padding-left:0px;" align="center">
<h3>Рыцарский Магазин</h3>
</div></td>
<div align="right">
<INPUT TYPE=button value="Обновить" class="btn" style="width: 100px" onclick="location='main.php?rz=1'">&nbsp;
<TD style="width: 25%; vertical-align: top; text-align: left; "><INPUT class="btn" type='button' value='Вернуться' style='width: 100px' onclick='location="/main.php"'></TD></div>
<? } else { ?>
<?php } else { ?>
<div align="right">
<?
if($u->info['level'] > 7) {
@@ -653,7 +653,7 @@ body {
<INPUT TYPE=button value="Рыцарский Магазин" class="btn btn-success" style="width: 150px" onclick="location='main.php?rz=1'">&nbsp;&nbsp;&nbsp;
<?}?>
<TD style="width: 25%; vertical-align: top; text-align: left; "><INPUT class="btn" onclick="window.open('/forum/', 'help', 'height=500,width=1024,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes')" value="Подсказка" style="color:red;" type="button"><INPUT class="btn" type='button' value='Обновить' style='width: 100px' onclick='location="/main.php"'></TD></div>
<? } ?>
<?php } ?>
<?
if($error!='')echo '<font color="red"><b>'.$error.'</b></font><br>';
@@ -832,54 +832,54 @@ if( $roomSection == 1 ) {
//
if( !isset($hgo1['id']) ) { ?>
<input class="btn btn-success" type='button' value='Получить задание (Пещера Тысячи Проклятий)' onclick='location="main.php?rz=1&add_quest=1&city_quest=capitalcity"' />
<? }else{ ?>
<?php }else{ ?>
<input disabled="disabled" class="btn btn-danger" type='button' value='Задание будет через <?=$u->timeOut(60*60*24+$hgo1['time']-time())?> (Пещера Тысячи Проклятий)' onclick='location="main.php?rz=1&add_quest=1&city_quest=capitalcity"' />
<? }
<?php }
if( !isset($hgo2['id']) ) { ?>
<input class="btn btn-success" type='button' value='Получить задание (Бездна)' onclick='location="main.php?rz=1&add_quest=1&city_quest=angelscity"' />
<? }else{ ?>
<?php }else{ ?>
<input disabled="disabled" class="btn btn-danger" type='button' value='Задание будет через <?=$u->timeOut(60*60*24+$hgo2['time']-time())?> (Бездна)' onclick='location="main.php?rz=1&add_quest=1&city_quest=angelscity"' />
<? }
<?php }
if( !isset($hgo3['id']) ) { ?>
<input class="btn btn-success" type='button' value='Получить задание (Грибница)' onclick='location="main.php?rz=1&add_quest=1&city_quest=suncity"' />
<? }else{ ?>
<?php }else{ ?>
<input disabled="disabled" class="btn btn-danger" type='button' value='Задание будет через <?=$u->timeOut(60*60*24+$hgo3['time']-time())?> (Грибница)' onclick='location="main.php?rz=1&add_quest=1&city_quest=suncity"' />
<? }
<?php }
if( !isset($hgo4['id']) ) { ?>
<input class="btn btn-success" type='button' value='Получить задание (Катакомбы)' onclick='location="main.php?rz=1&add_quest=1&city_quest=demonscity"' />
<? }else{ ?>
<?php }else{ ?>
<input disabled="disabled" class="btn btn-danger" type='button' value='Задание будет через <?=$u->timeOut(60*60*24+$hgo4['time']-time())?> (Катакомбы)' onclick='location="main.php?rz=1&add_quest=1&city_quest=demonscity"' />
<? }
<?php }
if( !isset($hgo5['id']) ) { ?>
<input class="btn btn-success" type='button' value='Получить задание (Водосток)' onclick='location="main.php?rz=1&add_quest=1&city_quest=dreamscity"' /><br>
<? }else{ ?>
<?php }else{ ?>
<input disabled="disabled" class="btn btn-danger" type='button' value='Задание будет через <?=$u->timeOut(60*60*24+$hgo5['time']-time())?> (Водосток)' onclick='location="main.php?rz=1&add_quest=1&city_quest=dreamscity"' />
<? }
<?php }
if( !isset($hgo6['id']) ) { ?>
<input class="btn btn-success" type='button' value='Получить задание (Гора Легиона)' onclick='location="main.php?rz=1&add_quest=1&city_quest=abandonedplain"' />
<? }else{ ?>
<?php }else{ ?>
<input disabled="disabled" class="btn btn-danger" type='button' value='Задание будет через <?=$u->timeOut(60*60*24+$hgo6['time']-time())?> (Гора Легиона)' onclick='location="main.php?rz=1&add_quest=1&city_quest=abandonedplain"' />
<? }
<?php }
if( !isset($hgo7['id']) ) { ?>
<input class="btn btn-success" type='button' value='Получить задание (Излом Хаоса)' onclick='location="main.php?rz=1&add_quest=1&city_quest=izlom16"' />
<? }else{ ?>
<?php }else{ ?>
<input disabled="disabled" class="btn btn-danger" type='button' value='Задание будет через <?=$u->timeOut(60*60*24+$hgo7['time']-time())?> (Излом Хаоса)' onclick='location="main.php?rz=1&add_quest=1&city_quest=izlom16"' />
<? }
<?php }
if( !isset($hgo8['id']) ) { ?>
<input class="btn btn-success" type='button' value='Получить задание (Пещеры Мглы)' onclick='location="main.php?rz=1&add_quest=1&city_quest=sandcity"' />
<? }else{ ?>
<?php }else{ ?>
<input disabled="disabled" class="btn btn-danger" type='button' value='Задание будет через <?=$u->timeOut(60*60*24+$hgo8['time']-time())?> (Пещера Мглы)' onclick='location="main.php?rz=1&add_quest=1&city_quest=sandcity"' />
<? }
<?php }
if( !isset($hgo9['id']) ) { ?>
<input class="btn btn-success" type='button' value='Получить задание (Потерянный Вход)' onclick='location="main.php?rz=1&add_quest=1&city_quest=emeraldscity"' />
<? }else{ ?>
<?php }else{ ?>
<input disabled="disabled" class="btn btn-danger" type='button' value='Задание будет через <?=$u->timeOut(60*60*24+$hgo9['time']-time())?> (Потерянный Вход)' onclick='location="main.php?rz=1&add_quest=1&city_quest=emeraldscity"' />
<? }
<?php }
if( !isset($hgo10['id']) ) { ?>
<input class="btn btn-success" type='button' value='Получить задание (Туманные Низины)' onclick='location="main.php?rz=1&add_quest=1&city_quest=devilscity"' />
<? }else{ ?>
<?php }else{ ?>
<input disabled="disabled" class="btn btn-danger" type='button' value='Задание будет через <?=$u->timeOut(60*60*24+$hgo10['time']-time())?> (Туманные Низины)' onclick='location="main.php?rz=1&add_quest=1&city_quest=devilscity"' />
<? }
<?php }
//16 => array('sandcity','Пещеры Мглы'),
//} else {
// echo 'Получить новое задание можно <b>'.date('d.m.Y H:i',$hgo['time']+60*60*24).'</b> <font color="">( Через '.$u->timeOut($hgo['time']+60*60*24-time()).' )</font>';
@@ -1067,42 +1067,42 @@ if( $roomSection == 1 ) {
//цена на слоты
?>
<fieldset>
<legend><font color=brown><b>Наград: </font></b><font color=green><b> <? echo ( isset( $rt ) && $rt == 1 ? ($u->rep['allrep']-$u->rep['allnurep'])-$cur_price['price'] : ($u->rep['allrep']-$u->rep['allnurep']) );?>
<legend><font color=brown><b>Наград: </font></b><font color=green><b> <?= ( isset( $rt ) && $rt == 1 ? ($u->rep['allrep']-$u->rep['allnurep'])-$cur_price['price'] : ($u->rep['allrep']-$u->rep['allnurep']) );?>
</font><font color=brown>ед.</b></legend></font>
<table>
<? if( (50-$u->rep['add_stats']) > 0 ) { ?>
<?php if( (50-$u->rep['add_stats']) > 0 ) { ?>
<tr>
<td>Способность (еще <?=(50-$u->rep['add_stats'])?>)</td>
<td style='padding-left: 10px'>за<b> 2000</b> ед.</td>
<td style='padding-left: 10px'><input class="btn" type='button' value='Купить'
onclick="if (confirm('Купить: Способность?\n\nКупив способность, Вы сможете увеличить характеристики персонажа.\nНапример, можно увеличить силу.')) {location='main.php?rz=1&buy1=1'}" /></td>
</tr>
<? } ?>
<? if( (15-$u->rep['add_skills']) > 0 ) { ?>
<?php } ?>
<?php if( (15-$u->rep['add_skills']) > 0 ) { ?>
<tr>
<td>Умение (еще <?=(15-$u->rep['add_skills'])?>)</td>
<td style='padding-left: 10px'>за<b> 5000</b> ед.</td>
<td style='padding-left: 10px'><input class="btn" type='button' value='Купить'
onclick="if (confirm('Купить: Умение?\n\nУмение даёт возможность почуствовать себя мастером меча, топора, магии и т.п.')) {location='main.php?rz=1&buy1=2'}" /></td>
</tr>
<? } ?>
<?php } ?>
<tr>
<td>Деньги (10 кр.)</td>
<td style='padding-left: 10px'>за<b> 100</b> ед.</td>
<td style='padding-left: 10px'><input class="btn" type='button' value='Купить'
onclick="if (confirm('Купить: Деньги (10 кр.)?\n\nНаграду можно получить полновесными кредитами.')) {location='main.php?rz=1&buy1=3'}" /></td>
</tr>
<? if( (4-$u->rep['add_slot']) > 0 ) { ?>
<?php if( (4-$u->rep['add_slot']) > 0 ) { ?>
<tr>
<td>Слоты (еще <?=(4-$u->rep['add_slot'])?>)</td>
<td style='padding-left: 10px'>за <b><?=2000+($u->rep['add_slot']*2000);?></b> ед. и <b><?=500+($u->rep['add_slot']*500); ?></b> кр.</td>
<td style='padding-left: 10px'><input class="btn" type='button' value='Купить'
onclick="if (confirm('Купить: слоты?\n\n+1 дополнительный слот для приема')) {location='main.php?rz=1&buy1=5'}" /></td>
</tr>
<? } ?>
<?php } ?>
</table>
</fieldset>
<?
<?php
$chk = mysql_fetch_array(mysql_query('SELECT COUNT(`u`.`id`),SUM(`m`.`price1`) FROM `items_users` AS `u` LEFT JOIN `items_main` AS `m` ON `u`.`item_id` = `m`.`id` WHERE `m`.`type` = "61" AND `u`.`delete` = "0" AND `u`.`inOdet` = "0" AND `u`.`inShop` = "0" AND `u`.`inTransfer` = "0" AND `u`.`uid` = "'.$u->info['id'].'" LIMIT 1000'));
if(isset($_GET['buy777']) && $chk[0]>0) {
?>
@@ -1128,7 +1128,7 @@ if( $roomSection == 1 ) {
?>
<input class="btnnew" type='button' value='Сдать чеки'
onclick="if (confirm('Сдать все чеки (<?=$chk[0]?> шт.) находящиеся у Вас в инвентаре за <?=$chk[1]?> кр. ?')) {location='main.php?rz=1&buy777=1'}" />
<? } ?>
<?php } ?>
<fieldset style='margin-top:15px;'>
<table>
<?
@@ -1153,7 +1153,7 @@ onclick="if (confirm('Сдать все чеки (<?=$chk[0]?> шт.) наход
<table width="400" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top">
<form id="from" autocomplete="0" name="from" action="main.php?pz1=<? echo $code; ?>" method="post">
<form id="from" autocomplete="0" name="from" action="main.php?pz1=<?= $code; ?>" method="post">
<fieldset style='padding-left: 5; width=50%'>
<legend><b> Группа </b> </legend>
<font color=green><b> Выберите пещеру:</b></font><hr />
@@ -1181,20 +1181,20 @@ onclick="if (confirm('Сдать все чеки (<?=$chk[0]?> шт.) наход
<label><input type="radio" name="rpmg1" id="rpmg1" value="16" />
<img style="vertical-align:bottom" src="https://img.new-combats.com/i/city_ico2/sandcity.gif" width="34" height="19" />Пещера Мглы[10]</label><br />
<hr>
<? if ($u->info['level'] == 12){?>
<?php if ($u->info['level'] == 12){?>
<label><input type="radio" name="rpmg1" id="rpmg1" value="5" />
<img style="vertical-align:bottom" src="https://img.new-combats.com/i/city_ico2/emeraldscity.gif" width="34" height="19" />Потерянный вход[11-12]</label><br />
<hr>
<? }?>
<?php }?>
<!--
<label><input type="radio" name="rpmg1" id="rpmg1" value="444" />
<img style="vertical-align:bottom" src="https://img.new-combats.com/i/city_ico2/eastcity.png" width="34" height="19" />Тропа Инквизиции</label><br />
<hr>-->
<? //if ($u->info['admin']> 0){?>
<?php //if ($u->info['admin']> 0){?>
<label><input type="radio" name="rpmg1" id="rpmg1" value="106" />
<img style="vertical-align:bottom" src="https://img.new-combats.com/i/city_ico2/devilscity.gif" width="34" height="19" />Туманные Низины v.2.0</label><br />
<hr />
<? //}?>
<?php //}?>
<!--Комментарий
<input autocomplete="off" type="text" name="text" maxlength="40" size="40" />-->