本文整理汇总了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));
}
}
开发者ID:tang86,项目名称:discuz-utf8,代码行数:31,代码来源:misc_invite.php
示例2: _getFriendGroupList
private function _getFriendGroupList()
{
$group = array();
$groups = friend_group_list();
foreach ($groups as $k => $v) {
$group[] = array('fusername' => $v, 'gid' => $k);
}
return $group;
}
开发者ID:frogoscar,项目名称:mobcent-discuz,代码行数:9,代码来源:UserAdminAction.php
示例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;
开发者ID:Kingson4Wu,项目名称:php_demo,代码行数:31,代码来源:spacecp_privacy.php
示例4: _getFriendGroupList
private function _getFriendGroupList()
{
return friend_group_list();
}
开发者ID:caidongyun,项目名称:CS,代码行数:4,代码来源:UserAdminViewAction.php
注:本文中的friend_group_list函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论