DestroyAOLSpeak - The next generation

Small, short code snippets that other people may find useful. Do you have a good regex that you would like to share? Share it! Even better, the code can be commented on, and improved.

Moderator: General Moderators

Post Reply
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

DestroyAOLSpeak - The next generation

Post by Ambush Commander »

These are entries for the word censor in phpBB inspired off of phpDN's "ignorance is bliss" word censors. They are the next generation because instead of saying "ignorance is bliss", they contain the character codes that allow you to bypass the censor.

Code: Select all

INSERT INTO `phpbb_words` VALUES (DEFAULT, 'som*tin', '<span class="smurf" title="s = &115;">something</span>');
INSERT INTO `phpbb_words` VALUES (DEFAULT, 'ur', '<span class="smurf" title="u = &#117;">you''re</span>');
INSERT INTO `phpbb_words` VALUES (DEFAULT, 'ne1', '<span class="smurf" title="n = &#110;">anyone</span>');
INSERT INTO `phpbb_words` VALUES (DEFAULT, 'be4', '<span class="smurf" title="b = &#98;">before</span>');
INSERT INTO `phpbb_words` VALUES (DEFAULT, 'some1', '<span class="smurf" title="s = &#115;">someone</span>');
INSERT INTO `phpbb_words` VALUES (DEFAULT, '4get', '<span class="smurf" title="g = &#103;">forget</span>');
INSERT INTO `phpbb_words` VALUES (DEFAULT, 'plz', '<span class="smurf" title="p = &#112;">please</span>');
INSERT INTO `phpbb_words` VALUES (DEFAULT, 'wot', '<span class="smurf" title="w = &#119;">what</span>');
INSERT INTO `phpbb_words` VALUES (DEFAULT, 'r', '<span class="smurf" title="r = &#114;">are</span>');
INSERT INTO `phpbb_words` VALUES (DEFAULT, 'b4', '<span class="smurf" title="b = &#98;">before</span>');
INSERT INTO `phpbb_words` VALUES (DEFAULT, 'pls', '<span class="smurf" title="p = &#112;">please</span>');
INSERT INTO `phpbb_words` VALUES (DEFAULT, 'thx', '<span class="smurf" title="t = &#116;">thanks</span>');
INSERT INTO `phpbb_words` VALUES (DEFAULT, 'u', '<span class="smurf" title="u = &#117;">you</span>');
INSERT INTO `phpbb_words` VALUES (DEFAULT, 'any1', '<span class="smurf" title="a = &#97;">anyone</span>');
INSERT INTO `phpbb_words` VALUES (DEFAULT, '4got', '<span class="smurf" title="g = &#103;">forgot</span>');
I think the censors on phpDN are broken, so get this while it's hot! Make sure your SQL supports DEFAULT. r you ready? :)

Oh yeah, almost forgot - You'll have to define a class smurf (like .smurf {color:#00F;} in your CSS.

Edit 2 - Fixed typo that caused wot to become wot :blush:
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

haha.. McGruff deleted all the AOL speak ones.. it's just back to smurfing swears now..
Roja
Tutorials Group
Posts: 2692
Joined: Sun Jan 04, 2004 10:30 pm

Re: DestroyAOLSpeak - The next generation

Post by Roja »

Ambush Commander wrote:They are the next generation because instead of saying "ignorance is bliss", they contain the character codes that allow you to bypass the censor.
I don't understand. How do you use the character codes to bypass the censor?
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

Short Answer - phpBB doesn't turn & into &, so you can put in character entities.

Well, in the past (when the AOL censors where on), if you did this:

Code: Select all

fopen($file,"r");
it would become: fopen($file, "are");

So... you substitute it with a character entity r and it works.

Funny thing though... not only are AOL censors off, but character entities seem to expand when in PHP code... ah, I guess it's for the better.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

that would have only been with the "original" or current php tags and things.

Mine didn't have the issue :P
Post Reply