',
'
' . $txt['smf240'] . ':
',
'
'
),
$row['body']
);
// [me=...]say something[/me]
$row['body'] = preg_replace(array('/\[me="(.+?)"\]/', '/\[me=([^\]]+)\]/', '/\[\/me\]/is'), array('* $1 ', '* $1 ', ''), $row['body']);
// Oh sure, let's print some flash.
$row['body'] = preg_replace('/\[flash=(.*)\](.*)\[\/flash\]/', '$2', $row['body']);
// [table], [tr], [td]... they go together.
$row['body'] = preg_replace('/\[table\]/', '
', $row['body']);
$row['body'] = str_replace('[/table]', '
', $row['body']);
$row['body'] = str_replace(array('[tr]', '[td]'), array('
', '| '), $row['body']);
$row['body'] = str_replace(array('[/tr]', '[/td]'), array(' |
', ''), $row['body']);
// Censor the subject and message.
censorText($row['subject']);
censorText($row['body']);
$context['posts'][] = array(
'subject' => $row['subject'],
'member' => $row['posterName'],
'time' => timeformat($row['posterTime'], false),
'timestamp' => $row['posterTime'],
'body' => $row['body']
);
if (!isset($context['topic_subject']))
$context['topic_subject'] = $row['subject'];
}
mysql_free_result($request);
}
?>