function _member($uid = 0) { $member = array(); if ($uid < 1) { $member = jsg_member_info_by_mod(); $member = wap_iconv($member); } $uid = (int) ($uid ? $uid : MEMBER_ID); if ($uid > 0 && !$member) { $member = $this->_topicLogicGetMember($uid); } if (!$member) { return false; } $uid = $member['uid']; if (MEMBER_ID > 0 && $uid != MEMBER_ID) { $member = buddy_follow_html($member, 'uid', 'wap_follow_html', 1); } return $member; }
function _member($uid = 0) { $member = array(); if ($uid < 1) { $member = jsg_member_info_by_mod(); } $uid = (int) ($uid ? $uid : MEMBER_ID); if ($uid > 0 && !$member) { $member = $this->TopicLogic->GetMember($uid); } if (!$member) { return false; } $uid = $member['uid']; if (!$member['follow_html'] && $uid != MEMBER_ID && MEMBER_ID > 0) { $member['follow_html'] = buddy_follow_html($member, 'uid', 'follow_html', 1); } if (true === UCENTER_FACE && MEMBER_ID == $uid && MEMBER_UCUID > 0 && !$member['__face__']) { include_once ROOT_PATH . './api/uc_client/client.php'; $uc_check_result = uc_check_avatar(MEMBER_UCUID); if ($uc_check_result) { $this->DatabaseHandler->Query("update " . TABLE_PREFIX . "members set `face`='./images/noavatar.gif' where `uid`='{$uid}'"); } } if ($GLOBALS['_J']['plugins']['func']['printuser']) { jlogic('plugin')->hookscript('printuser', 'funcs', $member, 'printuser'); } return $member; }