Замена short_tags.

This commit is contained in:
2023-03-31 21:42:06 +03:00
parent 01b504e677
commit c41f36644c
712 changed files with 1204 additions and 1227 deletions
+19 -19
View File
@@ -1,4 +1,4 @@
<?
<?php
if(!defined('GAME'))
{
die();
@@ -70,7 +70,7 @@ function maginfo(z,p,m,obj) {
r += 'Подавление: '+p+'';
return r;
}
<?
<?php
if(isset($btl_last['id']) && ( $u->info['battle'] == 0 || $u->info['battle'] == $btl_last['battle']) ) {
echo 'var battleFinishData = "'.$u->info['battle_text'].'";';
//$u->info['battle_text'] = '';
@@ -205,7 +205,7 @@ function explode( delimiter, string ) {
return string.toString().split ( delimiter.toString() );
}
<?
<?php
function convert($from, $to, $var)
{
if (is_array($var))
@@ -385,7 +385,7 @@ html, body {
<table width="100%" height="15" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50%" valign="top"><div id="player1_login" style="float:left;"></div></td>
<td align="center"><h5><?
<td align="center"><h5><?php
if( $thisBattle['type'] == 99 ) {
echo str_replace(' ','&nbsp;',$allprice[3]);
}else{
@@ -514,11 +514,11 @@ html, body {
<button name="go_btn" type="button" id="go_btn" style="cursor:pointer;" class="buttons inpBtl btnnew" title="Вперёд!!!" onclick="atack();">Вперёд!!!</button>
<button name="reflesh_btn" onClick="reflesh(true);" type="button" id="reflesh_btn" style="cursor:pointer;display:none;" class="buttons inpBtl btnnew" title="Обновить" >Обновить</button>
<button name="back_menu_down" onClick="top.frames['main'].location='main.php?finish=<?
<button name="back_menu_down" onClick="top.frames['main'].location='main.php?finish=<?php
echo microtime(); ?>';" type="button" id="back_menu_down" style="cursor:pointer;display:none;" class="btn" title="Вернуться" >Вернуться</button>
<input name="save_zones" id="save_zones" type="hidden" />
</td>
<td width="20"><img <?
<td width="20"><img <?php
if( $u->info['lider'] != $u->info['battle'] ) { ?>style="display:none;cursor:pointer;" <?php }else{ ?>style="cursor:pointer;"<?php } ?>onclick="top.leaderFight();" id="btn_down_img3" style="cursor:pointer;" title="Передать флаг" src="//img.new-combats.tech/i/ico_change_leader1.gif" width="16" height="19" /></td>
<td width="40"><div align="right"><img onclick="top.smena1();" id="btn_down_img2" style="cursor:pointer;" title="Смена противника (3)" src="//img.new-combats.tech/i/ico_change.gif" width="16" height="19" />&nbsp;<img src="//img.new-combats.tech/i/ico_refresh.gif" name="btn_down_img1" width="16" height="19" id="btn_down_img1" style="cursor:pointer;" title="Обновить" onclick="reflesh();" /></div></td>
@@ -535,7 +535,7 @@ html, body {
</tr>
</table>
</div>
<?
<?php
if($u->info['level'] == 0) { ?><hr />
<center><font color="#333333"><small>Просто нажмите <b>Вперёд!!!</b> чтобы сделать рандомный удар</small></font></center><hr />
<?php } ?>
@@ -548,22 +548,22 @@ html, body {
</tr>
<tr>
<td><div style="padding-top:0px;padding-bottom:10px;" align="center">
<table <?
<table <?php
if($u->info['level'] < 2) { echo ' style="display:none;" '; } ?> border="0" cellspacing="0" cellpadding="0">
<tr>
<td><span title="Нанесенный удар" style="margin-right:11px; font-size:9px;"><img onclick="startHintPriemsBattle()" width="8" height="8" src="//img.new-combats.tech/i/micro/hit.gif" /> <font id="tac1"><?
<td><span title="Нанесенный удар" style="margin-right:11px; font-size:9px;"><img onclick="startHintPriemsBattle()" width="8" height="8" src="//img.new-combats.tech/i/micro/hit.gif" /> <font id="tac1"><?php
echo 0+$u->info['tactic1']; ?></font></span></td>
<td><span title="Критический удар" style="margin-right:11px; font-size:9px;"><img width="8" height="8" src="//img.new-combats.tech/i/micro/krit.gif" /> <font id="tac2"><?
<td><span title="Критический удар" style="margin-right:11px; font-size:9px;"><img width="8" height="8" src="//img.new-combats.tech/i/micro/krit.gif" /> <font id="tac2"><?php
echo 0+$u->info['tactic2']; ?></font></span></td>
<td><span title="Проведенный контрудар" style="margin-right:11px; font-size:9px;"><img width="8" height="8" src="//img.new-combats.tech/i/micro/counter.gif" /> <font id="tac3"><?
<td><span title="Проведенный контрудар" style="margin-right:11px; font-size:9px;"><img width="8" height="8" src="//img.new-combats.tech/i/micro/counter.gif" /> <font id="tac3"><?php
echo 0+$u->info['tactic3']; ?></font></span></td>
<td><span title="Успешный блок" style="margin-right:11px; font-size:9px;"><img width="8" height="8" src="//img.new-combats.tech/i/micro/block.gif" /> <font id="tac4"><?
<td><span title="Успешный блок" style="margin-right:11px; font-size:9px;"><img width="8" height="8" src="//img.new-combats.tech/i/micro/block.gif" /> <font id="tac4"><?php
echo 0+$u->info['tactic4']; ?></font></span></td>
<td><span title="Успешное парирование" style="margin-right:11px; font-size:9px;"><img width="8" height="8" src="//img.new-combats.tech/i/micro/parry.gif" /> <font id="tac5"><?
<td><span title="Успешное парирование" style="margin-right:11px; font-size:9px;"><img width="8" height="8" src="//img.new-combats.tech/i/micro/parry.gif" /> <font id="tac5"><?php
echo 0+$u->info['tactic5']; ?></font></span></td>
<td><span title="Нанесенный урон" style="margin-right:11px; font-size:9px;"><img width="8" height="8" src="//img.new-combats.tech/i/micro/hp.gif" /> <font id="tac6"><?
<td><span title="Нанесенный урон" style="margin-right:11px; font-size:9px;"><img width="8" height="8" src="//img.new-combats.tech/i/micro/hp.gif" /> <font id="tac6"><?php
echo 0+floor($u->info['tactic6']); ?></font></span></td>
<td><span title="Уровень духа" style="margin-right:11px; font-size:9px;"><img width="7" height="8" src="//img.new-combats.tech/i/micro/spirit.gif" /> <font id="tac7"><?
<td><span title="Уровень духа" style="margin-right:11px; font-size:9px;"><img width="7" height="8" src="//img.new-combats.tech/i/micro/spirit.gif" /> <font id="tac7"><?php
if($u->info['tactic7']<0){ $u->info['tactic7'] = 0; }
echo 0+$u->info['tactic7']; ?></font></span></td>
</tr>
@@ -594,15 +594,15 @@ html, body {
<td valign="top">
<hr />
<div align="center">
<font color="green"><b>На данный момент вами нанесено урона: </b></font><b class="private">&nbsp;<span id="nabito"><?
<font color="green"><b>На данный момент вами нанесено урона: </b></font><b class="private">&nbsp;<span id="nabito"><?php
echo floor($u->info['battle_yron']); ?></span> HP&nbsp;</b><b style="color:blue">.</b><br />
<span style="display:">
<small style="display:none">(Опыт: +<b><span id="expmaybe"><?
<small style="display:none">(Опыт: +<b><span id="expmaybe"><?php
echo floor($u->info['battle_exp']); ?></span> ед.</b>, Без учета процентов)</small>
</span>
</div>
<hr /></td>
<td width="260" valign="top"><div align="right"><a href="/logs.php?log=<?
<td width="260" valign="top"><div align="right"><a href="/logs.php?log=<?php
echo $u->info['battle']; ?>" target="blank_">Лог боя »»</a><br />
(Бой идет с таймаутом <strong id="timer_out">NaN</strong> мин.)</div></td>
</tr>
@@ -611,7 +611,7 @@ html, body {
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="260">&nbsp;</td>
<td><div style="font-size:12px;" id="battle_logg" align="left"></div><div align="left">Полную версию лога боя смотрите <a href="/logs.php?log=<?
<td><div style="font-size:12px;" id="battle_logg" align="left"></div><div align="left">Полную версию лога боя смотрите <a href="/logs.php?log=<?php
echo $u->info['battle']; ?>" target="blank_">здесь »»</a></div><br /></td>
<td width="260">&nbsp;</td>
</tr>