% '************************************************************************** 'Author: Darryl Johnstone '© This code may not be reused, resold without the permission of the Author! 'Created Date: January 21, 2003 'Purpose: NBFDEA start page '************************************************************************** Response.Expires = 0 Response.Buffer = false Dim intMessage, strUserName, strPassword, dbConn, blnLogin, adminRS, strSQL blnLogin = trim(request("login")) strUserName = trim(request("username")) strPassword = trim(request("password")) If blnLogin="yes" Then 'set connection Set dbConn = Server.CreateObject("ADODB.Connection") 'connection string and open dbConn.ConnectionString="DSN=swd_master_mysql" dbConn.Open strUserName = replace(strUserName,"'","''") strPassword = replace(strPassword,"'","''") strSQL = "SELECT admin_id FROM admins WHERE username='" & strUserName & "' AND password = '" & strPassword & "' " &_ "AND NBFDEA_member = true" Set adminRS = Server.CreateObject("ADODB.Recordset") adminRs.Open strSQL, dbConn If not(adminRS.bof or adminRS.eof)Then session("NBFDEA") = adminRS(0) Else 'clean up set adminRS = nothing set dbConn = nothing response.redirect("NBFDEA_login.asp?error=1") End If End If 'clean up set adminRS = nothing set dbConn = nothing If session("NBFDEA") = "" or IsEmpty(session("NBFDEA")) or IsNull(session("NBFDEA")) Then response.redirect("NBFDEA_login.asp?error=2") End If %>
![]() |
||||
![]() |
An important article about S.A.R.S.
|
|||
![]() |
||||
![]() |
||||
![]() |
||||
![]() |
||||
![]() |
||||
![]() |
||||
![]() |
||||