| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 | 
HTML Purifier Phorum Mod - Filter your HTML the Standards-Compliant Way!This Phorum mod enables HTML posting on Phorum.  Under normal circumstances,this would cause a huge security risk, but because we are runningHTML through HTML Purifier, output is guaranteed to be XSS free andstandards-compliant.This mod requires HTML input, and previous markup languages need to beconverted accordingly.  Thus, it is vital that you create a 'migrate.php'file that works with your installation. If you're using the built-inBBCode formatting, simply move migrate.bbcode.php to that place; forother markup languages, consult said file for instructions on howto adapt it to your needs.    -- NOTE -------------------------------------------------    You can also run this module in parallel with another    formatting module; this module attempts to place itself    at the end of the filtering chain. However, if any    previous modules produce insecure HTML (for instance,    a JavaScript email obfuscator) they will get cleaned.This module will not work if 'migrate.php' is not created, and an improperlymade migration file may *CORRUPT* Phorum, so please take your time todo this correctly. It should go without saying to *BACKUP YOUR DATABASE*before attempting anything here. If no migration is necessary, you cansimply create a blank migrate.php file. HTML Purifier is smart and willnot re-migrate already processed messages. However, the original codeis irretrievably lost (we may change this in the future.)This module will not automatically migrate user signatures, because thisprocess may take a long time. After installing the HTML Purifier module andthen configuring 'migrate.php', navigate to Settings and click 'MigrateSignatures' to migrate all user signatures to HTML.All of HTML Purifier's usual functions are configurable via the mod settingspage. If you require custom configuration, create config.php file inthe mod directory that edits a $config variable. Be sure, also, toset $PHORUM['mod_htmlpurifier']['wysiwyg'] to TRUE if you are using aWYSIWYG editor (you can do this through a common hook or the webconfiguration form).Visit HTML Purifier at <http://htmlpurifier.org/>.    vim: et sw=4 sts=4
 |