modiftppassdo.asp

来自「蓝芒3.0A最新所有功能完整破解版」· ASP 代码 · 共 38 行

ASP
38
字号
<% ModuleCode="M0410" %>
<!--#include file="../../Include/Reference.asp"-->
<%
Call PrintPageHead
VHID=Request.Form("ID")
%>
<!--#include file="../../Include/connect.asp"-->
<%
strSQL="Select * from v_VHostList Where VHID='" & VHID & "'"
if Session("ISADMIN")<>"YES" then
	strSQL = strSQL & " and UserID=" & Session("UserID")
end if

Set Rs= Server.CreateObject("ADODB.Recordset")
Rs.open strSQL,Cn,1,1
If Rs.Eof Then
	Response.Write "<br><br><P align='center' class='titletext'>对不起, 找不到此虚拟主机或者您没有权限!</p>"
else
%>
<!--#include file="VHostMenu.asp"-->
<!--#include file="../../Include/WEBCtrl.asp"-->
<%
	if ModifyFtpUser(Rs("ServerIP"),Rs("UserName"),Request.Form("password"),"","","")=0 then
		strSQL="Update T_DNS_AllVH Set PSW='" & Request.Form("password") & "' Where VHID='" & VHID & "'"
		Cn.Execute(StrSQL)
		Cn.Execute("SP_UserOP "& session("UserID")& ",'T_DNS_AllVH','修改主机FTP密码','" & VHID & "','修改','"& Request.ServerVariables("REMOTE_ADDR") &"'" )
		Response.Write "<br><br><P align='center' class='titletext'>修改FTP管理员密码成功!</p>"
	else
		Response.Write "<br><br><P align='center' class='titletext'>修改FTP管理员密码失败!</p>"
	end if
end if

Rs.Close
Set Rs=Nothing
Cn.Close
Set Cn=Nothing
Call PrintPageBottom
%>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?