File Submitter: Ed Headset
File Submitted: 4 Mar 2008
File Updated: 18 Mar 2008
File Category: Security
/* Email-protect version 1.6 FINAL
A Collection of E-mail protection types
© 2008 Eduard Frankes (www.vitusware.com)
*****************************
This snippet has been tested with
Etomite 0.6.1.4
Using IE 7.0 and FireFox 2.0.0.12
IT works on IIS 6.x
this also works on Apache (Thanks Chris D.)
**********
Last minute Note:
TXTLINK does work, But it shows the full HTML code in the browser
like: <a href="mailto:email@address.com">email@address.com</a>
the browser doesn't render it.
So you can use it to explain how a mailto: link works
*****************************
Changes made in version 1.6 FINAL:
Minor code change/bug fix:
The text version added 2 spaces behind the AT, corrected to 1 space.
Special thanks to:
Ralph A. Dahlgren for $savePath initial idea & code to check if image exist to speed up the process.
Chris D. for tips how to create folders.
*************************
Usage:
[[Email-protect?email=email@address.com&type=txt]] (Default)
creates: &# 101;&# 109;&# 97;&# 105;&# 108;&# 64;&# 97;&# 100;&# 100;&# 114;&# 101; etc.. (spaces are added in this example)
that is rendered in the browser to look like email@address.com ( this is the default )
that is rendered in the browser to look like email@address.com ( this is the default )
[[Email-protect?email=email@address.com&type=txtlink]]
Creates: <a href="mailto:email@address.com">email@address.com</a> visible in the browser as HTML code
[[Email-protect?email=email@address.com&type=img&size=#]]
Creates a picture with the address
only this option uses the size and savePath parameters
Size defaults to 4
Folder where images are written($SavePath) defaults to "assets/images/email-protected/"
If this folder doesn't exist, it will be created with full read/write rights.
Images in this folder will be deleted when they are 86400 seconds or older (24Hrs.)
Size is from 1 (very small) to 4 (normal size)
use size 5 to make it bold (at size 4 size)
Sizes 6 or higher will default to size 5
[[Email-protect?email=email@address.com&type=dot]]
Creates: email AT address DOT com
[[Email-protect?email=email@address.com&type=java]]
creates a click able link with Java script
[[Email-protect?email=email@address.com&type=none]]
Use no protection at all (obviously not the best to use
*/
// settings:
$savePath = "assets/images/email-protected/"; // This is the default path where the email images are written NOTE: must end with a slash "/"
$seconds_old = 86400; // 24 Hrs. This is the default max time images will be kept. (time in seconds)
Click here to download this file
Edited by Ed Headset, 18 March 2008 - 07:40 PM.












