Integrated environment: Moving 2005SP1 official version DVBBS7.1.0_AC official version
Integration premise: The two systems have been installed and commissioned separately, and they have run normally
Both systems are the latest standard version, and no modification was made before
Note: Since the official version of Dynamic 2005SP1 has built -in support for the integrated interface, there is no need to modify
Integrated interface file description:
1: UserInfo.asp ---- 动 1 2005 user cookies universal interface file
2: PE_USER.ASP ---- Documents that are specially written by the dynamic network system to handle registration, login, password synchronization and other events
Integration process:
1: Put UserInfo.asp in the root directory of the website;
2: Put PE_USER.ASP in the forum root directory;
3: Modify the forum file
A total of the following documents need to be modified: the forum integration of the Dynamic Network 7.X version:
1. Inc/DV_CLSMAIN.ASP -Core file, modify its login, cancellation, registration status to automatically monitor users;
2. CONN.ASP -Core data links and global class initialization files to modify the class of its initialized traffic interface;
3. Login.asp -forum login file to modify it to achieve support for passing landing;
4. Logout.asp -Forum cancellation files to modify it to achieve support for passing through;
5. Reg.ASP -Forum registration files to modify it to achieve support for traffic registration;
Before forming the file, the attributes and functions provided by UserInfo.asp should be clear, and the use of PE_USER.ASP;
[UserInfo.asp]
This file defines the class that implements the COKIES information calls. The user does not need to modify it. As long as the file is placed to the root directory of the website, and the file is included in any ASP file, you can use the PE_USERINFO class and read the class by reading this class. The 8 public attributes provided and 1 public function are provided to call the relevant information about Moving. The enumeration is as follows:
Public attributes:
PE_DIR: Moving the installation directory;
Site_sn: Cookies name;
Username: The user name of the current user of the current user
Password: The password of the current user (16 -bit MD5 encryption form) that has logged in to the current user
Email: Email of the current user who has already landed
Question: The password prompts of the current user who have already landed
ANSWER: Answers to the password prompts of the current user who has logged in to the current user (16 -bit MD5 encryption form)
Cookiedate: Cookies preservation options set by the current user (0 = non -saved; 1 = save 1 day; 2 = save January; 3 = save one year)
Public function:
SEX (Ctype): The gender of the current user who has already landed on the current user.
Note: This function contains a numerical parameter, with a value range 0-2 (0 = Return to digital form: 0 means female, 1 means male; 1 = return character form: "male" means male, "female" means female; 2 indicates women; = Back to character form: "Male" means male, "female" means women)
[PE_USER.ASP]
This file judges and performs corresponding operations based on the ACTION required by the receiving URL request.
ACTION:
REG: When receiving the URL request of the Action = REG, it will prompt the user to enter the password to activate the forum identity;
LOGIN: When the URL request of Action = login is received, the synchronous login will be automatically processed (the password must be consistent)
Pass: When you receive the URL request of Action = PASS, you will prompt the user to enter the forum password for login
PASS3: When the URL request received by Action = PASS3, it will automatically change the forum password to the same as the user's motion password and log in to
After understanding the general interface and PE_USER.ASP, then modify the forum file to complete the integration:
1.conn.asp
Conn.asp is usually a file that defines the database link of the forum program, so the variables, functions, and processes defined in this file can be used in any file, so we choose to put the initialization of the general interface class in this file.
a) Around the fifth line of con.asp, find it
======== Finding code ========
Option explicit
Response.buffer = true
Dim Startime
=======================
Modification to:
=========== The modified code ==========
Option explicit
Response.buffer = true
%>
<!-#include virtual = "UserInfo.asp "->
<%
Dim Startime
==========================
b) Around the 7th and 8th lines of con.asp, find it
======== Finding code ============
Dim conn, plus_conn, db, mydbpath
Startime = timer ()
==========================
Modification to:
=========== The modified code ==========
Dim conn, plus_conn, db, mydbpath
'Define the mowing universal interface class
Dim mype
'complete
Startime = timer ()
============================
c) At the 32, 33 lines of con.asp, find it
======== Finding code ============
Set template = new class_templates
SubnectionDatabase
==========================
Modification to:
=========== The modified code ==========
Set template = new class_templates
'Initialization Dimension Universal Interface Category
Set mype = new pe_userinfo
'complete
SubnectionDatabase
============================
Conn.asp's modification is complete
2.inc/dv_clsmain.asp
DV_CLSMain.asp is the category and attributes of all core categories and attributes of the Dynamic Network Forum. Each user refreshes a page, and the functions, events, etc. in this file will be determined whether to log in. Therefore, we must test the testing And judge login, registration, cancellation, etc. in this file: