)
*/
/*
* param string $email the email address
* return string the html code for the image
*/
function securemail($email)
{
$height = 8; // change this to change the height of the text
$image = "";
//translate the email into an array
$arr = split("[@.]", $email);
$arr[0] = $arr[0]."@";
$arr[1] = $arr[1].".";
//create a variable for the images
foreach($arr as $img)
{
//generate the dummy images. You can change the numbers in mt_rand() to increase or decrease the number of dummy images
for($num = mt_rand(1,3); $num >= 1; $num = $num-1)
$image = $image.'
';
//generate the real images
$image = $image.'
';
for($num = mt_rand(1,3); $num >= 1; $num = $num-1)
$image = $image.'
';
}
//returns the $image variable to be echoed
return $image;
}
?>