Файл: html/huntb/index.php
Строк: 109
<?php
require_once '../system/func.php';
$mc->query("DELETE FROM `huntb_list` WHERE `user_id` = '" . $user['id'] . "' && (`type`='1'||`type`='2')");
if (isset($user['level']) && $user['level'] < 2) {
?><script>/*nextshowcontemt*/showContent("/main.php?msg=" + decodeURI("Не доступно до 2 уровня ."));</script><?php
exit(0);
}
//если герой зарегистрирован на турниры то кинуть в нужный турнир
if ($mc->query("SELECT * FROM `huntb_list` WHERE `user_id`='" . $user['id'] . "'")->num_rows > 0) {
$arrUserToor = $mc->query("SELECT * FROM `huntb_list` WHERE `user_id`='" . $user['id'] . "'")->fetch_array(MYSQLI_ASSOC);
if ($arrUserToor['type'] == 1) {
//1x1 showContent('/huntb/1x1/search.php')
?><script>/*nextshowcontemt*/showContent('/huntb/1x1/search.php');</script><?php
exit(0);
}
if ($arrUserToor['type'] == 2) {
//1x1 open
?><script>/*nextshowcontemt*/showContent('/huntb/1x1_open/search.php');</script><?php
exit(0);
}
if ($arrUserToor['type'] == 3) {
//vjv gold
?><script>/*nextshowcontemt*/showContent('/huntb/tur/vjv/in.php');</script><?php
exit(0);
}
if ($arrUserToor['type'] == 4) {
//vjv plat
?><script>/*nextshowcontemt*/showContent('/huntb/tur/vjv/in.php');</script><?php
exit(0);
}
if ($arrUserToor['type'] == 5) {
//stenka gold
?><script>/*nextshowcontemt*/showContent('/huntb/tur/stenka/in.php');</script><?php
exit(0);
}
if ($arrUserToor['type'] == 6) {
//stenka plat
?><script>/*nextshowcontemt*/showContent('/huntb/tur/stenka/in.php');</script><?php
exit(0);
}
}
?>
<style>
.text{
text-align:left;
width:20em;
}
</style>
<center>
<div class="button_alt_01 arrowDuel" onclick="showContent('/huntb/1x1/search.php')">Начать поединок</div>
<div class="button_alt_01" onclick="showContent('/huntb/1x1_open/search.php')"> Открытый бой [1] </div>
<div class="button_alt_01" onclick="showContent('/huntb/1x1_tec/tec.php')"> Текущие бои [2] </div>
<div class="button_alt_01" onclick="showContent('/huntb/tur/index.php')"> Турнир[3] </div>
<div class="button_alt_01" onclick="showContent('/huntb/grab/index.php')"> Грабежи [4] </div>
<div class="button_alt_01" onclick="showContent('/huntb/zem/index.php')"> Земля </div>
<div class="button_alt_01" onclick="showContent('/huntb/clantur/index.php')"> Турниры от кланов </div>
<div class="button_alt_01" onclick="showContent('/huntb/luntur/index.php')"> Турнир полной луны </div>
</center>
<div class="text">
<b>Начать поединок:</b>Бой один на один с равным противников, без вмешательств.<br><br>
<b>Открытый бой:</b>Начать бой с равным противником,открытый для вмешательства других бойцов, на три уровня старше или младше включительно.
</div>
<?php
$footval = "huntindex";
require_once ('../system/foot/foot.php');
?>