This article is a mirror article of machine translation, please click here to jump to the original article.

View: 8364|Reply: 0

[Program beautification] Discuz performs a series of registration operations

[Copy link]
Posted on 7/23/2020 9:47:16 PM | | |
Briefly describe the functions and files related to the registration user addition operation

uc_client\model\user.php file

Example: add_user() function: Execute the addition of users, seal a series of functional functions (perform the insert function, detect the submission value of the form.....) line 130;

uc_clinet\ control\user.php

Perform registration, login, login, etc., such as: onregister(), etc. and the user's information operation behavior line 60;

tabel_common_member.php

Perform database insertion operations for user tables and related supplementary tables (personal understanding), such as points tables, user information tables, etc

Personally common_member this table is a partner table of UCenter_member, but the passwords in the two tables do not intersect, the password of ucenter_member in the insertion operation is a randomly generated salt value plus the user's input password double MD5 encryption, common_member the password in the table is a random() encapsulated by discuz itself. The function is 10 digits, again MD5

admincp_members.php

There is an operation to add users around line 700, and a few files are also extracted from this operation backwards




Previous:Newcomer reports. Welcome to smash the field
Next:Angular 9 series (XII) generates dynamic tokens based on OTPs
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com