Personal website such as membership registration module + Dynamic Network forum, that website and dynamic Network Forum system integration, the implementation of different Web systems between the user Information synchronization update, login and other operations is not easy, although the dynamic network has provided a detailed "Dynamic Network Forum system API Interface developer Guide", But a rookie like me 1:30 is going to be a bad guy, sweating. Not reconciled, in its login, validation and other functions to do some research and then to test the final after the small have become, rookie also have rookie method, haha.
I. Website file structure
Wwwroot
┝index.asp
┝checkuserlogin.asp
┕bbs/
Second, the principle of integration
It is not difficult to implement synchronization updates, and the main problem with consolidation is that it is difficult to log on synchronously, so our focus will be on how to implement synchronous logins. My approach is to integrate the Master Station user table into the Dynamic Network user table Dv_user (eliminates the trouble of updating two libraries later), you can add fields to dv_user as needed, and to bbs/login.asp and bbs/inc/dv_ clsmain.asp make appropriate changes, the form to the bbs/login.asp to verify the login, the main station based on the success of the log in the session after the record of the information to determine whether login success, and obtain user information.
Third, the new modification file
1.index.asp Code:
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 "/>
<title> personal website and dynamic network integration (www.mzwu.com) </title>
<body>
<!--#include file= "checkuserlogin.asp"-->
<%
If Checkuserlogin Then
Response.Write ("<a href=" "Bbs/logout.asp?back=1" "> Exit login </a><p></p>")
Response.Write ("User name:" & Request.Cookies ("username") & "<br>")
Response.Write ("Sex:" & Request.Cookies ("Sex") & "<br>")
Response.Write ("Registration Time:" & Request.Cookies ("Joindate") & "<br>")
Response.Write ("Last Login:" & Request.Cookies ("Lastlogin") & "<br>")
Response.Write ("Login Count:" & Request.Cookies ("Userlogins") & "<br>")
Response.Write ("Browser type:" & Request.Cookies ("browser") & "<br>")
Response.Write ("Browser versions:" & Request.Cookies ("Version") & "<br>")
Response.Write ("Operating system:" & Request.Cookies ("platform") & "<br>")
Else
%>
<form id= "Form1" Name= "Form1" method= "Post" action= "Bbs/login.asp?action=chk&back=1" >
User name:
<input name= "username" type= "text" id= "username" size= "ten"/>
<br/>
Password
<input name= "password" type= "password" id= "password" size= "ten"/>
<input type= "Submit" name= "submit" value= "Login"/>
</form>
<%
End If
%>
<p></p><a href= "bbs/" > Enter forum </a>
</body>
Current 1/3 page
123 Next read the full text