Замена short_tags и <?php echo.
This commit is contained in:
@@ -357,7 +357,7 @@ var sd4 = "<?=$u->info['id'];?>";
|
||||
<SCRIPT LANGUAGE="JavaScript" SRC="https://img.new-combats.com/js/sl2.27.js"></SCRIPT>
|
||||
<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 bgcolor=e2e0e0>
|
||||
<div id=hint4 class=ahint></div>
|
||||
<? if($u->error!=''){ echo '<b style="color:red">'.$u->error.'</b><br>'; } ?>
|
||||
<?php if($u->error!=''){ echo '<b style="color:red">'.$u->error.'</b><br>'; } ?>
|
||||
<TABLE width=100%><TD valign=top height=100%>
|
||||
<TABLE width=100% cellspacing=0 cellpadding=4 bgcolor=d2d2d2>
|
||||
<FORM METHOD=POST name=F1>
|
||||
@@ -503,7 +503,7 @@ var sd4 = "<?=$u->info['id'];?>";
|
||||
<td width=50%><b> В сундуке</b></td>
|
||||
<td><b> В рюкзаке</b></td>
|
||||
</tr>
|
||||
<? if ($u->info['admin'] > 0) { /*?>
|
||||
<?php if ($u->info['admin'] > 0) { /*?>
|
||||
<tr bgcolor="#A0A0A0">
|
||||
<td>
|
||||
<form id="line_filter" style="display:inline;" onsubmit="return false;" prc_adsf="true">
|
||||
@@ -534,10 +534,10 @@ var sd4 = "<?=$u->info['id'];?>";
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
<? */} ?>
|
||||
<?php */} ?>
|
||||
<tr>
|
||||
<td width='50%' valign='top'><div <? if($chest[0]!=0){ echo 'style="display:none;"'; }?> id="chest_null"> ПУСТО</div><table id="chest" width='100%' cellpadding='2' BGCOLOR='A5A5A5' cellspacing='1'><tbody><? if($chest[0]!=0){ echo $chest[2]; } ?></tbody></table></td>
|
||||
<td width='50%' valign='top'><div <? if($invertory[0]!=0){ echo 'style="display:none;"';}?> id="invertory_null"> ПУСТО</div><table id="invertory" width='100%' cellpadding='2' BGCOLOR='A5A5A5' cellspacing='1'><tbody><? if($invertory[0]!=0){ echo $invertory[2]; } ?></tbody></table></td>
|
||||
<td width='50%' valign='top'><div <?php if($chest[0]!=0){ echo 'style="display:none;"'; }?> id="chest_null"> ПУСТО</div><table id="chest" width='100%' cellpadding='2' BGCOLOR='A5A5A5' cellspacing='1'><tbody><?php if($chest[0]!=0){ echo $chest[2]; } ?></tbody></table></td>
|
||||
<td width='50%' valign='top'><div <?php if($invertory[0]!=0){ echo 'style="display:none;"';}?> id="invertory_null"> ПУСТО</div><table id="invertory" width='100%' cellpadding='2' BGCOLOR='A5A5A5' cellspacing='1'><tbody><?php if($invertory[0]!=0){ echo $invertory[2]; } ?></tbody></table></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -878,42 +878,42 @@ echo'<HR>';
|
||||
<td>
|
||||
|
||||
<!-- -->
|
||||
<? echo $goLis; ?>
|
||||
<?= $goLis; ?>
|
||||
<!-- -->
|
||||
|
||||
<table width="100" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td nowrap="nowrap">
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#DEDEDE">
|
||||
<? if($u->info['room'] == 214 && $sleep_mod == 0) { ?>
|
||||
<?php if($u->info['room'] == 214 && $sleep_mod == 0) { ?>
|
||||
<tr>
|
||||
<td bgcolor="#D3D3D3"><img src="https://img.new-combats.com/i/move/links.gif" width="9" height="7" /></td>
|
||||
<td bgcolor="#D3D3D3" nowrap><a href="#" id="greyText" class="menutop" onClick="location='main.php?loc=1.180.0.11&rnd=<? echo $code; ?>';" title="<? thisInfRm('1.180.0.11',1); ?>">Страшилкина Улица</a></td>
|
||||
<td bgcolor="#D3D3D3" nowrap><a href="#" id="greyText" class="menutop" onClick="location='main.php?loc=1.180.0.11&rnd=<?= $code; ?>';" title="<?php thisInfRm('1.180.0.11',1); ?>">Страшилкина Улица</a></td>
|
||||
</tr>
|
||||
<?
|
||||
if($ar_lvl>=1){?>
|
||||
<tr>
|
||||
<td bgcolor="#D3D3D3"><img src="https://img.new-combats.com/i/move/links.gif" width="9" height="7" /></td>
|
||||
<td bgcolor="#D3D3D3" nowrap><a href="#" id="greyText" class="menutop" onClick="location='main.php?loc=1.180.0.217&rnd=<? echo $code; ?>';" title="<? thisInfRm('1.180.0.217',1); ?>">Общ. Этаж 1</a></td>
|
||||
<td bgcolor="#D3D3D3" nowrap><a href="#" id="greyText" class="menutop" onClick="location='main.php?loc=1.180.0.217&rnd=<?= $code; ?>';" title="<?php thisInfRm('1.180.0.217',1); ?>">Общ. Этаж 1</a></td>
|
||||
</tr>
|
||||
<? } } ?>
|
||||
<? if($u->info['room']=='217' and $ar_lvl>=1 and $sleep_mod==0) { ?>
|
||||
<?php } } ?>
|
||||
<?php if($u->info['room']=='217' and $ar_lvl>=1 and $sleep_mod==0) { ?>
|
||||
<tr>
|
||||
<td bgcolor="#D3D3D3"><img src="https://img.new-combats.com/i/move/links.gif" width="9" height="7" /></td>
|
||||
<td bgcolor="#D3D3D3" nowrap><a href="#" id="greyText" class="menutop" onClick="location='main.php?loc=1.180.0.214&rnd=<? echo $code; ?>';" title="<? thisInfRm('1.180.0.214',1); ?>">Общежитие</a></td>
|
||||
<td bgcolor="#D3D3D3" nowrap><a href="#" id="greyText" class="menutop" onClick="location='main.php?loc=1.180.0.214&rnd=<?= $code; ?>';" title="<?php thisInfRm('1.180.0.214',1); ?>">Общежитие</a></td>
|
||||
</tr>
|
||||
<?
|
||||
}if($u->info['room']=='217' and $ar_lvl>=2 and $sleep_mod==0){
|
||||
?>
|
||||
<tr>
|
||||
<td bgcolor="#D3D3D3"><img src="https://img.new-combats.com/i/move/links.gif" width="9" height="7" /></td>
|
||||
<td bgcolor="#D3D3D3" nowrap><a href="#" id="greyText" class="menutop" onClick="location='main.php?loc=1.180.0.218&rnd=<? echo $code; ?>';" title="<? thisInfRm('1.180.0.218',1); ?>">Общ. Этаж 2</a></td>
|
||||
<td bgcolor="#D3D3D3" nowrap><a href="#" id="greyText" class="menutop" onClick="location='main.php?loc=1.180.0.218&rnd=<?= $code; ?>';" title="<?php thisInfRm('1.180.0.218',1); ?>">Общ. Этаж 2</a></td>
|
||||
</tr>
|
||||
<?}?>
|
||||
<?if($u->info['room']=='218' and $ar_lvl>=2 and $sleep_mod==0){?>
|
||||
<tr>
|
||||
<td bgcolor="#D3D3D3"><img src="https://img.new-combats.com/i/move/links.gif" width="9" height="7" /></td>
|
||||
<td bgcolor="#D3D3D3" nowrap><a href="#" id="greyText" class="menutop" onClick="location='main.php?loc=1.180.0.217&rnd=<? echo $code; ?>';" title="<? thisInfRm('1.180.0.217',1); ?>">Общ. Этаж 1</a></td>
|
||||
<td bgcolor="#D3D3D3" nowrap><a href="#" id="greyText" class="menutop" onClick="location='main.php?loc=1.180.0.217&rnd=<?= $code; ?>';" title="<?php thisInfRm('1.180.0.217',1); ?>">Общ. Этаж 1</a></td>
|
||||
</tr>
|
||||
<?
|
||||
}
|
||||
@@ -921,16 +921,16 @@ if($u->info['room']=='218' and $ar_lvl>=3 and $sleep_mod==0){
|
||||
?>
|
||||
<tr>
|
||||
<td bgcolor="#D3D3D3"><img src="https://img.new-combats.com/i/move/links.gif" width="9" height="7" /></td>
|
||||
<td bgcolor="#D3D3D3" nowrap><a href="#" id="greyText" class="menutop" onClick="location='main.php?loc=1.180.0.219&rnd=<? echo $code; ?>';" title="<? thisInfRm('1.180.0.219',1); ?>">Общ. Этаж 3</a></td>
|
||||
<td bgcolor="#D3D3D3" nowrap><a href="#" id="greyText" class="menutop" onClick="location='main.php?loc=1.180.0.219&rnd=<?= $code; ?>';" title="<?php thisInfRm('1.180.0.219',1); ?>">Общ. Этаж 3</a></td>
|
||||
</tr>
|
||||
<? }
|
||||
<?php }
|
||||
if($u->info['room']=='219' and $ar_lvl>=3 and !isset($sleep['id'])){
|
||||
?>
|
||||
<tr>
|
||||
<td bgcolor="#D3D3D3"><img src="https://img.new-combats.com/i/move/links.gif" width="9" height="7" /></td>
|
||||
<td bgcolor="#D3D3D3" nowrap><a href="#" id="greyText" class="menutop" onClick="location='main.php?loc=1.180.0.218&rnd=<? echo $code; ?>';" title="<? thisInfRm('1.180.0.218',1); ?>">Общ. Этаж 2</a></td>
|
||||
<td bgcolor="#D3D3D3" nowrap><a href="#" id="greyText" class="menutop" onClick="location='main.php?loc=1.180.0.218&rnd=<?= $code; ?>';" title="<?php thisInfRm('1.180.0.218',1); ?>">Общ. Этаж 2</a></td>
|
||||
</tr>
|
||||
<? } ?>
|
||||
<?php } ?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -945,21 +945,21 @@ if($u->info['room']=='219' and $ar_lvl>=3 and !isset($sleep['id'])){
|
||||
<TR><TD colspan=2>
|
||||
<NOBR>
|
||||
Деньги: <?=$u->info['money'];?> кр.<BR><BR>
|
||||
<? if($u->info['room']=="214"){?>
|
||||
<?php if($u->info['room']=="214"){?>
|
||||
<B>Аренда</B>
|
||||
<? }else{
|
||||
<?php }else{
|
||||
//Коридор
|
||||
//$room_array = array (1=>'Комната',2=>'Сундук',3=>'Сувениры',4=>'Животные',5=>'Сон');
|
||||
if($_GET['room']!=1){echo"<a href='?room=1&0.".$code."'><B>Комната</B></a>";}else{echo"<B>Комната</B>";}?><BR>
|
||||
<? if($_GET['room']!=2){echo"<A href='?room=2&0.".$code."'>Сундук</A>";}else{echo"<B>Сундук</B>";}?><BR>
|
||||
<? if($_GET['room']!=6){echo"<A href='?room=6&0.".$code."'>Сувениры</A>";}else{echo"<B>Сувениры</B>";}?><BR>
|
||||
<? if($_GET['room']!=7){echo"<A href='?room=7&0.".$code."'>Персонажи</A>";}else{echo"<B>Персонажи</B>";}?><BR>
|
||||
<?php if($_GET['room']!=2){echo"<A href='?room=2&0.".$code."'>Сундук</A>";}else{echo"<B>Сундук</B>";}?><BR>
|
||||
<?php if($_GET['room']!=6){echo"<A href='?room=6&0.".$code."'>Сувениры</A>";}else{echo"<B>Сувениры</B>";}?><BR>
|
||||
<?php if($_GET['room']!=7){echo"<A href='?room=7&0.".$code."'>Персонажи</A>";}else{echo"<B>Персонажи</B>";}?><BR>
|
||||
<?
|
||||
if($objaga['type']=="advanced2") {
|
||||
if($_GET['room']!=3){echo"<A href='?room=3&0.".$code."'>Животные</A><BR>";}else{echo"<B>Животные</B><BR>";}
|
||||
}?>
|
||||
<? if($_GET['room']!=4){echo"<A href='?room=4&0.".$code."'>Сон</A>";}else{echo"<B>Сон</B>";}?>
|
||||
<? } ?>
|
||||
<?php if($_GET['room']!=4){echo"<A href='?room=4&0.".$code."'>Сон</A>";}else{echo"<B>Сон</B>";}?>
|
||||
<?php } ?>
|
||||
<?
|
||||
} #end hostel
|
||||
?>
|
||||
Reference in New Issue
Block a user