Thanks for your compliments and welcome to the happy Phorum user bunch!
On your question: you could use Phorum's format function, which includes censor list formatting. But mind that you will get all other Phorum formatting as well. If you don't want that, then you might have to do something like assigning an empty array to $PHORUM['hooks'] before calling the formatting function.
Some basic code for including the Phorum code and using its formatting (beware of undefined index warnings; I didn't test the code and the $fake_messages elements might need some more fields):
[code="php"]
$body = 'your text that has to be censored';
chdir('/your/phorum/install/dir');
include('common.php');
require_once('include/format_functions.php');
$fake_messages = array( 1 => array( 'body' => $body, 'subject' => '' ) );
$formatted_messages = phorum_format_messages($fake_messages);
$formatted_body = $formatted_messages[1]['body'];
[/code]
I hope this helps.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce