PHP Classes

File: anti-spam.php

Recommend this page to a friend!
  Classes of Stanga Razvan   Anti-Spam   anti-spam.php   Download  
File: anti-spam.php
Role: Example script
Content type: text/plain
Description: Example file
Class: Anti-Spam
Protection against e-mail address harvesting
Author: By
Last change:
Date: 21 years ago
Size: 762 bytes
 

Contents

Class file image Download
<?php

/*

Script by Stanga Razvan (cool@computergames.ro)
* uses Crypt class by Michael Dransfield <mike@blueroot.net> for Advanced Anti-Spam

*/

require ("anti-spam.class.php");
require (
"crypt.class.php");

$antispam = new AntiSpam;

$crypt = new HTML_Crypt;

echo
"Without Name ". $antispam->email ( "cool@computergames.ro" );

echo
"\r\n\r\n<br>\r\n<br>\r\n\r\n";

echo
"Source Code : <br>". htmlentities ( $antispam->email ( "cool@computergames.ro" ) );

echo
"\r\n\r\n<br>\r\n<br>\r\n\r\n";

echo
"With Name ". $antispam->email ( "cool@computergames.ro", "Stanga Razvan");

echo
"\r\n\r\n<br>\r\n<br>\r\n\r\n";

echo
"Source Code : <br>". htmlentities ( $antispam->email ( "cool@computergames.ro", "Stanga Razvan" ) );

?>