getId());
foreach ($userLogs as $row) {
$log .= sprintf('%s
', date('d.m.Y H:i ', strtotime($row['date'])) . $row['text']);
}
$data = [
'%email' => $user->profile()->getEmail(),
'%bday' => date('d.m.Y', strtotime($user->profile()->getBorndate())),
'%regip' => $user->profile()->getIp(),
'%uid' => $user->getId(),
'%room' => $user->getRoom(),
'%wallet' => $user->money()->get(),
'%bank' => Db::getInstance()->fetchColumn('select money from bank where user_id = ?', $user->getId()),
'%exp' => $user->getExperience(),
'%fp' => Db::getInstance()->fetchColumn('select free_stat_points from users where id = ?', $user->getId()),
'%log' => $log ?? 'Журнал пуст.',
];
$string = '