I'm familiar with the great ape of DiscuzX1.5 ~

Source: Internet
Author: User
Ask the great ape who is familiar with DiscuzX1.5 ~~ RT. I want to modify the login code, but I don't know how to modify it. I only know that the code is in member_logging.php ..., I also don't know if my version is 1.5 $ ctl_obj = newlogging_ctl (); $ ctl_obj-& gt; setting = $ _ G ['sett ask the great ape who is familiar with DiscuzX1.5 ~~
RT. I want to modify the login code, but I don't know how to modify it. I only know that the code is in member_logging.php...

------ Solution --------------------
I don't know if my version is 1.5

$ Ctl_obj = new logging_ctl ();
$ Ctl_obj-> setting =$ _ G ['setting'];
$ Method = 'on _ '. $ _ G ['GP _ action'];
$ Ctl_obj-> template = 'Member/login ';
$ Ctl_obj-> $ method ();
This is the verification code. logging_ctl is defined in source \ class \ class_member.php.
You log on, so action is login. check the parameters following the url.
Call the function on_login () method.
$ Result = userlogin ($ _ G ['GP _ username'], $ _ G ['GP _ password'], $ _ G ['GP _ questionid '], $ _ G ['GP _ answer '], $ this-> setting ['autoidselect']? 'Auto': $ _ G ['GP _ loginfield ']);
The userlogin function is called. This function is defined in source \ function \ function_member.php.

------ Solution --------------------
Userlogin is the method in ucenter.

Loaducenter () is required before use ();

Http://dev.discuz.org/wiki/

Http://wiki.blueidea.com/index.php? Title = Discuz! X/% E6 % 95% B0 % E6 % 8D % AE % E5 % BA % 93% E5 % AD % 97% E5 % 85% B8

Http://www.discuz.net/thread-636553-1-1.html

You need to take a closer look at these materials

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.