PHP Classes
Icontem

File: example.php


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Pablo Gazmuri  >  MailCrypter  >  example.php  
File: example.php
Role: Example script
Content type: text/plain
Description: example script
Class: MailCrypter
Easily scramble mailto links to avoid harvesting.
 

Contents

Class file image Download
<?php
//    MailCrypter Class Example Usage:

    
include('MailCrypter.php');

    
//instantiate new MailCrypter object
    
$crypt = new MailCrypter();

    
//echo a scrambled mailto: link
    
echo $crypt->addMailTo("someone@somewhere.com");

    echo 
"<br>";

    
//echo as many links as you want
    
echo $crypt->addMailTo("someone-else@somewhere-else.com");


    
//echo the javascript code that descrambles all written links
    //note: you must call writeScript AFTER echoing all the scrambled links on your page
    
$crypt->writeScript();

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products