Hi, this my first post. Hope this is in the right section. I have Flashchat 4.7.12 integrated with a phpbb forum. I cannot access the chat admin panel so most changes are made via code change. I am trying to disable the entire bad words function (want to allow every word) but not sure if the whole file can be deleted without altering any other files?
Here are the first three lines in badword.php and there are 10 other words below these (some don't have the =>):
Being unfamiliar with the system itself I cannot tell you how that config works with the key => value pairs especially given that both the key and value are near identical.
Replacement for language filters typically work via regex to bind part or whole words. For example, you don't want to block the word 'assimilate', so preg is used to bind the "bad word" in there as a word of its own instead of a partial.
If you want to remove the filter completely using code itself, my suggestion is to simply block comment out the $GLOBALS['fc_config']['badWords'] array, and add a simple $GLOBALS['fc_config']['badWords'] = array();. That would (logically) tell me that it is searching for no bad words to replace.
I cannot really comment on the use of the scope though since I don't know the context that these are in. Typically global and $GLOBALS should be avoided as they are debugging nightmares.
That array could be just a configuration setup array for the system, I would look for a file that contains profanity with a comma separator. The original array is probably overwritten by a new one if the 'profanity' file is available, which is why the former code would not work.