您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

php接口调用

2024/2/21 6:29:31发布28次查看
discuz有没有用来判断登录的接口?如果有的话,在一个系统中点击一个按钮就会调用论坛中的接口成功登录,这样的事件怎么来做?新手请指教
回复内容: discuz有没有用来判断登录的接口?如果有的话,在一个系统中点击一个按钮就会调用论坛中的接口成功登录,这样的事件怎么来做?新手请指教
ucenter 接口开发文档,有你想要的.
文档 : http://faq.comsenz.com/library/ucenter/api/api_index.htm
登录函数:
array uc_user_login(string username , string password [, bool isuid , bool checkques , integer questionid , string answer])
demo:
list($uid, $username, $password, $email) = uc_user_login($_post['username'], $_post['password']);if($uid > 0) { echo '登录成功';} elseif($uid == -1) { echo '用户不存在,或者被删除';} elseif($uid == -2) { echo '密码错';} else { echo '未定义';}
http://faq.comsenz.com/library/ucenter/interface/interface_user.htm###
具体很难描述。
建议了解一下discuz的uccenter接口
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product