<?php
$sql->query('SELECT `time`, `title`, `msg` FROM `news` order by `id` DESC LIMIT 1');
if ($sql->num_rows() == 1)
{
$news = $sql->fetch();
return '<br />'.htmlspecialchars($news['title']) .' ('.Core::time($news['time']).')<br />'.htmlspecialchars(strip_tags(mb_substr(Text::output($news['msg']), 0, 150)));
}
return null;