mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-02 16:52:16 +09:00
개인정보 이메일 보호 (메일주소 가리기, 친구만 메일 보내기)
This commit is contained in:
parent
929a694ee1
commit
f3916c9535
2 changed files with 10 additions and 6 deletions
|
|
@ -155,10 +155,14 @@ class memberModel extends member
|
|||
}
|
||||
|
||||
// Send an email only if email address is public
|
||||
if(($logged_info->is_admin == 'Y' || $email_config->isPublic == 'Y') && $member_info->email_address)
|
||||
if($email_config->isPublic == 'Y' && $member_info->email_address)
|
||||
{
|
||||
$url = 'mailto:'.htmlspecialchars($member_info->email_address, ENT_COMPAT | ENT_HTML401, 'UTF-8', false);
|
||||
$oMemberController->addMemberPopupMenu($url,'cmd_send_email',$icon_path);
|
||||
$oCommunicationModel = getModel('communication');
|
||||
if($logged_info->is_admin == 'Y' || $oCommunicationModel->isFriend($member_info->member_srl))
|
||||
{
|
||||
$url = 'mailto:'.htmlspecialchars($member_info->email_address, ENT_COMPAT | ENT_HTML401, 'UTF-8', false);
|
||||
$oMemberController->addMemberPopupMenu($url,'cmd_send_email',$icon_path);
|
||||
}
|
||||
}
|
||||
}
|
||||
// View homepage info
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue