Location: PHPKode > scripts > WH Social > wh_social/framework/functions/badwords.php
<?php

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

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

        	$badword = mysql_real_escape_string($row['word']);
        	$msg = str_replace($badword," ***** ",$msg);
        	}

    return $msg;
    }

?>
Return current item: WH Social