Sitellite Application Framework
Class Tree         Index         All Elements

Class: FakeEmail

Source Location: Program_Root/Misc/FakeEmail.php

Class Overview


A class used to generate obscured email addresses, so as to make it more difficult for spambots to recognize them.


Author(s)

Version

  • 1.2, 2003-05-23, $Id: FakeEmail.php,v 1.2 2005/07/06 15:30:56 lux Exp $

Copyright

  • Copyright (C) 2001-2003, Simian Systems Inc.

Methods


Inherited Variables

Inherited Methods


Class Details

[line 51]
A class used to generate obscured email addresses, so as to make it more difficult for spambots to recognize them.

New in 1.2:

  • Moved from saf.EasyText.FakeEmail to saf.Misc.FakeEmail.
  • Removed the EasyText() and EasyTextInit() methods.

1 <?php
2
3 echo FakeEmail::makeWords ('you@yoursite.com');
4 echo FakeEmail::insertComments ('you@yoursite.com');
5 echo FakeEmail::obfuscateLink ('you@yoursite.com');
6
7 ? >




Tags:

access:  public
version:  1.2, 2003-05-23, $Id: FakeEmail.php,v 1.2 2005/07/06 15:30:56 lux Exp $
license:  http://www.sitellite.org/index/license
copyright:  Copyright (C) 2001-2003, Simian Systems Inc.
author:  John Luxford <mailto:lux@simian.ca>


[ Top ]


Class Methods


method doAll [line 117]

string doAll( string $addy)

Provides all three obscuring methods in one, which means it will display as 'you at yoursite dot com', but will provide a mailto link as well.



Tags:

access:  public


Parameters:

string   $addy  

[ Top ]

method insertComments [line 80]

string insertComments( string $addy)

Doesn't display the address as a link, but inserts comments into it so as to make it difficult to read the address in the source code, but so that it still displays on the page as a normal address.



Tags:

access:  public


Parameters:

string   $addy  

[ Top ]

method makeWords [line 62]

string makeWords( string $addy)

Doesn't display the address as a link, but turns the various symbol characters into words and spaces the address out so that it reads properly aloud, but it doesn't look like an email address.



Tags:

access:  public


Parameters:

string   $addy  

[ Top ]

method obfuscateLink [line 97]

string obfuscateLink( string $addy)

Still provides a mailto link, but obfuscates the email address inside the anchor link tag by converting various characters into alternate, but valid, encodings.



Tags:

access:  public


Parameters:

string   $addy  

[ Top ]


Copyright © 2007, SIMIAN systems Inc.
All rights reserved. Privacy policy
Documentation generated on Tue, 13 Feb 2007 17:17:32 -0600 by Sitellite AppDoc and phpDocumentor 1.2.2