本文整理汇总了PHP中showfacedesign函数的典型用法代码示例。如果您正苦于以下问题:PHP showfacedesign函数的具体用法?PHP showfacedesign怎么用?PHP showfacedesign使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了showfacedesign函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _cookData
/**
*
* 数据处理
* @param int $fid
* @return
*/
function _cookData($data)
{
if (!S::isArray($data)) {
return array();
}
require_once R_P . 'require/showimg.php';
foreach ($data as $k => $v) {
$tem = array();
$tem['url'] = USER_URL . $v['uid'];
$tem['title'] = $v['username'];
$tem['value'] = $v['uid'];
if (array_key_exists('icon', $v)) {
$pic = showfacedesign($v['icon'], true, 's');
if (is_array($pic)) {
$tem['image'] = $pic[0];
} else {
$tem['image'] = '';
}
} else {
$tem['image'] = '';
}
$tem['addition'] = $v;
$userInfo[] = $tem;
}
return $userInfo;
}
示例2: getInfo
function getInfo($uids, $fields = array())
{
if (!$uids) {
return new ApiResponse(false);
}
require_once R_P . 'require/showimg.php';
$uids = is_numeric($uids) ? array($uids) : explode(",", $uids);
if (!$fields) {
$fields = array('uid', 'username', 'icon', 'gender', 'location', 'bday');
}
$userService = L::loadClass('UserService', 'user');
/* @var $userService PW_UserService */
$users = array();
foreach ($userService->getByUserIds($uids) as $rt) {
list($rt['icon']) = showfacedesign($rt['icon'], 1, 'm');
$rt_a = array();
foreach ($fields as $field) {
if (isset($rt[$field])) {
$rt_a[$field] = $rt[$field];
}
}
$users[$rt['uid']] = $rt_a;
}
return new ApiResponse($users);
}
示例3: getInfo
function getInfo($uids, $fields = array())
{
if (!$uids) {
return new ApiResponse(false);
}
if (is_numeric($uids)) {
$sql = ' uid=' . pwEscape($uids);
} else {
$sql = ' uid IN(' . pwImplode(explode(',', $uids)) . ')';
}
require_once R_P . 'require/showimg.php';
$users = array();
$query = $this->db->query("SELECT uid,username,icon,gender,location,bday FROM pw_members WHERE " . $sql);
while ($rt = $this->db->fetch_array($query)) {
list($rt['icon']) = showfacedesign($rt['icon'], 1, 'm');
if ($fields) {
$rt_a = array();
foreach ($fields as $field) {
if (isset($rt[$field])) {
$rt_a[$field] = $rt[$field];
}
}
} else {
$rt_a = $rt;
}
$users[$rt['uid']] = $rt_a;
}
return new ApiResponse($users);
}
示例4: getCardData
/**
* 组装小名片数据
*
* @param int $uid 用户ID
* @param int $winduid 当前用户id
* @param bool $username 用户名
* @return array
*/
function getCardData($uid, $winduid, $username)
{
extract(pwCache::getData(R_P . "data/bbscache/level.php", false));
if ($uid < 1 && !trim($username) || $username == '游客' || $username == '匿名') {
return array('username' => '游客', 'memtitle' => $ltitle[2]);
}
$userService = L::loadClass('UserService', 'user');
if ($uid) {
$userInfo = $userService->get($uid, true, true);
} elseif ($username) {
$userInfo = $userService->getByUserName($username, true, true);
}
if (!S::isArray($userInfo)) {
return array();
}
require_once R_P . 'require/showimg.php';
list($faceimage) = showfacedesign($userInfo['icon'], 1, 's');
$userInfo['groupid'] == '-1' && ($userInfo['groupid'] = $userInfo['memberid']);
!array_key_exists($userInfo['groupid'], (array) $lpic) && ($userInfo['groupid'] = 8);
$online = checkOnline($userInfo['thisvisit']);
$onlineRead = $online ? getOnlineViewing($userInfo['uid'], $userInfo['username']) : array();
$user = array('mine' => $userInfo['uid'] == $winduid || !$winduid ? 0 : 1, 'uid' => $userInfo['uid'], 'username' => $userInfo['username'], 'icon' => $faceimage, 'memtitle' => $ltitle[$userInfo['groupid']], 'genderClass' => $userInfo['gender'], 'viewTid' => isset($onlineRead['tid']) && $onlineRead['tid'] ? $onlineRead['tid'] : '', 'viewFid' => isset($onlineRead['fid']) && $onlineRead['fid'] ? $onlineRead['fid'] : '', 'online' => $online ? 1 : 0);
$user['medals'] = getMedalsByUid($userInfo['uid']);
// 勋章
$memberTagsService = L::loadClass('memberTagsService', 'user');
$user['memberTags'] = $memberTagsService->makeClassTags($memberTagsService->getMemberTagsByUid($userInfo['uid']));
//标签
$attentionSerivce = L::loadClass('Attention', 'friend');
/* @var $attentionSerivce PW_Attention */
$user['attention'] = $attentionSerivce->isFollow($winduid, $userInfo['uid']) ? 1 : 0;
//关注
return $user;
}
示例5: getUsersFromEmailList
/**
* 根据联系人邮件列表获得好友列表
* @param Array $emailList
* @return Array:
*/
function getUsersFromEmailList($emailList)
{
$result = array();
if (!empty($emailList) && is_array($emailList)) {
$userService = L::loadClass('UserService', 'user');
/* @var $userService PW_UserService */
foreach ($userService->getByEmails($emailList) as $rt) {
$rt['face'] = showfacedesign($rt['icon'], '1', 's');
$rt['face'] = $rt['face'][0];
$result[$rt['uid']] = $rt;
}
}
return $result;
}
示例6: _cookData
/**
* 格式化数据统一输出
* @param array $data
* @return array
*/
function _cookData($data)
{
$cookData = array();
foreach ($data as $k => $v) {
if (isset($v['password'])) {
unset($v['password']);
}
if ($v['topicid']) {
if (strpos($v['topicname'], '[s:') !== false && strpos($v['topicname'], ']') !== false) {
unset($data[$k]);
continue;
}
$v['title'] = $v['descrip'] = strip_tags($v['topicname']);
$v['url'] = 'apps.php?q=weibo&do=topics&topic=' . $v['topicname'];
$v['postdate'] = get_date($v['crtime'], 'Y-m-d');
} elseif ($v['mid']) {
$v['url'] = 'apps.php?q=weibo&do=detail&mid=' . $v['mid'] . '&uid=' . $v['uid'];
$v['title'] = $v['extra']['title'] ? strip_tags($v['extra']['title']) : strip_tags($v['content']);
$v['descrip'] = strip_tags($v['content']);
$v['authorurl'] = 'u.php?uid=' . $v['uid'];
$v['author'] = $v['username'];
$v['authorid'] = $v['uid'];
$v['postdate'] = $v['postdate_s'];
if (S::isArray($v['extra']['photos'])) {
$image = $v['extra']['photos'][0];
$temp = geturl($image['path']);
$v['image'] = $temp[0] ? $temp[0] : '';
}
$pic = showfacedesign($v['icon'], true, 's');
$v['icon'] = S::isArray($pic) ? $pic[0] : '';
} else {
$v['url'] = 'u.php?uid=' . $v['uid'];
$v['title'] = $v['username'];
$v['uid'] = $v['uid'];
$v['tags'] = $v['tags'] ? $v['tags'] : "TA还没有标签";
$v['image'] = $v['icon'] ? $v['icon'] : '';
}
if (!$v['title']) {
unset($data[$k]);
continue;
}
$cookData[$k] = $v;
}
return $cookData;
}
示例7: pwNavBar
/**
* 生成导航条信息
*
* @return array
*/
function pwNavBar()
{
global $winduid, $db_mainnav, $db_menu, $groupid, $winddb, $SCR, $db_modes, $db_mode, $defaultMode, $db_menuinit;
global $alias;
$tmpLogin = $tmpNav = array();
if ($groupid != 'guest') {
require_once R_P . 'require/showimg.php';
list($tmpLogin['faceurl']) = showfacedesign($winddb['icon'], 1, 's');
$tmpLogin['lastlodate'] = get_date($winddb['lastvisit'], 'Y-m-d');
} else {
global $db_question, $db_logintype, $db_qcheck, $db_ckquestion;
if ($db_question) {
//list(, $tmpLogin['qcheck'],,,$tmpLogin['showq']) = explode("\t", $db_qcheck);
$tmpLogin['qcheck'] = $db_ckquestion & 2;
list(, $tmpLogin['showq']) = explode("\t", $db_qcheck);
if ($tmpLogin['qcheck']) {
$tmpLogin['qkey'] = array_rand($db_question);
}
}
if ($db_logintype) {
for ($i = 0; $i < 3; $i++) {
if ($db_logintype & pow(2, $i)) {
$tmpLogin['logintype'][] = $i;
}
}
} else {
$tmpLogin['logintype'][0] = 0;
}
}
$currentPostion = array();
$currentPostion['mode'] = $db_mode;
if (in_array(SCR, array('index', 'cate', 'mode', 'read', 'thread')) || $SCR == 'm_home') {
$currentPostion['mode'] = empty($db_mode) ? 'bbs' : $db_mode;
}
if ($currentPostion['mode'] == 'area' && $alias) {
$currentPostion['alias'] = $alias;
}
$navConfigService = L::loadClass('navconfig', 'site');
/* @var $navConfigService PW_NavConfig */
$tmpNav[PW_NAV_TYPE_MAIN] = $navConfigService->findValidNavListByTypeAndPostion(PW_NAV_TYPE_MAIN, $db_mode, $currentPostion);
$tmpNav[PW_NAV_TYPE_HEAD_LEFT] = $navConfigService->findValidNavListByTypeAndPostion(PW_NAV_TYPE_HEAD_LEFT, $db_mode);
$tmpNav[PW_NAV_TYPE_HEAD_RIGHT] = $navConfigService->findValidNavListByTypeAndPostion(PW_NAV_TYPE_HEAD_RIGHT, $db_mode);
$tmpNav[PW_NAV_TYPE_FOOT] = $navConfigService->findValidNavListByTypeAndPostion(PW_NAV_TYPE_FOOT, $db_mode);
return array($tmpNav, $tmpLogin);
}
示例8: get_pinglogs
function get_pinglogs($tid, $pingIdArr)
{
if (empty($pingIdArr)) {
return;
}
global $db, $fid, $creditnames;
$pingIds = array();
$pingLogs = array();
foreach ($pingIdArr as $pid => $markInfo) {
list($count, $ids, $creditCount) = explode(":", $markInfo);
$pingLogs[$pid]['count'] = $count;
$pingLogs[$pid]['creditCount'] = parseCreditCount($creditCount);
$pingIds = array_merge($pingIds, explode(",", $ids));
}
if (!count($pingIds)) {
return array();
}
$query = $db->query("SELECT a.*,b.uid,b.icon FROM pw_pinglog a LEFT JOIN pw_members b ON a.pinger=b.username WHERE a.id IN (" . S::sqlImplode($pingIds) . ") ");
while ($rt = $db->fetch_array($query)) {
$rt['pid'] = $rt['pid'] ? $rt['pid'] : 'tpc';
list($rt['pingtime'], $rt['pingdate']) = getLastDate($rt['pingdate']);
$rt['record'] = $rt['record'] ? $rt['record'] : "-";
if ($rt['point'] > 0) {
$rt['point'] = "+" . $rt['point'];
}
$tmp = showfacedesign($rt['icon'], true, 's');
$rt['icon'] = $tmp[0];
isset($creditnames[$rt['name']]) && ($rt['name'] = $creditnames[$rt['name']]);
$pingLogs[$rt['pid']]['data'][$rt['id']] = $rt;
}
foreach ($pingLogs as $pid => $data) {
if (is_array($pingLogs[$pid]['data'])) {
krsort($pingLogs[$pid]['data']);
}
}
return $pingLogs;
}
示例9: htmread
function htmread($read, $start_limit)
{
global $imgpath, $db_ipfrom, $db_windpost, $db_windpic, $db_signwindcode, $db_shield;
$lpic = L::config('lpic', 'cache_read');
$ltitle = L::config('ltitle', 'cache_read');
$_MEDALDB = L::config('_MEDALDB', 'cache_read');
$read['lou'] = $start_limit;
$start_limit == $count - 1 && ($read['jupend'] = '<a name=lastatc></a>');
$read['ifsign'] < 2 && ($read['content'] = str_replace("\n", "<br>", $read['content']));
$read['groupid'] == '-1' && ($read['groupid'] = $read['memberid']);
$anonymous = $read['anonymous'] ? 1 : 0;
if ($read['groupid'] != '' && $anonymous == 0) {
!$lpic[$read['groupid']] && ($read['groupid'] = 8);
$read['lpic'] = $lpic[$read['groupid']];
$read['level'] = $ltitle[$read['groupid']];
$read['regdate'] = get_date($read['regdate'], "Y-m-d");
$read['lastlogin'] = get_date($read['lastvisit'], "Y-m-d");
$read['aurvrc'] = floor($read['rvrc'] / 10);
$read['author'] = $read['username'];
$read['ontime'] = (int) ($read['onlinetime'] / 3600);
$tpc_author = $read['author'];
list($read['face'], , $httpWidth, $httpHeight, , , , $read['facesize']) = showfacedesign($read['micon'], true, 'm');
if ($httpWidth > 120 || $httpHeight > 120 || $read['facesize'] == '') {
$read['facesize'] = ' width="120" height="120"';
}
list($read['posttime']) = getLastDate($read['postdate']);
if ($db_ipfrom == 1) {
$read['ipfrom'] = ' From:' . $read['ipfrom'];
}
if (L::config('md_ifopen', 'cache_read') && $read['medals']) {
$medals = '';
$md_a = explode(',', $read['medals']);
foreach ($md_a as $key => $value) {
if ($value) {
$medals .= "<img src=\"{$_MEDALDB[$value][smallimage]}\" title=\"{$_MEDALDB[$value][name]}\" /> ";
}
}
$read['medals'] = $medals . '<br />';
} else {
$read['medals'] = '';
}
if ($read['ifsign'] == 1 || $read['ifsign'] == 3) {
global $sign;
if (!$sign[$read['author']]) {
global $db_signmoney, $db_signgroup, $tdtime;
if (strpos($db_signgroup, ",{$read['groupid']},") !== false && $db_signmoney) {
$read['signature'] = '';
} else {
if ($db_signwindcode && getstatus($read['userstatus'], PW_USERSTATUS_SIGNCHANGE)) {
$read['signature'] = convert($read['signature'], $db_windpic, 2);
}
$read['signature'] = str_replace("\n", "<br>", $read['signature']);
}
$sign[$read['author']] = $read['signature'];
} else {
$read['signature'] = $sign[$read['author']];
}
} else {
$read['signature'] = '';
}
} else {
$read['face'] = "{$imgpath}/face/none.gif";
$read['lpic'] = '8';
$read['level'] = $read['digests'] = $read['postnum'] = $read['money'] = $read['regdate'] = $read['lastlogin'] = $read['aurvrc'] = $read['credit'] = '*';
if ($anonymous) {
$read['signature'] = $read['honor'] = $read['medals'] = $read['ipfrom'] = '';
$read['author'] = $GLOBALS['db_anonymousname'];
$read['authorid'] = 0;
foreach (L::config('customfield', 'cache_read') as $key => $val) {
$field = "field_" . (int) $val['id'];
$read[$field] = '*';
}
}
}
$read['postdate'] = get_date($read['postdate']);
$read['mark'] = '';
if ($read['ifmark']) {
$markdb = explode("\t", $read['ifmark']);
foreach ($markdb as $key => $value) {
$read['mark'] .= "<li>{$value}</li>";
}
}
if ($read['icon']) {
$read['icon'] = "<img src=\"{$imgpath}/post/emotion/{$read['icon']}.gif\" align=left border=0>";
} else {
$read['icon'] = '';
}
/**
* 动态判断发帖是否需要转换
*/
$tpc_shield = 0;
if ($read['ifshield'] || $read['groupid'] == 6 && $db_shield) {
$read['subject'] = $read['icon'] = '';
$read['content'] = shield($read['ifshield'] ? $read['ifshield'] == 1 ? 'shield_article' : 'shield_del_article' : 'ban_article');
$tpc_shield = 1;
}
if (!$tpc_shield) {
$wordsfb = L::loadClass('FilterUtil', 'filter');
if (!$wordsfb->equal($read['ifwordsfb'])) {
$read['content'] = $wordsfb->convert($read['content']);
//.........这里部分代码省略.........
示例10: getFanByUid
function getFanByUid($uid, $offset, $limit)
{
list($uid, $offset, $limit) = array(intval($uid), intval($offset), intval($limit));
if ($uid < 1) {
$this->buildResponse(Friend_INVALID_PARAMS);
}
$attentionService = L::loadClass('Attention', 'friend');
$count = $attentionService->countFans($uid);
if ($count < 1) {
return $this->buildResponse(0, array());
}
$sqlLimit = $offset > 0 ? ' AND f.uid < ' . S::sqlEscape($offset) : '';
$sql = "SELECT m.uid,m.username,m.icon as face,m.honor,m.groupid,m.memberid,m.gender,md.thisvisit,md.lastvisit,md.fans FROM pw_attention f LEFT JOIN pw_members m ON f.uid = m.uid" . " LEFT JOIN pw_memberdata md ON f.uid = md.uid" . " WHERE f.friendid=" . S::sqlEscape($uid) . " {$sqlLimit} ORDER BY f.uid DESC LIMIT " . intval($limit);
$query = $GLOBALS['db']->query($sql);
require_once R_P . 'require/showimg.php';
$result = array();
while ($rt = $GLOBALS['db']->fetch_array($query)) {
$tmpIcon = showfacedesign($rt['face'], 1, 's');
$result[$rt['uid']] = array('uid' => $rt['uid'], 'username' => $rt['username'], 'face' => $tmpIcon[0]);
}
$currentUid = ACloud_Sys_Core_Common::getGlobal('customized_current_uid', 0);
$followIds = $this->getUids($attentionService->getFollowList($currentUid), 'friendid');
$result = $this->buildFriendList($uid, $result, $followIds);
return $this->buildResponse(0, array('friends' => $result, 'count' => $count));
}
示例11: explode
$customfield[$key]['field'] = "field_{$value['id']}";
if ($value['type'] == 3 && $_POST['step'] != 2) {
$customfield[$key]['options'] = explode("\n", $value['options']);
} elseif ($value['type'] == 2) {
$SCR = 'post';
}
$mbadd .= ",mb.field_{$value['id']}";
}
$db_union[7] && ($mbadd .= ',mb.customdata');
$userdb = $db->get_one("SELECT m.email,m.password,m.groupid,m.groups,m.icon,m.gender,m.signature,m.introduce,m.oicq,m.aliww,m.msn,m.yahoo,m.site,m.location,m.honor,m.bday,m.timedf,m.datefm,m.t_num,m.p_num,m.userstatus,md.currency,md.starttime,mb.tradeinfo{$mbadd} FROM pw_members m LEFT JOIN pw_memberdata md USING(uid) LEFT JOIN pw_memberinfo mb USING(uid) WHERE m.uid=" . pwEscape($winduid));
InitGP(array('info_type'));
//浏览页ajax创建商品分类名称
InitGP(array('ajax_create', 'tradeTypeName'), "P");
$ajax_create && createThreadTradeType($tradeTypeName, $winduid);
if (empty($_POST['step'])) {
list($iconurl, $icontype, $iconwidth, $iconheight, $iconfile, , , $iconsize) = showfacedesign($userdb['icon'], true, 'm');
include_once D_P . 'data/bbscache/dbreg.php';
require_once R_P . 'require/forum.php';
require_once R_P . 'require/credit.php';
$customdata = $custominfo = $sexselect = $yearslect = $monthslect = $dayslect = array();
$ifpublic = $groupselect = $httpurl = $email_Y = $email_N = $prosign_Y = $prosign_N = '';
$ifsign = false;
!in_array($info_type, array('base', 'trade', 'link', 'face', 'safe', 'binding', 'other')) && ($info_type = 'base');
getstatus($userdb['userstatus'], 7) && ($ifpublic = 'checked');
${'email_' . (getstatus($userdb['userstatus'], 8) ? 'Y' : 'N')} = 'checked';
${'prosign_' . (getstatus($userdb['userstatus'], 10) ? 'Y' : 'N')} = 'checked';
if ($db_selectgroup && $userdb['groups']) {
$ltitle = L::config('ltitle', 'level');
$groupselect = $userdb['groupid'] == '-1' ? '<option></option>' : "<option value=\"{$userdb['groupid']}\">" . $ltitle[$userdb['groupid']] . "</option>";
$groups = explode(',', $userdb['groups']);
foreach ($groups as $value) {
示例12: pwCreditNames
$creditnames = pwCreditNames();
//х╗оч
$foruminfo = $db->get_one('SELECT * FROM pw_forums f LEFT JOIN pw_forumsextra fe USING(fid) WHERE f.fid=' . S::sqlEscape($fid));
!$foruminfo && Showmsg('data_error');
$isGM = $isBM = $admincheck = 0;
if ($groupid != 'guest') {
$isGM = S::inArray($windid, $manager);
$isBM = admincheck($foruminfo['forumadmin'], $foruminfo['fupadmin'], $windid);
$admincheck = $isGM || $isBM ? 1 : 0;
}
$count = $db->get_value("SELECT COUNT(*) FROM pw_pinglog WHERE fid=" . S::sqlEscape($fid) . " AND tid=" . S::sqlEscape($tid) . " AND pid=" . S::sqlEscape($pid) . " AND ifhide=0");
$total = ceil($count / $perpage);
if ($page < 2) {
$page = 2;
}
$offset = ($page - 1) * $perpage;
$ping_db = array();
$query = $db->query("SELECT a.*,b.uid,b.icon FROM pw_pinglog a LEFT JOIN pw_members b ON a.pinger=b.username WHERE a.fid=" . S::sqlEscape($fid) . " AND a.tid=" . S::sqlEscape($tid) . " AND a.pid=" . S::sqlEscape($pid) . " AND ifhide=0 ORDER BY a.pingdate DESC LIMIT {$offset},{$perpage}");
while ($rt = $db->fetch_array($query)) {
list($rt['pingtime'], $rt['pingdate']) = getLastDate($rt['pingdate']);
$rt['record'] = $rt['record'] ? $rt['record'] : "-";
if ($rt['point'] > 0) {
$rt['point'] = "+" . $rt['point'];
}
$tmp = showfacedesign($rt['icon'], true);
$rt['icon'] = $tmp[0];
isset($creditnames[$rt['name']]) && ($rt['name'] = $creditnames[$rt['name']]);
$ping_db[] = $rt;
}
require_once PrintEot('ajax');
ajax_footer();
示例13: PrintEot
require_once PrintEot('u');
footer();
} elseif ($action == 'show') {
if (!$winduid && !$_G['allowprofile']) {
Showmsg('not_login');
}
include_once D_P . 'data/bbscache/md_config.php';
require_once R_P . 'require/credit.php';
require_once R_P . 'require/forum.php';
require_once R_P . 'require/postfunc.php';
$customdata = $custominfo = $colonydb = array();
$user_icon = explode('|', $userdb['icon']);
if ($user_icon[4] && $userdb['tooltime'] < $timestamp - 86400) {
$userdb['icon'] = "{$user_icon['0']}|{$user_icon['1']}|{$user_icon['2']}|{$user_icon['3']}|0";
$db->update("UPDATE pw_members SET icon=" . pwEscape($userdb['icon'], false) . " WHERE uid=" . pwEscape($userdb['uid']));
$usericon = showfacedesign($userdb['icon'], true);
}
$query = $db->query("SELECT cy.id,cy.cname FROM pw_cmembers c LEFT JOIN pw_colonys cy ON cy.id=c.colonyid WHERE c.uid=" . pwEscape($userdb['uid']));
while ($rt = $db->fetch_array($query)) {
$colonydb[] = $rt;
}
if ($md_ifopen && $userdb['medals']) {
include_once D_P . 'data/bbscache/medaldb.php';
$query = $db->query("SELECT id,awardee,level FROM pw_medalslogs WHERE awardee=" . pwEscape($userdb['username'], false) . " AND action='1' AND state='0' AND timelimit>0 AND {$timestamp}-awardtime>timelimit*2592000");
if ($db->num_rows($query)) {
include_once R_P . 'require/msg.php';
$reason = Char_cv(getLangInfo('other', 'medal_reason'));
$ids = $medals = $medalslog = array();
while ($rt = $db->fetch_array($query)) {
$ids[] = $rt['id'];
$medals[] = $rt['level'];
示例14: viewread
function viewread($read)
{
global $winduid, $isGM, $pwSystem, $_G, $db_windpost, $tpc_buy, $tpc_pid, $tpc_tag, $tpc_author, $tid;
$tpc_buy = $read['buy'];
$tpc_pid = $read['pid'];
$tpc_tag = NULL;
$tpc_author = '';
if ($read['anonymous']) {
$anonymous = !$isGM && $winduid != $read['authorid'] && !$pwSystem['anonyhide'];
} else {
$anonymous = false;
}
if (!$anonymous) {
$tpc_author = $read['author'];
}
list($read['face']) = showfacedesign($read['micon'], true, 'm');
$read['content'] = preg_replace("/\\[quote\\](.*)\\[\\/quote\\]/is", "", $read['content']);
$read['ifsign'] < 2 && ($read['content'] = str_replace("\n", "<br />", $read['content']));
$read['leaveword'] && ($read['content'] .= leaveword($read['leaveword'], $read['pid']));
$read['content'] = preg_replace('/(\\[s:[^]]+\\])+/', '[表情]', $read['content']);
//face
$read['content'] = strip_tags(convert($read['content'], '1'));
if ($read['ifwordsfb'] != $GLOBALS['db_wordsfb']) {
$read['content'] = wordsConvert($read['content'], array('id' => $tpc_pid == 'tpc' ? $tid : $tpc_pid, 'type' => $tpc_pid == 'tpc' ? 'topic' : 'posts', 'code' => $read['ifwordsfb']));
}
$read['content'] = parseReplyContent($read['content']);
return $read;
}
示例15: COUNT
}
$total = $db->get_value("SELECT COUNT(*) AS sum FROM pw_cmembers cm WHERE cm.colonyid=" . S::sqlEscape($cyid) . $sqlsel);
if ($total) {
if (in_array($orderby, array('lastpost', 'lastvisit'))) {
$order = $orderby;
$urladd = $orderby ? "orderby={$orderby}&" : '';
${'order_' . $orderby} = ' class="current"';
} else {
$order = 'ifadmin';
$urladd = '';
}
list($pages, $limit) = pwLimitPages($total, $page, "{$basename}&group={$group}&{$urladd}");
$memdb = array();
$query = $db->query("SELECT cm.*,m.icon,m.honor,md.thisvisit FROM pw_cmembers cm LEFT JOIN pw_members m ON cm.uid=m.uid LEFT JOIN pw_memberdata md ON m.uid=md.uid WHERE cm.colonyid=" . S::sqlEscape($cyid) . $sqlsel . " ORDER BY cm.{$order} DESC {$limit}");
while ($rt = $db->fetch_array($query)) {
list($rt['icon']) = showfacedesign($rt['icon'], 1);
$memdb[$rt['username']] = $rt;
}
$colonyOwner = $memdb[$colony['admin']];
unset($memdb[$colony['admin']]);
$colonyOwner && array_unshift($memdb, $colonyOwner);
}
}
$urladd = $group ? '&group=' . $group : '';
require_once PrintEot('thread_member');
footer();
} else {
!$ifadmin && Showmsg('undefined_action');
S::gp(array('selid'), 'P', 2);
if (!$selid || !is_array($selid)) {
Showmsg('id_error');