本文整理汇总了PHP中friend_group_list函数的典型用法代码示例。如果您正苦于以下问题:PHP friend_group_list函数的具体用法?PHP friend_group_list怎么用?PHP friend_group_list使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了friend_group_list函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: exit
<?php
/**
* [Discuz!] (C)2001-2099 Comsenz Inc.
* This is NOT a freeware, use is subject to license terms
*
* $Id: misc_invite.php 33107 2013-04-26 03:43:21Z andyzheng $
*/
if (!defined('IN_DISCUZ')) {
exit('Access Denied');
}
require_once libfile('function/friend');
$_GET['action'] = dhtmlspecialchars(preg_replace("/[^\\[A-Za-z0-9_\\]]/", '', $_GET['action']));
$friendgrouplist = friend_group_list();
if ($_GET['action'] == 'group') {
$id = intval($_GET['id']);
$groupuserinfo = C::t('forum_groupuser')->fetch_userinfo($_G['uid'], $id);
if (empty($groupuserinfo['uid'])) {
showmessage('group_invite_failed');
}
$foruminfo = C::t('forum_forum')->fetch($id);
$grouplevel = $foruminfo['level'];
loadcache('grouplevels');
$grouplevel = $_G['grouplevels'][$grouplevel];
$membermaximum = $grouplevel['specialswitch']['membermaximum'];
if (!empty($membermaximum)) {
$curnum = C::t('forum_groupuser')->fetch_count_by_fid($id, -1);
if ($curnum >= $membermaximum) {
showmessage('group_member_maximum', '', array('membermaximum' => $membermaximum));
}
}
示例2: _getFriendGroupList
private function _getFriendGroupList()
{
$group = array();
$groups = friend_group_list();
foreach ($groups as $k => $v) {
$group[] = array('fusername' => $v, 'gid' => $k);
}
return $group;
}
示例3: array
}
}
$space['privacy']['filter_note'] = array();
if (isset($_POST['privacy']['filter_note'])) {
foreach ($_POST['privacy']['filter_note'] as $key => $value) {
$space['privacy']['filter_note'][$key] = 1;
}
}
privacy_update();
require_once libfile('function/friend');
friend_cache($_G['uid']);
showmessage('do_success', 'home.php?mod=spacecp&ac=privacy&op=' . $operation);
}
if ($operation == 'filter') {
require_once libfile('function/friend');
$groups = friend_group_list();
$filter_icons = empty($space['privacy']['filter_icon']) ? array() : $space['privacy']['filter_icon'];
$filter_note = empty($space['privacy']['filter_note']) ? array() : $space['privacy']['filter_note'];
$iconnames = $appids = $icons = $uids = $users = array();
foreach ($filter_icons as $key => $value) {
list($icon, $uid) = explode('|', $key);
$icons[$key] = $icon;
$uids[$key] = $uid;
if (is_numeric($icon)) {
$appids[$key] = $icon;
}
}
foreach ($filter_note as $key => $value) {
list($type, $uid) = explode('|', $key);
$types[$key] = $type;
$uids[$key] = $uid;
示例4: _getFriendGroupList
private function _getFriendGroupList()
{
return friend_group_list();
}