remove obfuscate email func
This commit is contained in:
parent
5c9c741811
commit
1e638b7688
|
|
@ -3,15 +3,6 @@
|
||||||
$alert = '';
|
$alert = '';
|
||||||
$body = '';
|
$body = '';
|
||||||
|
|
||||||
function obfuscate_email($email)
|
|
||||||
{
|
|
||||||
$em = explode("@",$email);
|
|
||||||
$name = implode('@', array_slice($em, 0, count($em)-1));
|
|
||||||
$len = floor(strlen($name)/2);
|
|
||||||
|
|
||||||
return substr($name,0, $len) . str_repeat('.', $len) . "@" . end($em);
|
|
||||||
}
|
|
||||||
|
|
||||||
$info = userInfo($GLOBALS['user']->id); // add true as a second param if u wanna use usernames instead
|
$info = userInfo($GLOBALS['user']->id); // add true as a second param if u wanna use usernames instead
|
||||||
$username = $info->username;
|
$username = $info->username;
|
||||||
$email = $info->email;
|
$email = $info->email;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue