本文整理汇总了PHP中discuz_uc_avatar函数的典型用法代码示例。如果您正苦于以下问题:PHP discuz_uc_avatar函数的具体用法?PHP discuz_uc_avatar怎么用?PHP discuz_uc_avatar使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了discuz_uc_avatar函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: max
$page = max(1, intval($page));
$start_limit = ($page - 1) * $tpp;
if ($action == 'index') {
$myinvitenum = intval($db->result_first("SELECT COUNT(*) FROM {$tablepre}invites WHERE uid='{$discuz_uid}' AND dateline>'{$timestamp}'-86400 AND dateline<'{$timestamp}'"));
if (!submitcheck('buysubmit')) {
$invitenum = intval($db->result_first("SELECT COUNT(*) FROM {$tablepre}invites WHERE uid='{$discuz_uid}' AND status IN ('1', '3')"));
$multipage = multi($invitenum, $tpp, $page, "invite.php");
$invitelist = $inviteuserlist = array();
$query = $db->query("SELECT dateline, expiration, invitecode, status\r\n\t\t\t\tFROM {$tablepre}invites\r\n\t\t\t\tWHERE uid='{$discuz_uid}' AND status IN ('1', '3') ORDER BY dateline DESC LIMIT {$start_limit},{$tpp}");
while ($invite = $db->fetch_array($query)) {
$invite['expiration'] = round(($invite['expiration'] - $timestamp) / 86400);
$invitelist[] = $invite;
}
$query = $db->query("SELECT i.dateline, i.expiration, i.invitecode, m.username, m.uid\r\n\t\t\t\tFROM {$tablepre}invites i, {$tablepre}members m\r\n\t\t\t\tWHERE i.uid='{$discuz_uid}' AND i.status='2' AND i.reguid=m.uid ORDER BY i.regdateline DESC LIMIT 0, 10");
while ($inviteuser = $db->fetch_array($query)) {
$inviteuser['avatar'] = discuz_uc_avatar($inviteuser['uid'], 'small');
$inviteuserlist[] = $inviteuser;
}
include template('invite_index');
} else {
if (!$allowinvite) {
showmessage('group_nopermission', NULL, 'NOPERM');
}
if ($maxinvitenum && $myinvitenum == $maxinvitenum) {
showmessage('invite_num_range_invalid');
}
$amount = intval($amount);
$buyinvitecredit = $amount ? $amount * $inviteprice : 0;
if (!$amount || $amount < 0) {
showmessage('invite_num_invalid');
} elseif (${'extcredits' . $creditstransextra[4]} < $buyinvitecredit && $buyinvitecredit) {
示例2: discuz_uc_avatar
?>
<a name="new"></a><?php
$new = 1;
}
?>
<a<?php
if ($msgfromurl && $pm['msgfromid'] != $discuz_uid) {
?>
href="<?php
echo $msgfromurl;
?>
"<?php
}
?>
class="avatar"><?php
echo discuz_uc_avatar($pm['msgfromid'], 'small');
?>
</a>
<p>
<span class="time right"><?php
echo $pm['dateline'];
?>
</span>
<cite<?php
if ($pm['new']) {
?>
class="new"<?php
}
?>
><?php
if ($pm['msgfromid'] != $discuz_uid) {
示例3: if
.mynarrow { margin: 5px -10px 5px 10px; padding-top: 8px; width: 200px; border-top: 1px dashed #ccc; }
.mynarrow h3.lightlink a { text-decoration: none; }
.with_side .side { width: 220px; }
.with_side .main { margin-left:-220px; }
.with_side .content { margin-left:220px; }
</style><? if(is_array($my_list['wide'])) { foreach($my_list['wide'] as $value) { ?><hr class="dashline" />
<h3 class="blocktitle lightlink"><a href="<?=$value['appurl']?>&from=space"><?=$value['appname']?></a></h3>
<p><? eval($value['myml']); ?></p><? } } } ?>
</div>
</div>
<div class="side">
<div class="profile_side">
<? if($bannedmessages & 2 && ($member['groupid'] == 4 || $member['groupid'] == 5)) { ?>
<div class="avatar">头像被屏蔽</div>
<? } else { ?>
<div class="avatar"><? echo discuz_uc_avatar($member['uid']); ?></div>
<? } ?>
<ul id="profile_act">
<?=$pluginhooks['profile_side_top']?>
<li class="pm"><a href="pm.php?action=new&uid=<?=$member['uid']?>" id="sendpm" prompt="sendpm" onclick="showWindow('sendpm', this.href);return false;">发短消息</a></li>
<li class="buddy"><a href="my.php?item=buddylist&newbuddyid=<?=$member['uid']?>&buddysubmit=yes" id="addbuddy" prompt="addbuddy" onclick="ajaxmenu(this, 3000);doane(event);">加为好友</a></li>
<? if($discuz_uid && $magicstatus) { ?><li class="magic"><a href="magic.php?action=index&username=<?=$member['usernameenc']?>" target="_blank">使用道具</a></li><? } if($allowviewuserthread) { ?>
<li class="searchthread"><a href="my.php?item=threads&uid=<?=$member['uid']?>">查看主题</a></li>
<li class="searchpost"><a href="my.php?item=posts&uid=<?=$member['uid']?>">查看回复</a></li>
<? } else { ?>
<li class="searchpost"><a href="search.php?srchuid=<?=$member['uid']?>&srchfid=all&srchfrom=0&searchsubmit=yes">搜索帖子</a></li>
<? } if($ucappopen['UCHOME']) { ?>
<li class="space"><a href="<?=$uchomeurl?>/space.php?uid=<?=$member['uid']?>" target="_blank">个人空间</a></li>
<? } elseif($ucappopen['XSPACE']) { ?>
<li class="space"><a href="<?=$xspaceurl?>/?uid-<?=$member['uid']?>" target="_blank">个人空间</a></li>
<? } ?>
示例4: viewthread_procpost
function viewthread_procpost($post, $lastvisit, $ordertype, $special = 0)
{
global $_G;
if (!$_G['forum_newpostanchor'] && $post['dateline'] > $lastvisit) {
$post['newpostanchor'] = '<a name="newpost"></a>';
$_G['forum_newpostanchor'] = 1;
} else {
$post['newpostanchor'] = '';
}
$post['lastpostanchor'] = $ordertype != 1 && $_G['forum_numpost'] == $_G['forum_thread']['replies'] || $ordertype == 1 && $_G['forum_numpost'] == $_G['forum_thread']['replies'] + 2 ? '<a name="lastpost"></a>' : '';
if ($_G['forum_pagebydesc']) {
if ($ordertype != 1) {
$post['number'] = $_G['forum_numpost'] + $_G['forum_ppp2']--;
} else {
$post['number'] = $post['first'] == 1 ? 1 : $_G['forum_numpost'] - $_G['forum_ppp2']--;
}
$post['count'] = $_G['ppp'] == $_G['forum_ppp3'] ? $_G['ppp'] - $_G['forum_postcount'] - 1 : $_G['forum_ppp3'] - $_G['forum_postcount'] - 1;
} else {
if ($ordertype != 1) {
$post['number'] = ++$_G['forum_numpost'];
} else {
$post['number'] = $post['first'] == 1 ? 1 : --$_G['forum_numpost'];
}
$post['count'] = $_G['forum_postcount'];
}
$_G['forum_postcount']++;
$post['dbdateline'] = $post['dateline'];
$post['dateline'] = dgmdate($post['dateline'], 'u');
$post['groupid'] = $_G['cache']['usergroups'][$post['groupid']] ? $post['groupid'] : 7;
if ($post['username']) {
$_G['forum_onlineauthors'][] = $post['authorid'];
$post['usernameenc'] = rawurlencode($post['username']);
!$special && ($post['groupid'] = getgroupid($post['authorid'], $_G['cache']['usergroups'][$post['groupid']], $post));
$post['readaccess'] = $_G['cache']['usergroups'][$post['groupid']]['readaccess'];
if ($_G['cache']['usergroups'][$post['groupid']]['userstatusby'] == 1) {
$post['authortitle'] = $_G['cache']['usergroups'][$post['groupid']]['grouptitle'];
$post['stars'] = $_G['cache']['usergroups'][$post['groupid']]['stars'];
}
$post['taobaoas'] = addslashes($post['taobao']);
$post['regdate'] = dgmdate($post['regdate'], 'd');
$post['lastdate'] = dgmdate($post['lastactivity'], 'd');
$post['authoras'] = !$post['anonymous'] ? ' ' . addslashes($post['author']) : '';
if ($post['medals']) {
loadcache('medals');
foreach ($post['medals'] = explode("\t", $post['medals']) as $key => $medalid) {
list($medalid, $medalexpiration) = explode("|", $medalid);
if (isset($_G['cache']['medals'][$medalid]) && (!$medalexpiration || $medalexpiration > TIMESTAMP)) {
$post['medals'][$key] = $_G['cache']['medals'][$medalid];
} else {
unset($post['medals'][$key]);
}
}
}
$post['avatar'] = discuz_uc_avatar($post['authorid']);
$post['groupicon'] = $post['avatar'] ? g_icon($post['groupid'], 1) : '';
$post['banned'] = $post['status'] & 1;
$post['warned'] = ($post['status'] & 2) >> 1;
} else {
if (!$post['authorid']) {
$post['useip'] = substr($post['useip'], 0, strrpos($post['useip'], '.')) . '.x';
}
}
$post['attachments'] = array();
$post['imagelist'] = $post['attachlist'] = '';
if ($post['attachment']) {
if ($_G['group']['allowgetattach']) {
$_G['forum_attachpids'] .= ",{$post['pid']}";
$post['attachment'] = 0;
if (preg_match_all("/\\[attach\\](\\d+)\\[\\/attach\\]/i", $post['message'], $matchaids)) {
$_G['forum_attachtags'][$post['pid']] = $matchaids[1];
}
} else {
$post['message'] = preg_replace("/\\[attach\\](\\d+)\\[\\/attach\\]/i", '', $post['message']);
}
}
$_G['forum_ratelogpid'] .= $_G['setting']['ratelogrecord'] && $post['ratetimes'] ? ',' . $post['pid'] : '';
if ($_G['setting']['commentnumber'] && ($post['first'] && $_G['setting']['commentfirstpost'] || !$post['first'])) {
$_G['forum_commonpid'] .= $post['comment'] ? ',' . $post['pid'] : '';
}
$post['allowcomment'] = $_G['setting']['commentnumber'] && ($_G['setting']['commentpostself'] || $post['authorid'] != $_G['uid']) && ($post['first'] && $_G['setting']['commentfirstpost'] && in_array($_G['group']['allowcommentpost'], array(1, 3)) || !$post['first'] && in_array($_G['group']['allowcommentpost'], array(2, 3)));
$_G['forum']['allowbbcode'] = $_G['forum']['allowbbcode'] ? $_G['cache']['usergroups'][$post['groupid']]['allowcusbbcode'] ? 2 : 1 : 0;
$post['signature'] = $post['usesig'] ? $_G['setting']['sigviewcond'] ? strlen($post['message']) > $_G['setting']['sigviewcond'] ? $post['signature'] : '' : $post['signature'] : '';
$post['message'] = discuzcode($post['message'], $post['smileyoff'], $post['bbcodeoff'], $post['htmlon'] & 1, $_G['forum']['allowsmilies'], $_G['forum']['allowbbcode'], $_G['forum']['allowimgcode'] && $_G['setting']['showimages'] ? 1 : 0, $_G['forum']['allowhtml'], $_G['forum']['jammer'] && $post['authorid'] != $_G['uid'] ? 1 : 0, 0, $post['authorid'], $_G['forum']['allowmediacode'], $post['pid']);
$post['first'] && ($_G['forum_firstpid'] = $post['pid']);
$_G['forum_firstpid'] = intval($_G['forum_firstpid']);
return $post;
}
示例5: showmessage
showmessage('undefined_action', NULL, 'HALTED');
} elseif (!($task = $db->fetch_first("SELECT t.taskid, mt.status FROM {$tablepre}tasks t LEFT JOIN {$tablepre}mytasks mt ON mt.taskid=t.taskid AND mt.uid='{$discuz_uid}' WHERE t.taskid='{$id}' AND t.available='2'"))) {
showmessage('task_nonexistence', NULL, 'HALTED');
} elseif ($task['status'] != '0') {
showmessage('undefined_action');
}
$db->query("DELETE FROM {$tablepre}mytasks WHERE uid='{$discuz_uid}' AND taskid='{$id}'", 'UNBUFFERED');
$db->query("UPDATE {$tablepre}tasks SET applicants=applicants-1 WHERE taskid='{$id}'", 'UNBUFFERED');
if (!$db->result_first("SELECT COUNT(*) FROM {$tablepre}mytasks WHERE uid='{$discuz_uid}' AND status='0'")) {
$db->query("UPDATE {$tablepre}members SET prompt=prompt^2 WHERE uid='{$discuz_uid}' AND prompt=prompt|2", 'UNBUFFERED');
}
showmessage('task_giveup', "task.php?item=view&id={$id}");
} elseif ($action == 'parter' && $id) {
$query = $db->query("SELECT * FROM {$tablepre}mytasks WHERE taskid='{$id}' ORDER BY dateline DESC LIMIT 0, 8");
while ($parter = $db->fetch_array($query)) {
$parter['avatar'] = discuz_uc_avatar($parter['uid'], 'small');
$csc = explode("\t", $parter['csc']);
$parter['csc'] = floatval($csc[0]);
$parterlist[] = $parter;
}
include template('task_parter');
dexit();
} else {
showmessage('undefined_action', NULL, 'HALTED');
}
include template('task');
function taskmessage($csc, $msg)
{
extract($GLOBALS, EXTR_SKIP);
include_once language('messages');
include template('header_ajax');
示例6: USING
$allowviewpro = $discuz_uid && $uid == $discuz_uid ? 1 : $allowviewpro;
if(!$allowviewpro) {
showmessage('group_nopermission', NULL, 'NOPERM');
}
include_once DISCUZ_ROOT.'./forumdata/cache/cache_usergroups.php';
$discuz_action = 62;
$member = $db->fetch_first("SELECT m.uid, mf.customstatus, m.username, m.groupid, mf.taobao, mf.alipay, mf.avatar, mf.avatarwidth, mf.avatarheight, mf.buyercredit, mf.sellercredit, m.regdate FROM {$tablepre}members m LEFT JOIN {$tablepre}memberfields mf USING(uid) WHERE m.uid='$uid'");
if(!$member) {
showmessage('member_nonexistence', NULL, 'NOPERM');
}
$member['avatar'] = '<div class="avatar">'.discuz_uc_avatar($member['uid']);
if($_DCACHE['usergroups'][$member['groupid']]['groupavatar']) {
$member['avatar'] .= '<br /><img src="'.$_DCACHE['usergroups'][$member['groupid']]['groupavatar'].'" border="0" alt="" />';
}
$member['avatar'] .= '</div>';
$member['taobaoas'] = str_replace("'", '', addslashes($member['taobao']));
$member['regdate'] = gmdate($dateformat, $member['regdate'] + $timeoffset * 3600);
$member['usernameenc'] = rawurlencode($member['username']);
$member['buyerrank'] = 0;
if($member['buyercredit']){
foreach($ec_credit['rank'] AS $level => $credit) {
if($member['buyercredit'] <= $credit) {
$member['buyerrank'] = $level;
break;
}
示例7: updaterequest
//.........这里部分代码省略.........
case 'todayposts':
$historytime = mktime(0, 0, 0, date('m', $timestamp), date('d', $timestamp), date('Y', $timestamp));
$sql = "SELECT DISTINCT(p.author) AS username,p.authorid AS uid,COUNT(p.pid) AS postnum FROM `{$tablepre}posts` p WHERE p.`dateline`>={$historytime} AND p.`authorid`!='0' GROUP BY p.`author` ORDER BY `postnum` DESC";
break;
case 'weekposts':
$week = gmdate('w', $timestamp) - 1;
$week = $week != -1 ? $week : 6;
$historytime = mktime(0, 0, 0, date('m', $timestamp), date('d', $timestamp) - $week, date('Y', $timestamp));
$sql = "SELECT DISTINCT(p.author) AS username,p.authorid AS uid,COUNT(p.pid) AS postnum FROM `{$tablepre}posts` p LEFT JOIN `{$tablepre}memberfields` mf ON mf.`uid` = p.`authorid` WHERE p.`dateline`>={$historytime} AND p.`authorid`!='0' GROUP BY p.`author` ORDER BY `postnum` DESC";
break;
case 'monthposts':
$historytime = mktime(0, 0, 0, date('m', $timestamp), 1, date('Y', $timestamp));
$sql = "SELECT DISTINCT(p.author) AS username,p.authorid AS uid,COUNT(p.pid) AS postnum FROM `{$tablepre}posts` p LEFT JOIN `{$tablepre}memberfields` mf ON mf.`uid` = p.`authorid` WHERE p.`dateline`>={$historytime} AND p.`authorid`!='0' GROUP BY p.`author` ORDER BY `postnum` DESC";
break;
}
$query = $db->query($sql . " LIMIT {$startrow},{$items};");
while ($data = $db->fetch_array($query, MYSQL_NUM)) {
$data[2] = $orderby == 'regdate' ? gmdate($dateformat, $data[2] + $_DCACHE['settings']['timeoffset'] * 3600) : $data[2];
$datalist[] = $data;
}
$writedata = '';
if (is_array($datalist)) {
$requesttemplate = !$requesttemplate ? '{regdate} {member} {value}<br />' : $requesttemplate;
$order = 1;
foreach ($datalist as $value) {
$replace['{regdate}'] = $replace['{value}'] = '';
if ($orderby == 'regdate') {
$replace['{regdate}'] = $value[2];
} else {
$replace['{value}'] = $value[2];
}
$replace['{uid}'] = $value[1];
$replace['{member}'] = "<a href='" . $boardurl . "space.php?uid={$value['1']}'{$LinkTarget}>{$value['0']}</a>";
$replace['{avatar}'] = "<a title='" . htmlspecialchars($value[0]) . "' href='" . $boardurl . "space.php?uid={$value['1']}'{$LinkTarget}>" . discuz_uc_avatar($value[1]) . "</a>";
$replace['{avatarsmall}'] = "<a title='" . htmlspecialchars($value[0]) . "' href='" . $boardurl . "space.php?uid={$value['1']}'{$LinkTarget}>" . discuz_uc_avatar($value[1], 'small') . "</a>";
$replace['{avatarbig}'] = "<a title='" . htmlspecialchars($value[0]) . "' href='" . $boardurl . "space.php?uid={$value['1']}'{$LinkTarget}>" . discuz_uc_avatar($value[1], 'big') . "</a>";
$replace['{order}'] = $order++;
$writedata .= nodereplace($replace, $requesttemplate);
}
}
} elseif ($function == 'stats') {
$info = isset($requestdata['info']) ? $requestdata['info'] : NULL;
if (is_array($info)) {
$language = $info;
$info_index = '';
$statsinfo = array();
$statsinfo['forums'] = $statsinfo['threads'] = $statsinfo['posts'] = 0;
$query = $db->query("SELECT `status`,`threads`,`posts`\r\n\t\t\t\t\tFROM `{$tablepre}forums` WHERE\r\n\t\t\t\t\t`status`='1';\r\n\t\t\t\t\t");
while ($forumlist = $db->fetch_array($query)) {
$statsinfo['forums']++;
$statsinfo['threads'] += $forumlist['threads'];
$statsinfo['posts'] += $forumlist['posts'];
}
unset($info['forums'], $info['threads'], $info['posts']);
foreach ($info as $index => $value) {
if ($index == 'members') {
$sql = "SELECT COUNT(*) FROM `{$tablepre}members`;";
} elseif ($index == 'online') {
$sql = "SELECT COUNT(*) FROM `{$tablepre}sessions`;";
} elseif ($index == 'onlinemembers') {
$sql = "SELECT COUNT(*) FROM `{$tablepre}sessions` WHERE `uid`>'0';";
}
if ($index == 'members' || $index == 'online' || $index == 'onlinemembers') {
$statsinfo[$index] = $db->result_first($sql);
}
}
示例8: uc_friend_totalnum
$buddynum = uc_friend_totalnum($discuz_uid, $friendtype);
$buddies = $buddynum ? uc_friend_ls($discuz_uid, $page, $tpp, $buddynum, $friendtype) : array();
$multipage = multi($buddynum, $tpp, $page, "my.php?item=buddylist$extratype");
if($buddies) {
foreach($buddies as $key => $buddy) {
$buddylist[$buddy['friendid']] = $buddy;
}
unset($buddies);
$query = $db->query("SELECT m.uid, m.gender, mf.msn, s.uid AS online FROM {$tablepre}members m
LEFT JOIN {$tablepre}sessions s ON s.uid=m.uid
LEFT JOIN {$tablepre}memberfields mf ON mf.uid=m.uid
WHERE m.uid IN (".implodeids(array_keys($buddylist)).")");
while($member = $db->fetch_array($query)) {
if(isset($buddylist[$member['uid']])) {
$buddylist[$member['uid']]['avatar'] = discuz_uc_avatar($member['uid'], 'small');
$buddylist[$member['uid']]['gender'] = $member['gender'];
$buddylist[$member['uid']]['online'] = $member['online'];
$buddylist[$member['uid']]['msn'] = explode("\t", $member['msn']);
} else {
unset($buddylist[$member['uid']]);
}
}
}
} else {
$buddyarray = uc_friend_ls($discuz_uid, 1, $buddynum, $buddynum);
if($action == 'edit') {
示例9: discuzcode
$debate['negapoint'] = discuzcode($debate['negapoint'], 0, 0, 0, 1, 1, 0, 0, 0, 0, 0);
if ($debate['affirmvotes'] || $debate['negavotes']) {
if ($debate['affirmvotes'] && $debate['affirmvotes'] > $debate['negavotes']) {
$debate['affirmvoteswidth'] = 100;
$debate['negavoteswidth'] = intval($debate['negavotes'] / $debate['affirmvotes'] * 100);
} elseif ($debate['negavotes'] && $debate['negavotes'] > $debate['affirmvotes']) {
$debate['negavoteswidth'] = 100;
$debate['affirmvoteswidth'] = intval($debate['affirmvotes'] / $debate['negavotes'] * 100);
} else {
$debate['affirmvoteswidth'] = $debate['negavoteswidth'] = 100;
}
} else {
$debate['negavoteswidth'] = $debate['affirmvoteswidth'] = 0;
}
if ($debate['umpirepoint']) {
$debate['umpirepoint'] = discuzcode($debate['umpirepoint'], 0, 0, 0, 1, 1, 1, 0, 0, 0, 0);
}
$debate['umpireurl'] = rawurlencode($debate['umpire']);
list($debate['bestdebater'], $debate['bestdebateruid'], $debate['bestdebaterstand'], $debate['bestdebatervoters'], $debate['bestdebaterreplies']) = explode("\t", $debate['bestdebater']);
$debate['bestdebaterurl'] = rawurlencode($debate['bestdebater']);
$query = $sdb->query("SELECT author, authorid FROM {$tablepre}posts p LEFT JOIN {$tablepre}debateposts dp ON p.pid=dp.pid WHERE p.tid='{$tid}' AND p.invisible='0' AND dp.stand='1' GROUP BY dp.uid ORDER BY p.dateline DESC LIMIT 5");
while ($affirmavatar = $sdb->fetch_array($query)) {
$debate['affirmavatars'] .= '<a title="' . $affirmavatar['author'] . '" target="_blank" href="space.php?uid=' . $affirmavatar['authorid'] . '">' . discuz_uc_avatar($affirmavatar['authorid'], 'small') . '</a>';
}
$query = $sdb->query("SELECT author, authorid FROM {$tablepre}posts p LEFT JOIN {$tablepre}debateposts dp ON p.pid=dp.pid WHERE p.tid='{$tid}' AND p.invisible='0' AND dp.stand='2' GROUP BY dp.uid ORDER BY p.dateline DESC LIMIT 5");
while ($negaavatar = $sdb->fetch_array($query)) {
$debate['negaavatars'] .= '<a title="' . $negaavatar['author'] . '" target="_blank" href="space.php?uid=' . $negaavatar['authorid'] . '">' . discuz_uc_avatar($negaavatar['authorid'], 'small') . '</a>';
}
if ($fastpost && $allowpostreply && $thread['closed'] == 0) {
$firststand = $sdb->result_first("SELECT stand FROM {$tablepre}debateposts WHERE tid='{$tid}' AND uid='{$discuz_uid}' AND stand<>'0' ORDER BY dateline LIMIT 1");
}
示例10: exit
<?php
/*
[Discuz!] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: assistant.inc.php 19591 2009-09-07 04:49:41Z monkey $
*/
if (!defined('IN_DISCUZ')) {
exit('Access Denied');
}
if ($requestrun) {
$nocache = 1;
$avatar = discuz_uc_avatar($GLOBALS['discuz_uid'], 'small');
$fidadd = isset($_GET['fid']) ? '&srchfid=' . $_GET['fid'] : '';
@(include DISCUZ_ROOT . './forumdata/cache/cache_usergroups.php');
if ($_DCACHE['usergroups'][$GLOBALS['groupid']]['type'] == 'member' && $_DCACHE['usergroups'][$GLOBALS['groupid']]['creditslower'] != 999999999) {
$creditupgrade = $_DCACHE['usergroups'][$GLOBALS['groupid']]['creditslower'] - $GLOBALS['credits'];
} else {
$creditupgrade = '';
}
include template('request_assistant');
} else {
$request_version = '1.0';
$request_name = $requestlang['assistant_name'];
$request_description = $requestlang['assistant_desc'];
$request_copyright = '<a href="http://www.comsenz.com" target="_blank">Comsenz Inc.</a>';
$request_settings = array();
}
示例11: fastpostvalidate
?>
&tid=<?php
echo $tid;
?>
&extra=<?php
echo $extra;
?>
&replysubmit=yes&infloat=yes&handlekey=fastpost" onSubmit="return fastpostvalidate(this)">
<table cellspacing="0" cellpadding="0">
<tr>
<td class="postauthor">
<?php
if ($discuz_uid) {
?>
<div class="avatar"><?php
echo discuz_uc_avatar($discuz_uid);
?>
</div><?php
}
?>
</td>
<td class="postcontent">
<input type="hidden" name="formhash" value="<?php
echo FORMHASH;
?>
" />
<input type="hidden" name="subject" value="" />
<input type="hidden" name="usesig" value="<?php
echo $usesigcheck;
?>
" />
示例12: updateavatar
if (!$member['signature']) {
?>
$('signaturemessage').click();<?php
}
if (!$member['bio']) {
?>
$('biomessage').click();<?php
}
}
?>
return true;
}
function updateavatar() {
$('avatar').src='<?php
echo discuz_uc_avatar($discuz_uid, 'middle', TRUE);
?>
?random=1'+Math.random();
$('avatarctrl').style.display = 'none';
}
function updatetextarea(id, msg) {
$(id).updated = 0;
$(id).value = msg;
$(id).style.color = '<?php
echo LIGHTTEXT;
?>
';
$(id).onclick = function(){
this.style.color = '<?php
echo TABLETEXT;
示例13: uc_friend_totalnum
include_once DISCUZ_ROOT . './uc_client/client.php';
$buddynum = uc_friend_totalnum($discuz_uid);
if (!submitcheck('buddysubmit', 1)) {
$buddylist = array();
$buddies = $buddynum ? uc_friend_ls($discuz_uid, $page, $tpp, $buddynum) : array();
$multipage = multi($buddynum, $tpp, $page, "my.php?item=buddylist");
if ($buddies) {
foreach ($buddies as $key => $buddy) {
$buddylist[$buddy['friendid']] = $buddy;
}
unset($buddies);
$query = $db->query("SELECT m.uid, m.gender, mf.msn, s.uid AS online FROM {$tablepre}members m \r\n\t\t\t\tLEFT JOIN {$tablepre}sessions s ON s.uid=m.uid\r\n\t\t\t\tLEFT JOIN {$tablepre}memberfields mf ON mf.uid=m.uid\r\n\t\t\t\tWHERE m.uid IN (" . implodeids(array_keys($buddylist)) . ")");
while ($member = $db->fetch_array($query)) {
$uid = $member['uid'];
if (isset($buddylist[$uid])) {
$buddylist[$uid]['avatar'] = discuz_uc_avatar($uid, 'small');
$buddylist[$uid]['gender'] = $member['gender'];
$buddylist[$uid]['online'] = $member['online'];
$buddylist[$uid]['msn'] = explode("\t", $member['msn']);
} else {
unset($buddylist[$uid]);
}
}
}
} else {
$buddyarray = $buddynum ? uc_friend_ls($discuz_uid, 1, $buddynum, $buddynum) : array();
if ($action == 'edit') {
if ($comment = cutstr(dhtmlspecialchars($comment), 255)) {
$friendid = intval($friendid);
uc_friend_delete($discuz_uid, array($friendid));
uc_friend_add($discuz_uid, $friendid, $comment);
示例14: exit
/*
[Discuz!] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: modlist.inc.php 16697 2008-11-14 07:36:51Z monkey $
*/
if (!defined('IN_DISCUZ')) {
exit('Access Denied');
}
if ($requestrun) {
$modlist = array();
if ($GLOBALS['forum']['moderators']) {
$moderators = daddslashes(explode("\t", $GLOBALS['forum']['moderators']), 1);
if ($GLOBALS['modworkstatus']) {
$query = $db->query("SELECT m.uid, m.username, sum(mw.count) as actioncount FROM {$tablepre}members m LEFT JOIN {$tablepre}modworks mw on m.uid=mw.uid WHERE m.username in (" . implodeids($moderators) . ") GROUP BY mw.uid ORDER BY actioncount DESC");
} else {
$query = $db->query("SELECT m.uid, m.username, m.posts FROM {$tablepre}members m WHERE m.username in (" . implodeids($moderators) . ") ORDER BY posts DESC");
}
while ($modrow = $db->fetch_array($query)) {
$modrow['avatar'] = discuz_uc_avatar($modrow['uid'], 'small');
$modrow['actioncount'] = intval($modrow['actioncount']);
$modlist[] = $modrow;
}
}
include template('request_modlist');
} else {
$request_version = '1.0';
$request_name = $requestlang['modlist_name'];
$request_description = $requestlang['modlist_desc'];
$request_copyright = '<a href="http://www.comsenz.com" target="_blank">Comsenz Inc.</a>';
}
示例15: discuz_uc_avatar
</div>
<p><input type="text" name="answer" id="answer" style="display:none" autocomplete="off" size="36" class="txt" tabindex="1" /></p>
</div>
<div class="logininfo multinfo">
<?php
if ($discuz_uid) {
?>
<h4><?php
echo $discuz_userss;
?>
, <a href="javascript:;" onclick="ajaxget('float_register.php?action=logout&formhash=<?php
echo FORMHASH;
?>
', 'returnmessage', 'returnmessage');doane(event);">退出</a></h4>
<p><?php
echo discuz_uc_avatar($discuz_uid, 'small');
?>
</p>
<?php
} else {
?>
<h4>没有帐号?<a href="<?php
echo $regname;
?>
" onclick="floatwin('close_login');floatwin('open_register', this.href, 600, 400, '600,0');return false;" title="注册帐号"><?php
echo $reglinkname;
?>
</a></h4>
<p>忘记密码, <a href="javascript:;" onclick="display('loginform');display('loginfield_selectinput');<?php
if ($secqaacheck || $seccodecheck) {
?>