mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-30 15:52:17 +09:00
add emailEncode function
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8989 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
d58e4f32b2
commit
4560ee425c
1 changed files with 8 additions and 0 deletions
|
|
@ -504,6 +504,14 @@
|
|||
return $string;
|
||||
}
|
||||
|
||||
function getEncodeEmailAddress($email) {
|
||||
$return = '';
|
||||
for ($i=0,$c=strlen($email);$i<$c;$i++) {
|
||||
$return .= '&#' . (rand(0,1)==0 ? ord($email[$i]) : 'X'.dechex(ord($email[$i]))) . ';';
|
||||
}
|
||||
return $return;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief prints debug messages
|
||||
* @param debug_output target object to be printed
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue