Okay, here are the errors:
Warning: ereg_replace(): REG_EMPTY in /hsphere/local/home/organic/myorganickid.com/catalog/includes/functions/general.php on line 1259
Here is the code:
//Mett-define censor (bad words) function
function tep_censor($message) {
{
$fh = fopen("badwords.txt","r"); //Open the file that contains the words
while($word = fgets($fh,4096))
{
$message = ereg_replace(trim($word),"*****",$message); //replace words
}
return $message; //return censored words
}
echo tep_censor($message);
}
//Met
The next error is:
Fatal error: Cannot redeclare tep_db_connect() (previously declared in /hsphere/local/home/organic/myorganickid.com/catalog/includes/functions/database.php:13) in /hsphere/local/home/organic/myorganickid.com/catalog/includes/functions/database.php on line 13
Can anyone help me?