Файл: monst/core/pag/dungeon.php
Строк: 128
<?
if ( $user['part'] < 2 ) {
g('/main');
}
if ( !$GROUP ) {
?>
<div class='padding'>
<?=$lang['dungeon.php']['no_group']?><br/>
</div>
<a href='/group'><div class='bt_black'><?=$lang['dungeon.php']['create_group']?></div></a>
<?
} else {
include $HOME . '/core/content/dungeon.php';
$id = (isset($_GET['id']) ? (int)$_GET['id'] : 0 );
if ( !$id ) {
foreach ( $DUNGEON as $d ) {
if ( $d['need_part'] > $user['part'] ) {
?>
<img src='/core/i/dungeon/<?=$d['id']?>.jpg' alt='' width='100%' class='dungeon_pic' style=' -webkit-filter: grayscale(100%);
filter: grayscale(100%);'/>
<div style='height: 0;'>
<div class='dungeon_text'>
<?=$d['name']?><br/>
<span style='font-size: 10px;'><?=$d['desc']?></span>
</div>
</div>
<?
} else {
?>
<a href='/dungeon?id=<?=$d['id']?>'>
<img src='/core/i/dungeon/<?=$d['id']?>.jpg' alt='' width='100%' class='dungeon_pic'/>
<div style='height: 0;'>
<div class='dungeon_text'>
<?=$d['name']?><br/>
<span style='font-size: 10px;'><?=$d['desc']?></span>
</div>
</div>
</a>
<?
}
}
} else {
@$d = $DUNGEON[$id];
if ( !$d ) {
g('/dungeon');
}
?>
<span style='font-size: 20px;'><?=$d['name']?></span><br/>
<span style='font-size: 10px;'><?=$d['desc']?></span><br/>
<div class='opacity_background_im'>
<img src='/core/i/dungeon/<?=$id?>.jpg' alt='' width='100%' class='dungeon_pic'/>
</div>
<br/>
<div class='padding'>
<?=$lang['dungeon.php']['prize']?> (<?=$lang['dungeon.php']['on_player']?>):<br/>
<img src='<?=$gold_icon?>' alt='' width='40'/><span class='gold_color'><?=num($d['gold'])?></span>
<img src='<?=$silver_icon?>' alt='' width='40'/><span class='silver_color'><?=num($d['silver'])?></span>
<img src='<?=$exp_icon?>' alt='' width='40'/><span class='exp_color'><?=num($d['exp'])?></span>
</div>
<br/>
<?
if ( isset($GROUP['dungeon_cooldown'][$id]) AND $GROUP['dungeon_cooldown'][$id] > time() ) {
?>
<div style='text-align: center; color: indianred;'>
<?=$lang['dungeon.php']['cooldown']?> <?=hm($GROUP['dungeon_cooldown'][$id] - time(), 0, 1, 1, 0)?><br/>
</div>
<?
if (!isset($user['dungeon_cooldown'][$id]) OR $user['dungeon_cooldown'][$id] < time() ) {
?>
<?=$lang['dungeon.php']['onlyuser_getreward']?><br/>
<a href='/d/<?=$id?>'><div class='bt_gray'><?=$lang['dungeon.php']['get_reward']?></div></a>
<?
}
// } elseif(isset($user['dungeon_cooldown'][$id]) AND $user['dungeon_cooldown'][$id] > time() ) {
// ?>
<!-- <div style='text-align: center; color: indianred;'>-->
<!-- --><?//=$lang['dungeon.php']['user_limit']?><!-- --><?//=hm($user['dungeon_cooldown'][$id] - time(), 0, 1, 1, 0)?><!--<br/>-->
<!-- </div>-->
<!-- --><?//
} else {
?>
<a href='/d/<?=$id?>'><div class='bt_gray'><?=$lang['dungeon.php']['enter']?></div></a>
<?
}
?>
<br/>
<a href='/dungeon'><div class='bt_black'><?=$lang['dungeon.php']['back']?></div></a>
<?
}
}