Quote
Warning: Compilation failed: nothing to repeat at offset 2 in /home/deloroba/public_html/maincore.php on line 437
Quote
Warning: Compilation failed: nothing to repeat at offset 2 in /home/deloroba/public_html/maincore.php on line 437
Warning: Compilation failed: nothing to repeat at offset 2 in /home/deloroba/public_html/maincore.php on line 437
Quote
Unable to Update Member details:
Warning: unexpected script execution.
Quote
Error: You did not specify a Subject and/or Message
// Replace offensive words with the defined replacement word
function censorwords($text) {
global $settings;
if ($settings['bad_words_enabled'] == "1" && $settings['bad_words'] != "" ) {
$word_list = explode("\r\n", $settings['bad_words']);
for ($i=0;$i < count($word_list);$i++) {
if ($word_list[$i] != "") $text = preg_replace("/".safe_preg($word_list[$i])."/si", $settings['bad_word_replace'], $text);
}
}
return $text;
}
function safe_preg($content) {
$search = array('\\\\', '^', '$', '.', '[', ']', '|', '(', ')', '?', '*', '+', '{', '}');
$replace = array('\\\\\\\\', '\\^', '\\$', '\\.', '\\[', '\\]', '\\|', '\\(', '\\)', '\\?', '\\*', '\\+', '\\{', '\\}');
return str_replace($search, $replace, $content);
}
Category Forum
Bugs and Errors - 6Labels
None yet
Statistics
0 participants
Notifications
You are not receiving notifications from this thread.
Related Questions