Файл: monst/core/jphp/d/timer.php
Строк: 26
<?
$HOME = $_SERVER['DOCUMENT_ROOT'];
include $HOME . '/core/in/j.php';
$dungeon_id = (int)$_POST['dungeon_id'];
$d = $_d -> findOne(
[
'dungeon_id' => $dungeon_id,
'group_id' => $GROUP['id']
]
);
if ( !$d ) {
exit;
}
include $HOME . '/core/content/dungeon.php';
if ( !$monster = $DUNGEON[$d['dungeon_id']]['data'][$d['monster_id']] ) {
exit;
}
if ( $user['hp'] > 0 ) {
print '1';
exit;
}
if ( $user['dead_time'] > 0 AND $user['dead_time'] < time() ) {
$_users -> update(
[
'id' => $user['id']
],
[
'$set' => [
'dead_time' => 0,
'hp' => $user['hpf']
]
]
);
print '1';
exit;
}
if ( $user['dead_time'] <= 0 ) {
print '1';
exit;
}
?>
<?=hm($user['dead_time'] - time(), 0, 0, 1, 1)?>
<?