foreach ($posts AS $i => $post)
{
if (!is_null($post['post_title']) && $post['post_title'] !== '' && !preg_match($threadTitleRegex, $post['post_title']))
{
$post['post'] = '[b]' . htmlspecialchars_decode($post['post_title']) . "[/b]\n\n" . ltrim($post['post']);
}
$post['post'] = $this->_parseIPBoardBbCode($post['post']);
if (trim($post['author_name']) === '')
{
$post['username'] = 'Guest';
}
//echo "<div>Import message $post[pid]<br /><textarea rows=4 cols=60>" . $this->_strToHex($post['post']) . "</textarea></div>";