Topic: Spam Protect Email 1.0.1a
##
##
## Mod title: Spam Protect Emails
##
## Mod version: 1.0.1a
## Works on PunBB: 1.2.x
## Release date: 2005-04-15
## Author: Daniel Vijge (vijge@dse.nl)
##
## Description: Spam protect email addresses in [email]tags. With this mod you can
## protect email address in posts against automatic harvesting.
## When the cursor hovers over an email address the user
## sees something like "javascript:mail_to('ocknvq<gocknBgzcorng0eqo')"
## in the status bar.
## When select, copy and paste and email address you will get
## email@remove-this.example.com
## Clicking on the link opens the mail program with the correct address.
## Addresses are normally readable to humans, but computers will have a hard
## time.
## To convert e-mails in text to clickable, spam-protected links preform
## steps 11 and 12. Else, skip these steps. (The default setup of punBB does
## not have the option to convert e-mail addresses, only www/ftp-links.)
##
## Affected files: header.php
## include/parser.php
##
## Affects DB: No
##
## Notes: You can change the encryption algoritm to create a better encryption
## (harder to automatically decode). In the function handle_email_tag()
## change the number in "$charValue+=intval(2);" to a number of your choice.
## Open 'uncrypt_email.js" and change "r += String.fromCharCode(n-(2));" to
## the same number.
##
## DISCLAIMER: Please note that "mods" are not officially supported by
## PunBB. Installation of this modification is done at your
## own risk. Backup your forum database and any and all
## applicable files before proceeding.
##
##
Change log
1.0.1a: Fix in regex code (thanks tuyau45 for pointing this out)
1.0.1: Fix possible bad coding/decoding of addresses
Option to decode e-mail adressen in text (not in tag)