Вход Регистрация
Файл: html/huntb/tur/vjv/index.php
Строк: 29
<?php
require_once '../../../system/func.php';
if (isset(
$user['level']) && $user['level'] < 2) {
    
?>
    <script>showContent("/main.php?msg=" + decodeURI("Не доступно до 2 уровня ."));</script>
    <?php
}
$timeN 5;
$timeP 10800;
$max_users_tur 32;
//диапазоны уровней получение по лвл в качестве индекса
$arr_lvl = [
    -
=> [-10],
    
=> [-10],
    
=> [12],
    
=> [12],
    
=> [34],
    
=> [34],
    
=> [56],
    
=> [56],
    
=> [78],
    
=> [78],
    
=> [910],
    
10 => [910],
    
11 => [1112],
    
12 => [1112],
    
13 => [1314],
    
14 => [1314],
    
15 => [1516],
    
16 => [1516],
    
17 => [1718],
    
18 => [1718],
    
19 => [1920],
    
20 => [1920],
    
21 => [2122],
    
22 => [2122],
    
23 => [2324],
    
24 => [2324],
    
25 => [2526],
    
26 => [2526],
    
27 => [2728],
    
28 => [2728],
    
29 => [2930],
    
30 => [2930],
    
31 => [3132],
    
32 => [3132],
    
33 => [3334],
    
34 => [3334],
    
35 => [3536],
    
36 => [3536],
    
37 => [3738],
    
38 => [3738],
    
39 => [3940],
    
40 => [3940],
    
41 => [4142],
    
42 => [4142],
    
43 => [4344],
    
44 => [4344],
    
45 => [4546],
    
46 => [4546],
    
47 => [4748],
    
48 => [4748],
    
49 => [4950],
    
50 => [4950],
];
$name_tur "выживание";
$min_lvl_tur $arr_lvl[$user['level']][0];
$max_lvl_tur $arr_lvl[$user['level']][1];
$time_save ceil(((time() + $timeP) % 3600) / 60);
$time_start_tur 0;
for (
$i 0$i <= 60$i += $timeN) {
    if (
$time_save <= $i) {
        
$time_start_tur = ((time() + $timeP) - (time() + $timeP) % 3600) + ($i 60);
        break;
    }
}
$uchcount $mc->query("SELECT * FROM `huntb_list` WHERE "
                
"`level` >= '" $arr_lvl[$user['level']][0] . "' &&"
                
" `level` <= '" $arr_lvl[$user['level']][1] . "' &&"
                
" `type`='3'")->num_rows;
?>

<div>
    <center>
        <div>
            <b>-Выживание-</b>
        </div>
    </center>
    <div>
        Золотой приз-взнос <img class="ico_head_all" src="/images/icons/zoloto.png">1
    </div>
    <div>
        Игроки:
        <code class="players"></code>
        <?= $uchcount?>/<?= $max_users_tur?>
    </div>
    <div>
        Время:
        <code class="time_next_battle">
            <?= sprintf("%02d:%02d", ($time_start_tur 3600) % 24, ($time_start_tur 3600) / 60); ?>
        </code>
    </div>
    <center>
        <div class="button_alt_01" onclick="showContent('/huntb/tur/vjv/in.php')">
            Просмотреть
        </div>
    </center>
</div>
<?php
$footval 
"vjv_huntb_index";
require_once (
'../../../system/foot/foot.php');
?>
Онлайн: 0
Реклама