mirror of
https://github.com/e107inc/e107.git
synced 2025-04-20 04:32:01 +02:00
parent
fbdbd4b1ca
commit
708e26d97a
@ -265,24 +265,30 @@ class user_shortcodes extends e_shortcode
|
||||
|
||||
|
||||
|
||||
function sc_user_email($parm='')
|
||||
function sc_user_email($parm='')
|
||||
{
|
||||
|
||||
$tp = e107::getParser();
|
||||
|
||||
$aCurUserData = e107::user(USERID);
|
||||
|
||||
if( ($this->var['user_hideemail'] && !ADMIN ) && ( $this->var['user_email']!=$aCurUserData['user_email'] ) )
|
||||
{
|
||||
|
||||
$tp = e107::getParser();
|
||||
|
||||
if($this->var['user_hideemail'] && !ADMIN)
|
||||
{
|
||||
return "<i>".LAN_USER_35."</i>";
|
||||
}
|
||||
else
|
||||
{
|
||||
return "<i>".LAN_USER_35."</i>";
|
||||
}
|
||||
else
|
||||
{
|
||||
if($this->var['user_email']!=$aCurUserData['user_email']){
|
||||
return $tp->emailObfuscate($this->var['user_email']);
|
||||
//list($user,$dom) = explode('@', $this->var['user_email']);
|
||||
//return "<span class='e-email' data-user='".$user."' data-dom='".$dom."'>@</span>";
|
||||
}else{
|
||||
return $this->var['user_email'];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* USER_ICON Shortcode
|
||||
|
Loading…
x
Reference in New Issue
Block a user