<?PHP
}
}
else {
$udata = $db->query("SELECT * FROM db_bonus WHERE uid = '$uid'")->fetchArray();
# Таймер
$dt=$udata['del']-time();
$dd=(int)($dt/86400);
$hh=(int)(($dt-$dd*86400)/3600);
$mm=(int)(($dt-$dd*86400-$hh*3600)/60);
$ss=(int)($dt-$dd*86400-$hh*3600-$mm*60);
?>
<center class="alert alert-success border-success text-uppercase pb-2">До следующего бонуса осталось:
<h5><i class="far fa-clock"> <?=sprintf("%02d <small>час</small> %02d <small>мин</small> %02d <small>сек</small>", $hh, $mm, $ss);?></h5>
</center>
<?php
}
?>