PHP Interface Call

Source: Internet
Author: User
Does Discuz have an interface for judging logins? If so, what happens when you click a button on a system to invoke the interface in the forum to log in successfully? Novice Please advise

Reply content:

Does Discuz have an interface for judging logins? If so, what happens when you click a button on a system to invoke the interface in the forum to log in successfully? Novice Please advise

Ucenter Interface Development documentation, with what you want.
Document: Http://faq.comsenz.com/library/UCenter/api/api_index.htm

Login function:

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###

It's hard to describe.
It is recommended to know the Uccenter interface of Discuz

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.