game/modules_data/location/izlom2.php

160 lines
6.3 KiB
PHP
Raw Normal View History

2022-06-06 21:30:34 +00:00
<?php
if (!defined('GAME')) {
die();
2022-06-06 21:30:34 +00:00
}
if ($u->room['file'] != 'izlom2') {
return;
}
if (isset($_POST['level']) && (int)$_POST['level'] <= $u->info['level'] && (int)$_POST['level'] <= 7) {
$eff1 = mysql_fetch_array(mysql_query('SELECT * FROM `eff_users` WHERE `uid` = "' . $u->info['id'] . '" AND `id_eff` = "31" AND `delete` = "0" LIMIT 1'));
if (isset($eff1['id'])) {
2023-01-10 16:29:32 +00:00
echo '<b style="color: red">Вы не можете начать новый поход пока действует эффект &quot;Касание Хаоса&quot;</b>';
} elseif (!isset($zv)) {
$zv = new FightRequest();
}
}
$i = 0;
$text = '';
$sp = mysql_query('SELECT * FROM `izlom_rating` ORDER BY `voln` DESC LIMIT 50');
$uidz = [];
while ($pl = mysql_fetch_array($sp)) {
if (isset($uidz[$pl['uid']])) {
continue;
}
$i++;
$uidz[$pl['uid']] = $i;
2023-01-10 16:29:32 +00:00
$text .= $i . '. <span class="date">' . date('d.m.Y H:i', $pl['time']) . '</span>, Волна: <b>' . $pl['voln'] . '</b>, ' . $u->microLogin($pl['uid'], 1) . '<br>';
}
if (empty($text)) {
2023-01-10 16:29:32 +00:00
$text = 'История пуста, скорее всего не нашлось смельчаков...';
2022-06-06 21:30:34 +00:00
}
?>
<style type="text/css">
.pH3 {
COLOR: #8f0000;
FONT-FAMILY: Arial, serif;
FONT-SIZE: 12pt;
FONT-WEIGHT: bold;
}
.class_ {
font-weight: bold;
color: #C5C5C5;
cursor: pointer;
}
.class_st {
font-weight: bold;
color: #659BA3;
cursor: pointer;
}
.class__ {
font-weight: bold;
color: #FFFFFF;
cursor: pointer;
background-color: #659BA3;
}
.class__st {
font-weight: bold;
color: #FFFFFF;
cursor: pointer;
background-color: #659BA3;
font-size: 10px;
}
.class_old {
font-weight: bold;
color: #919191;
cursor: pointer;
}
.class__old {
font-weight: bold;
color: #FFFFFF;
cursor: pointer;
background-color: #838383;
font-size: 10px;
}
div.error {
color: red;
font-weight: bold;
text-align: right;
}
</style>
<div class="error"><?php if (!empty($re)) {
echo $re;
} ?></div>
<div id="hint3" style="visibility:hidden"></div>
<TABLE width="100%" cellspacing="0" cellpadding="0">
<tr>
<td valign="top">
2023-01-10 16:29:32 +00:00
<div align="center" class="pH3">Излом Хаоса</div>
<td width="280" valign="top">
<table cellspacing="0" cellpadding="0">
<tr>
<td width="100%">&nbsp;</td>
<td>
<table border="0" cellpadding="0" cellspacing="0">
<tr align="right" valign="top">
<td><!-- -->
<?= $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="//img.new-combats.tech/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=3.180.0.353&rnd=<?= $code; ?>';"
2023-01-10 16:29:32 +00:00
title="<?php thisInfRm('3.180.0.353', 1); ?>">Излом
Хаоса - 16</a></td>
</tr>
<tr>
<td bgcolor="#D3D3D3"><img
src="//img.new-combats.tech/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=3.180.0.270&rnd=<?= $code; ?>';"
2023-01-10 16:29:32 +00:00
title="<?php thisInfRm('3.180.0.270', 1); ?>">Магазин
Излома</a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td nowrap="nowrap">&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br/>
</td>
</table>
<div id="textgo" style="visibility:hidden;"></div>
2022-06-06 21:30:34 +00:00
<FORM method="post">
<label>
<input checked="checked" type="radio" name="level" value="7" <?php if ($u->info['level'] < 7) {
echo 'disabled';
} ?>>
2023-01-10 16:29:32 +00:00
Проход в &laquo;Излом Хаоса&raquo;<br/>
</label>
2023-01-10 16:29:32 +00:00
<INPUT type='submit' value='Начать поход'>
</FORM>
2023-01-10 16:29:32 +00:00
<p><strong>Рейтинг походов &laquo;Излом Хаоса&raquo;:</strong><br/><?= $text ?></p>