Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Armin  >  E-Mail Encoder Class  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example
Class: E-Mail Encoder Class
Encode mailto: HTML links to difficult harvesting
Author: By
Last change: New Examples
Date: 9 years ago
Size: 1,383 bytes
 

Contents

Class file image Download
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>eyesight webwerkstatt: E-Mail Encoder-Class</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="styles.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="10" topmargin="10" marginwidth="10" marginheight="10">
<?
include ("email_encoder_class.php");
$crypt_email=&new email;

// 1st Method
// Output the Cryptet Emailadress into the page
$email=$crypt_email->emailcrypter("info@eyesight.it");
$crypt_email->output ($email,"","link");
// Output the Cryptet Emailadress into the page

echo "<br>";

// 2nd Method
$var=$crypt_email->output_var ($email,"","link");
echo 
$var;
// Output the Cryptet Emailadress into a var and display with echo()
// It's a method to use the Cryptet Emailadress for other Operations

// 3rd Method
$text="yourmail@domain.com - http://www.yourdomain.com";
echo 
"<p class=\"text\">";
echo 
$crypt_email->replace_in_text ($text,"link"); // replace_in_text (The Text String, The css-class for the Link)
echo "</p>";
// Extract Emailadresses and URL's from $text with RegEx.
// Crypt the foundet Emailadresses into ASCII-Code and transform they in mailto-Links
// Transform the foundet URL's in Links without http://
// Output the transformed Textstring into the Page
?>
</body>
</html>