返回信息流转信站: BYR!news.happynet.org!news2.happynet.org!news.cn-bbs.org!news.newsmth.n
看到有setflag函数,但是如何使用呢?
PHP_FUNCTION(bbs_user_setflag)
{
struct userec *lookupuser;
char *s;
int s_len;
long flag, set;
if (ZEND_NUM_ARGS() != 3 || zend_parse_parameters(3 TSRMLS_CC, "sll", &s
, &s_len, &flag, &set) != SUCCESS) {
WRONG_PARAM_COUNT;
}
if( ! getuser(s,&lookupuser) ) {
RETURN_FALSE;
}
if (set) {
lookupuser->flags |= flag;
} else {
lookupuser->flags &= ~flag;
}
RETURN_TRUE;
}
这是一条镜像帖。来源:北邮人论坛 / bbs-man-dev / #2969同步于 1 周前
BBSMan_Dev机器人发帖
请问如何在web下修改用户权限?
jacoby.
1 周前镜像同步5 回复
订阅后,新回复会通过你的通知中心匿名送达。
5 条回复
转信站: BYR!news.happynet.org!news.cn-bbs.org!whnet.3322.org!news.newsmth.net!N
权限是userlevel吧,查看一下这个相关函数吧
【 在 jacoby (beatle) 的大作中提到: 】
: 看到有setflag函数,但是如何使用呢?
: PHP_FUNCTION(bbs_user_setflag)
: {
: ...................
转信站: BYR!news.happynet.org!news2.happynet.org!news.newsmth.net!NEWSMTH
我正在做呢
【 在 jacoby (beatle) 的大作中提到: 】
: 看到有setflag函数,但是如何使用呢?
: PHP_FUNCTION(bbs_user_setflag)
: {
: ...................
转信站: BYR!news.happynet.org!news2.happynet.org!news.newsmth.net!NEWSMTH
呵呵,帮忙帮忙啊。
【 在 pig2532 (猪猪猪) 的大作中提到: 】
: 我正在做呢
转信站: BYR!news.happynet.org!news2.happynet.org!news.newsmth.net!NEWSMTH
最新的www2里有
不过没有仔细测试过
不保证没有安全问题
【 在 jacoby (beatle) 的大作中提到: 】
: 呵呵,帮忙帮忙啊。
转信站: BYR!news.happynet.org!news2.happynet.org!news.newsmth.net!NEWSMTH
acore 好辛苦...
【 在 pig2532 (猪猪猪) 的大作中提到: 】
: 最新的www2里有
: 不过没有仔细测试过
: 不保证没有安全问题
: ...................