你好:又要给你添麻烦了,我修改了密码,空间后台可以打开,主机密码改不掉,ftp无法上传,我想把空间内容
杨牧源_13
2024-11-17 17:45:53
最佳回答
<%
dim rs
dim rs_numrows
set rs = server.createobject("adodb.recordset")
rs.activeconnection = mm_rs_string
rs.source = "select pass, user from admin"
rs.cursortype = 0
rs.cursorlocation = 2
rs.locktype = 1
rs.open()
rs_numrows = 0
%>
<%
' *** validate request to log in to th** site.
mm_loginaction = request.servervariables("url")
if request.querystring<>"" then mm_loginaction = mm_loginaction + "?" + server.htmlencode(request.querystring)
mm_valusername=cstr(request.form("user"))
if mm_valusername <> "" then
mm_flduserauthorization=""
mm_redirectloginsuccess="read.asp"
mm_redirectloginfailed="login.asp"
mm_flag="adodb.recordset"
set mm_rsuser = server.createobject(mm_flag)
mm_rsuser.activeconnection = mm_rs_string
mm_rsuser.source = "select user, pass"
if mm_flduserauthorization <> "" then mm_rsuser.source = mm_rsuser.source & "," & mm_flduserauthorization
mm_rsuser.source = mm_rsuser.source & " from admin where user='" & replace(mm_valusername,"'","''") &"' and pass='" & replace(request.form("pass"),"'","''") & "'"
mm_rsuser.cursortype = 0
mm_rsuser.cursorlocation = 2
mm_rsuser.locktype = 3
mm_rsuser.open
if not mm_rsuser.eof or not mm_rsuser.bof then
' username and password match - th** ** a valid user
session("mm_username") = mm_valusername
if (mm_flduserauthorization <> "") then
session("mm_userauthorization") = cstr(mm_rsuser.fields.item(mm_flduserauthorization).value)
else
session("mm_userauthorization") = ""
end if
if cstr(request.querystring("accessdenied")) <> "" and false then
mm_redirectloginsuccess = request.querystring("accessdenied")
end if
mm_rsuser.close
response.redirect(mm_redirectloginsuccess)
end if
mm_rsuser.close
response.redirect(mm_redirectloginfailed)
end if
%> 20210311