Location: PHPKode > projects > NovaBoard > NovaBoard1.1.4/includes/forums/word_censor.php
<?php
/*
+--------------------------------------------------------------------------
|  NovaBoard
|  ========================================
|  By The NovaBoard team
|  Released under the Artistic License 2.0
|  http://www.novaboard.net
|  ========================================
|+--------------------------------------------------------------------------
|   word_censor.php - censor words from filter list
*/

if (!defined('NOVA_RUN')){
	echo "<h1>ACCESS DENIED</h1>You cannot access this file directly.";
	exit();
}

// Get words...

$query2116 = "select WORD, NEW_WORD from {$db_prefix}censor" ;
$result2116 = mysql_query($query2116) or die("word_censor.php - Error in query: $query2116") ;                                  
while ($results2116 = mysql_fetch_array($result2116)){
$word = $results2116['WORD'];
$new_word = $results2116['NEW_WORD'];



$content=str_replace($word, $new_word, $content);
}
?>
Return current item: NovaBoard