Location: PHPKode > scripts > WH Board > wh_board/functions/badwords.php
<?php

	function badwords($msg) {
        $sql = mysql_query("SELECT * FROM badwords;");

        while($row = mysql_fetch_array($sql)) {

        	$badword = $row["badword_word"];
        	$msg = str_replace($badword," ***** ",$msg);
        	}

    return $msg;
    }

?>
Return current item: WH Board