'
. '
'
. ''
. '' . $settings['title'] . ''
. '';
$boardlist = createBoardlist();
$body .= '' . $boardlist['top'] . '
';
$body .= '' . $settings['title'] . '
'
. '' . ($settings['subtitle'] ? utf8tohtml($settings['subtitle']) : '') . '
';
$body .= '';
$query = query("SELECT * FROM `news` ORDER BY `time` DESC") or error(db_error());
if($query->rowCount() == 0) {
$body .= '
(No news to show.)
';
} else {
// List news
while($news = $query->fetch()) {
$body .= '
' .
($news['subject'] ?
$news['subject']
:
'no subject'
) .
' — by ' .
$news['name'] .
' at ' .
date($config['post_date'], $news['time']) .
'
' . $news['body'] . '
';
}
}
$body .= '
';
// Finish page
$body .= '
Powered by Tinyboard