mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-08 19:42:15 +09:00
개인정보 이메일 보호 (메일주소 가리기, 친구만 메일 보내기)
This commit is contained in:
parent
929a694ee1
commit
f3916c9535
2 changed files with 10 additions and 6 deletions
|
|
@ -84,9 +84,9 @@ class memberView extends member
|
|||
|
||||
if($logged_info->is_admin != 'Y' && ($member_info->member_srl != $logged_info->member_srl))
|
||||
{
|
||||
$start = strpos($member_info->email_address, '@')+1;
|
||||
$replaceStr = str_repeat('*', (strlen($member_info->email_address) - $start));
|
||||
$member_info->email_address = substr_replace($member_info->email_address, $replaceStr, $start);
|
||||
list($email_id, $email_host) = explode('@', $member_info->email_address);
|
||||
$protect_id = substr($email_id, 0, 2) . str_repeat('*', strlen($email_id)-2);
|
||||
$member_info->email_address = sprintf('%s@%s', $protect_id, $email_host);
|
||||
}
|
||||
|
||||
if(!$member_info->member_srl) return $this->dispMemberSignUpForm();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue