modimailadmindo.asp

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

ASP
40
字号
<% ModuleCode="M0510" %>
<!--#include file="../../Include/Reference.asp"-->
<%
Call PrintPageHead
PostID=Request.Form("ID")
%>
<!--#include file="../../Include/connect.asp"-->
<!--#include file="../../Include/WEBCtrl.asp"-->
<%
strSQL="Select * from v_MailList Where PostID='" & PostID & "'"
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="MailMenu.asp"-->
<%
	'Response.Write Rs("ServerIP") & "," & Rs("BPostDN")
	'Response.End
	if ChangeUserPassWord(Rs("ServerIP"),Opt_System_MailManager & "@" & Rs("BPostDN"), Request.Form("password"))<>0 then
		Response.Write "<br><br><P align='center' class='titletext'>对不起, 找不到此邮局或者您没有权限!</p>"
	else
		strSQL="Update T_DNS_AllPost Set PSW='" & Request.Form("password") & "' Where PostID='" & PostID & "'"
		Cn.Execute(strSQL)
		Cn.Execute("SP_UserOP "& session("UserID")& ",'T_DNS_AllPost','修改邮局密码','" & PostID & "','修改','"& Request.ServerVariables("REMOTE_ADDR") &"'" )
		Response.Write "<br><br><br><P align='center' class='titletext'>修改邮局密码成功!</p>"
	end if
end if

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

⌨️ 快捷键说明

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