game/modules_data/location/ab/cp.php

95 lines
6.3 KiB
PHP
Raw Normal View History

2023-03-31 18:42:06 +00:00
<?php
2022-06-06 21:30:34 +00:00
if(!defined('GAME'))
{
die();
}
$tattack = '';
if($u->room['file']=='ab/cp')
{
if(date("H")>=6 && date("H")<22) {
$now = 'day';
} else { $now = 'night'; }
if($u->info['level'] >= 4)
{
if(date("H")>=6 && date("H")<22)
{
2023-01-10 16:29:32 +00:00
$tattack = '<span onMouseMove="this.runtimeStyle.color = \'white\';" onMouseOut="this.runtimeStyle.color = this.parentElement.style.color;" onclick="">Нападение доступно с 22 до 6 ч.</span>';
2022-06-06 21:30:34 +00:00
} else {
if(isset($_POST['attack']))
{
$magic->magicCentralAttack();
}
2023-01-10 16:29:32 +00:00
$tattack = '<span onMouseMove="this.runtimeStyle.color = \'white\';" onMouseOut="this.runtimeStyle.color = this.parentElement.style.color;" onclick="findlogin(\'Напасть\',\'attack\',\'\',\'\');">Напасть</span>';
2022-06-06 21:30:34 +00:00
}
}
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="250" valign="top">
2023-03-31 16:54:33 +00:00
<?php $usee = $u->getInfoPers($u->info['id'],0); if($usee!=false){ echo $usee[0]; }else{ echo 'information is lost.'; } ?>
2022-06-06 21:30:34 +00:00
</td>
2023-03-31 16:54:33 +00:00
<td width="230" valign="top" style="padding-top:19px;"><?php require_once('modules_data/stats_loc.php'); ?></td>
2022-06-06 21:30:34 +00:00
<td valign="top"><div align="right">
<table border="0" cellpadding="0" cellspacing="0">
<tr align="right" valign="top">
<td>
2023-03-31 16:54:33 +00:00
<?php if($re!=''){ echo '<font color="red"><b>'.$re.'</b></font>'; } ?>
2022-06-06 21:30:34 +00:00
<table width="500" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<div style="position:relative; cursor: pointer;" id="ione">
<img src="//img.new-combats.tech/i/images/300x225/ap_bg1_1.jpg" alt="" name="img_ione" width="500" height="268" border="1" id="img_ione"/>
2022-06-06 21:30:34 +00:00
<div id="buttons_on_image" style="cursor:pointer; font-weight:bold; color:#D8D8D8; font-size:10px;">
2023-03-31 16:54:33 +00:00
<?= $tattack; ?>
2022-06-06 21:30:34 +00:00
&nbsp;
<span onMouseMove="this.runtimeStyle.color = 'white';" onMouseOut="this.runtimeStyle.color = this.parentElement.style.color;" onclick="window.open('/forum', 'forum', 'location=yes,menubar=yes,status=yes,resizable=yes,toolbar=yes,scrollbars=yes,scrollbars=yes')">Форум</span> &nbsp;
2022-06-06 21:30:34 +00:00
</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:50px; top:70px; width:48px; height:68px; z-index:94;"><img <?php thisInfRm('3.180.0.275'); ?> src="//img.new-combats.tech/i/images/300x225/dungeon/ap_tower1.gif" width="48" height="68" class="aFilter" /></div>
<div style="position:absolute; left:10px; top:200px; width:21px; height:30px; z-index:94;"><img <?php thisInfRm('3.180.0.277'); ?> src="//img.new-combats.tech/i/images/300x225/dungeon/dm_left1.gif" width="21" height="30" class="aFilter" /></div>
<div style="position:absolute; left:218px; top:134px; width:84px; height:87px; z-index:94;"><img <?php thisInfRm('3.180.0.266'); ?> src="//img.new-combats.tech/i/images/300x225/ap_port.gif" width="84" height="87" class="aFilter" /></div>
<div style="position:absolute; left:338px; top:47px; width:122px; height:140px; z-index:94;"><img <?php thisInfRm('3.180.0.271'); ?> src="//img.new-combats.tech/i/images/300x225/ap_tower3.gif" width="122" height="140" class="aFilter" /></div>
<div style="position:absolute; left:466px; top:198px; width:21px; height:30px; z-index:94;"><img <?php thisInfRm('3.180.0.268'); ?> src="//img.new-combats.tech/i/images/300x225/dm_right.gif" width="21" height="30" class="aFilter" /></div>
2022-06-06 21:30:34 +00:00
<div id="snow"></div>
2023-03-31 16:54:33 +00:00
<?= $goline; ?>
2022-06-06 21:30:34 +00:00
</div>
</td>
</tr>
</table>
<div style="display:none; height:0px " id="moveto"></div>
2023-03-31 16:54:33 +00:00
<div align="right" style="padding: 3px;"><small>&laquo;<?= $c['title3']; ?>&raquo; приветствует Вас, <b><?= $u->info['login']; ?></b>. Вы находить на центральной площади Abandoned Plain.<br />
2022-06-06 21:30:34 +00:00
</small></div></td>
<td></td>
2022-06-06 21:30:34 +00:00
</tr>
</table>
<small>
<HR>
2023-03-31 16:54:33 +00:00
<?php $hgo = $u->testHome(); if(!isset($hgo['id'])){ ?><INPUT onclick="location.href='main.php?homeworld=<?= $code; ?>';" class="btn" value="Возврат" type="button" name="combats2"><?php } unset($hgo); ?>
<INPUT id="forum" class="btn" onclick="window.open('/forum/', 'forum', 'location=yes,menubar=yes,status=yes,resizable=yes,toolbar=yes,scrollbars=yes,scrollbars=yes')" value="Форум" type="button" name="forum">
2023-01-10 16:29:32 +00:00
<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">
2022-06-06 21:30:34 +00:00
<br />
2023-01-10 16:29:32 +00:00
<strong>Внимание!</strong> Никогда и никому не говорите пароль от своего персонажа. Не вводите пароль на других сайтах, типа "новый город", "лотерея", "там, где все дают на халяву". Пароль не нужен ни паладинам, ни кланам, ни администрации, <U>только взломщикам</U> для кражи вашего героя.<BR>
<em>Администрация.</em></small> <BR>
2023-03-31 16:54:33 +00:00
<?= $rowonmax; ?><BR>
2022-06-06 21:30:34 +00:00
</div></td>
</tr>
</table>
2023-03-31 18:42:06 +00:00
<?php
2022-06-06 21:30:34 +00:00
}
?>