-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
38 lines (33 loc) · 952 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
require 'vendor/autoload.php';
use Kminek\EmailObfuscator;
?><!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Email Obfuscator</title>
</head>
<body>
<h1>Email Obfuscator</h1>
<?php
$email = '[email protected]';
?>
<?php
$email1 = EmailObfuscator::obfuscate($email);
?>
<p>This is obfuscated email: <?php echo $email1; ?></p>
<pre><?php echo htmlentities($email1); ?></pre>
<hr>
<?php
$email2 = obfuscate_email($email, 'Contact us', ['class' => 'some-class', 'id' => 'some-id', 'noscript' => 'Custom noscript contents']);
?>
<p>This is obfuscated email: <?php echo $email2; ?></p>
<pre><?php echo htmlentities($email2); ?></pre>
<hr>
<?php
$email3 = obfuscate_email($email, null, ['mailto' => false]);
?>
<p>This is obfuscated email: <?php echo $email3; ?></p>
<pre><?php echo htmlentities($email3); ?></pre>
</body>
</html>