Вход Регистрация
Файл: monst/core/pag/campaign.php
Строк: 143
<?
include $HOME '/core/content/part.php';
$part $PART[$user['part']];

upd_loc('campaign');



?>
<script src='/core/j/jquery-3.2.1.min.js'></script>
<?


include $HOME '/core/content/monster.php';
$monster_id $user['last_monster_id'] + 1;

@
$monster $MONSTER[$user['part']][$monster_id];
?>
    <div class='op_top_im'>
        <img src='/core/i/part/<?=$user['part']?>.jpg?0' alt='' class='title_img' /><br/>
    </div>

    <div style='position: relative; top: -100px; color: <?=$part['color']?>; height: 0;'>
        <span style='background: #000; font-size: 11px;'>Глава <?=$user['part']?></span><br/>
        <span style='background: #000; font-size: 20px;'><?=$part['name']?></span><br/>
    </div>


    <div class='padding'>
        <div style='color: #756861; color: #999;'>
            <?=$part['desc']?>
        </div>
    </div>

    <div style='clear: both;'></div>



<br/><br/>

<?
if ( $monster ) {
    
?>
    <div style='text-align: center;'>
        <?
        
if ( $user['fig'] > ) {
            
?>
            <div style='back2ground: #111; padding: 10px;'>
                <?
                
if ( isset($_GET['unlock_ok']) ) {
                    
?>
                    <?=$lang['campaign.php']['unlock']?><br/>
                    <br/>
                    <?
                
}
                
?>

                <span style='2color: #756861;'>
                <span style='2color: #756861;'>
                    <?
                    
if ( $user['fig'] == ) {
                        print 
lang_replace($lang['campaign.php']['1fig'], ['%count' => '<span style="font-size: 30px;">'.$user['fig'].'</span>']);
                    } else {
                        print 
lang_replace($lang['campaign.php']['many_fig'], ['%count' => '<span style="font-size: 30px;">'.$user['fig'].'</span>']);
                    }
                    
?>
                </span>
            </div>
            <?
        
} else {
            
$time $user['next_fig_time'] - time();

            
$figs 2;


            if ( 
$user['next_fig_time'] < time() ) {
                
$_users -> update(
                        [
                        
'id' => $user['id']
                    ],

                    [
                        
'$set' => [
                            
'fig' => $figs,
//                                'coliseum_log' => 0,
//                                'coliseum_num' => 0,
//                                'coliseum_enemyId' => 0,
//                                'next_coliseum_time' => 0,
                        
]
                    ]
                );

                if ( isset(
$_GET['coliseum']) ) {
                    
g('/coliseum');
                } else {
                    
g('/campaign');
                }
            }

            
// -

            
$cost 25 $user['part'];
            
$unlocks $user['daily_campaign_unlocks'];

            if ( 
$unlocks ) {
                
$cost $cost * ( $unlocks );
            }

            if ( 
$unlocks 10 ) {
                
$cost 1000;
            }

            if ( isset(
$_GET['unlock']) ) {
                if ( 
$user['gold'] >= $cost ) {


                    
$_users -> update(
                        [
                            
'id' => $user['id']
                        ],

                        [
                            
'$set' => [
                                
'fig' => $figs,
                                
'gold' => $user['gold'] - $cost,
//                                'coliseum_log' => 0,
//                                'coliseum_num' => 0,
//                                'coliseum_enemyId' => 0,
//                                'next_coliseum_time' => 0,
                                
'daily_campaign_unlocks' => $user['daily_campaign_unlocks'] + 1
                            
]
                        ]
                    );

                    
g('/campaign?unlock_ok#monster');
                } else {
                    
?>
                    <div class='error_box'>
                        <?=$lang['campaign.php']['no_gold']?><br/>
                        <div style='text-align: center;'>
                            <a href='/gold'><?=$lang['campaign.php']['buy']?> <img src="<?=$gold_icon?>" alt="" width="15"/></a>
                        </div>
                    </div>

                    <?
                
}
            }
            
?>
            <div style='backgroun2d: #111; padding: 20px; color: #999;'>
                <?=$part['name']?> <?=$lang['campaign.php']['time_to_unlock']?> <span style='color: indianred;'><?=hm($time0110)?></span><br/>
                <br/>
                <a href='/campaign?unlock'>ОТКРЫТЬ ЗА <img src='<?=$gold_icon?>' alt='' width='15'/><span class='gold_color'><?=$cost?></span></a>
            </div>
            <br/><br/>
            <?
        
}


        if ( 
$user['daily_campaign_unlocks_day'] != date('d') ) {
            
$_users -> update(
                [
                    
'id' => $user['id']
                ],

                [
                    
'$set' => [
                        
'daily_campaign_unlocks' => 0,
                        
'daily_campaign_unlocks_day' => date('d'),
                    ]
                ]
            );

            
g('/campaign');
        }

        
?>

        <a href='/fig/<?=$monster_id?>'>

            <div class='opacity_monster_im'>
                <img id='monster' src='/core/i/monster/<?=$user['part']?>/<?=$monster_id?>.jpg?7' alt='' style='width: 100%'/><br/>
            </div>
            <br/>

            <img src='/core/i/user/hp.png?3' alt='' width='15'/><span style='color: #756861;'><?=num($monster['hp'])?></span>
            <img src='/core/i/user/st.png?2' alt='' width='15'/><span style='color: lightsteelblue;'><?=num($monster['st'])?></span>
            <img src='/core/i/user/armor.png?2' alt='' width='15'/><span style='color: #777;'><?=num($monster['armor'])?></span>

        </a>

        <br/><br/>


        <div class='padding'>
            <span style='font-size: 30px; color: <?=$user['theme_color']?>;'><?=$monster['name']?></span> <? if ( $monster['boss'] ) print '<span class="boss">Босс</span>'?><br/>
            <?=$monster['about']?><br/>

        </div>
    </div>

<?
} else {
    
?>
    <div style='text-align: center; font-size: 20px; color: #756861;'>
        <?=$lang['campaign.php']['all_killed']?>
    </div>
    <?
}
Онлайн: 1
Реклама