game/modules_data/location/ab/cp2.php
2022-07-01 12:45:43 +00:00

95 lines
5.6 KiB
PHP

<?
if(!defined('GAME'))
{
die();
}
$tattack = '';
if($u->room['file']=='ab/cp2')
{
if(date("H")>=6 && date("H")<22) {
$now = 'day';
} else { $now = 'night'; }
if($u->info['level'] >= 4)
{
if(date("H")>=6 && date("H")<22)
{
$tattack = '<span onMouseMove="this.runtimeStyle.color = \'white\';" onMouseOut="this.runtimeStyle.color = this.parentElement.style.color;" onclick="">Íàïàäåíèå äîñòóïíî ñ 22 äî 6 ÷.</span>';
} else {
if(isset($_POST['attack']))
{
$magic->magicCentralAttack();
}
$tattack = '<span onMouseMove="this.runtimeStyle.color = \'white\';" onMouseOut="this.runtimeStyle.color = this.parentElement.style.color;" onclick="findlogin(\'Íàïàñòü\',\'attack\',\'\',\'\');">Íàïàñòü</span>';
}
}
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="250" valign="top">
<? $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 valign="top"><div align="right">
<table border="0" cellpadding="0" cellspacing="0">
<tr align="right" valign="top">
<td>
<? if($re!=''){ echo '<font color="red"><b>'.$re.'</b></font>'; } ?>
<table width="500" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<div style="position:relative; cursor: pointer;" id="ione">
<img src="https://img.new-combats.com/i/images/300x225/ab_bg107_1.jpg" alt="" name="img_ione" width="500" height="268" border="1" id="img_ione"/>
<div id="buttons_on_image" style="cursor:pointer; font-weight:bold; color:#D8D8D8; font-size:10px;">
<? echo $tattack; ?>
&nbsp;
<span onMouseMove="this.runtimeStyle.color = 'white';" onMouseOut="this.runtimeStyle.color = this.parentElement.style.color;" onclick="window.open('https://new-combats.com/forum', 'forum', 'location=yes,menubar=yes,status=yes,resizable=yes,toolbar=yes,scrollbars=yes,scrollbars=yes')">Ôîðóì</span> &nbsp;
</div>
<script language="javascript" type="text/javascript">
<!--
if(document.getElementById('ione'))
{
document.getElementById('ione').appendChild(document.getElementById('buttons_on_image'));
document.getElementById('buttons_on_image').style.position = 'absolute';
document.getElementById('buttons_on_image').style.bottom = '8px';
document.getElementById('buttons_on_image').style.right = '23px';
}else{
document.getElementById('buttons_on_image').style.display = 'none';
}
-->
</script>
<div style="position:absolute; left:24px; top:52px; width:29px; height:25px; z-index:94;"><img <? thisInfRm('3.180.0.267'); ?> src="https://img.new-combats.com/i/images/300x225/dm_left.gif" width="29" height="25" class="aFilter" /></div>
<div style="position:absolute; left:86px; top:59px; width:45px; height:63px; z-index:94;"><img <? thisInfRm('3.180.0.353'); ?> src="https://img.new-combats.com/i/images/300x225/ab_107_tower1.gif" width="45" height="63" class="aFilter" /></div>
<div style="position:absolute; left:320px; top:55px; width:34px; height:63px; z-index:94;"><img <? thisInfRm('3.180.0.278'); ?> src="https://img.new-combats.com/i/images/300x225/dungeon/ab_107_tower2.gif" width="34" height="63" class="aFilter" /></div>
<div id="snow"></div>
<? echo $goline; ?>
</div>
</td>
</tr>
</table>
<div style="display:none; height:0px " id="moveto"></div>
<div align="right" style="padding: 3px;"><small>&laquo;<? echo $c['title3']; ?>&raquo; ïðèâåòñòâóåò Âàñ, <b><? echo $u->info['login']; ?></b>. Âû íàõîäèòü íà öåíòðàëüíîé ïëîùàäè Abandoned Plain.<br />
</small></div></td>
<td>
<!-- <br /><span class="menutop"><nobr>Êîìíàòà äëÿ íîâè÷êîâ</nobr></span>-->
</td>
</tr>
</table>
<small>
<HR>
<? $hgo = $u->testHome(); if(!isset($hgo['id'])){ ?><INPUT onclick="location.href='main.php?homeworld=<? echo $code; ?>';" class="btn" value="Âîçâðàò" type="button" name="combats2"><? } unset($hgo); ?>
<INPUT id="forum" class="btn" onclick="window.open('https://new-combats.com/forum/', 'forum', 'location=yes,menubar=yes,status=yes,resizable=yes,toolbar=yes,scrollbars=yes,scrollbars=yes')" value="Ôîðóì" type="button" name="forum">
<INPUT class="btn" onclick="window.open('/encicl/help/top1.html', 'help', 'height=300,width=500,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes')" value="Ïîäñêàçêà" type="button">
<INPUT class="btn" value="Îáúåêòû" type="button">
<br />
<strong>Âíèìàíèå!</strong> Íèêîãäà è íèêîìó íå ãîâîðèòå ïàðîëü îò ñâîåãî ïåðñîíàæà. Íå ââîäèòå ïàðîëü íà äðóãèõ ñàéòàõ, òèïà "íîâûé ãîðîä", "ëîòåðåÿ", "òàì, ãäå âñå äàþò íà õàëÿâó". Ïàðîëü íå íóæåí íè ïàëàäèíàì, íè êëàíàì, íè àäìèíèñòðàöèè, <U>òîëüêî âçëîìùèêàì</U> äëÿ êðàæè âàøåãî ãåðîÿ.<BR>
<em>Àäìèíèñòðàöèÿ.</em></small> <BR>
<? echo $rowonmax; ?><BR>
</div></td>
</tr>
</table>
<?
}
?>