<!--#include virtual="/incs/config.asp" -->

<%chk_log()%>
<%
''''''''''''''''''''''''''''''''
chk_newpwr 1,5,3
	dnme=SafeRequest("dnme")
If dnme="" Then
 call errorpage(-2,"请选择域名!")
end if
	conn.open constr
	if session("sysclass")>=4 then
	query="select * from v_dmclst where d_dme = '"&dnme&"'" 
	else
	query="select * from v_dmclst where d_unme='"&session("usrname")&"' and d_dme = '"&dnme&"'" 
	end if

	rs.open query,conn,1,1
	  if rs.recordcount<>1 then
      call errorpage(-2,"对不起，该域名不存在！")
      end if
	domain_to_modi= rs("d_dme")
	rs.close
%>
  <%
   substrContent = "entryclass:dmc_odr"&Vend
   substrContent =substrContent& "entrytype:del"&Vend
   substrContent =substrContent& "entryuser:"&entryuser&Vend
   substrContent =substrContent& "entrypass:"&entrypass&Vend
   substrContent =substrContent& "agentname:"&agentname&Vend
   substrContent =substrContent& "agentpass:"&agentpass&Vend
   substrContent = substrContent & "domainname:" & domain_to_modi & Vend
   substrContent = substrContent & "." & Vend
   doresult = hzsocket(substrContent)
   left5=left(doresult,5)
   If left5= "10000" Then
      call okpage( "/master/pdtmng/dmc_mng/dmc_lst.asp")
   Else
      call errorpage(-2,doresult)
   end if

%>