Destoon consolidation Ucenter After the registration page does not jump the solution _php instance

Source: Internet
Author: User

Typically, Ucenter is used as a mediator, adding multiple applications and then allowing multiple sites to have a synchronous logon Exit function.

Ucenter Add the application is not difficult, Destoon official web also has related tutorials.

But a lot of friends in several applications after the completion of the registration of an account test, the problem appears, after registration, registration page did not jump, there is no hint, but this member is registered successfully. Why didn't you jump?

The breakpoint test found that this is because in line 83rd of Destoon's api/ucenter/control/user.php file, a function that writes the DSCUZ system database is executed by default: function Onregbbs (). This function is to add a registration information to the DZ Forum. There is a section of code in the Destoon registration information Processing file module/member/register.inc.php (about 125 lines) found in the Registration submission page

if ($MOD [' passport '] = = ' UC ') {
$uid = Uc_user_register ($passport, $post [' Password '], $post [' email ']);
if ($uid > 0 && $MOD [' Uc_bbs ']) Uc_user_regbbs ($uid, $passport, $post [' Password '], $post [' email ']);
}

Directly mask the second statement:

if ($uid > 0 && $MOD [' Uc_bbs ']) Uc_user_regbbs ($uid, $passport, $post [' Password '], $post [' email ']);

The problem is solved.

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.