Email encoder
Een email encoder om spambots tegen te gaan..
De functie heeft het email adress en de naam van de user nodig, ik gebruik um zelf ook.. werkt pirma
Gesponsorde koppelingen
PHP script bestanden
11 reacties op 'Email encoder'
Gesponsorde koppelingen
Check it out: Dit werkt ;)
Code (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?php
$entities = array(
"@" => "@",
"-" => "-",
"_" => "_",
"." => ".",
":" => ":",
"a" => "a",
"b" => "b",
"c" => "c",
"d" => "d",
"e" => "e",
"f" => "f",
"g" => "g",
"h" => "h",
"i" => "i",
"j" => "j",
"k" => "k",
"l" => "l",
"m" => "m",
"n" => "n",
"o" => "o",
"p" => "p",
"q" => "q",
"r" => "r",
"s" => "s",
"t" => "t",
"u" => "u",
"v" => "v",
"w" => "w",
"x" => "x",
"y" => "y",
"z" => "z"
);
function encode($input)
{
/////////////////////////////////////
/// Deze functie encodeert iedere
/// letter van $input naar html
///////////////////////////////////
//// string encode( string string input );
global $entities;
$temp_var = strtolower($input);
foreach ($entities as $orginal => $entitie) {
$temp_var = str_replace($orginal, $entitie, $temp_var);
}
$input = $temp_var;
return $input;
}
function decode($input)
{
////////////////////////////////////////////////
/// Deze functie decodeert iedere
/// htmlencoded letter van $input naar text
//////////////////////////////////////////
//// string decode( string string input );
global $entities;
$temp_var = strtolower($input);
foreach ($entities as $orginal => $entitie) {
$temp_var = str_replace($entitie, $orginal, $temp_var);
}
$input = $temp_var;
return $input;
} ?>
$entities = array(
"@" => "@",
"-" => "-",
"_" => "_",
"." => ".",
":" => ":",
"a" => "a",
"b" => "b",
"c" => "c",
"d" => "d",
"e" => "e",
"f" => "f",
"g" => "g",
"h" => "h",
"i" => "i",
"j" => "j",
"k" => "k",
"l" => "l",
"m" => "m",
"n" => "n",
"o" => "o",
"p" => "p",
"q" => "q",
"r" => "r",
"s" => "s",
"t" => "t",
"u" => "u",
"v" => "v",
"w" => "w",
"x" => "x",
"y" => "y",
"z" => "z"
);
function encode($input)
{
/////////////////////////////////////
/// Deze functie encodeert iedere
/// letter van $input naar html
///////////////////////////////////
//// string encode( string string input );
global $entities;
$temp_var = strtolower($input);
foreach ($entities as $orginal => $entitie) {
$temp_var = str_replace($orginal, $entitie, $temp_var);
}
$input = $temp_var;
return $input;
}
function decode($input)
{
////////////////////////////////////////////////
/// Deze functie decodeert iedere
/// htmlencoded letter van $input naar text
//////////////////////////////////////////
//// string decode( string string input );
global $entities;
$temp_var = strtolower($input);
foreach ($entities as $orginal => $entitie) {
$temp_var = str_replace($entitie, $orginal, $temp_var);
}
$input = $temp_var;
return $input;
} ?>
Om te reageren heb je een account nodig en je moet ingelogd zijn.
- Details
Door:
The Beeding Clown- 8 jaar geleden
- 260 x bekeken
- Labels
- Geen tags toegevoegd.
- PHP scripts opties
- PHP algemeen
- Nieuwste PHP scripts
- PHP script toevoegen


PHP hulp
0 seconden vanaf nu