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

<%=chk_log()%> 
<%
chk_newpwr 1,5,2
domainname=trim(SafeRequest("domainname"))
if domainname="" then
		      call errorpage(-2,"对不起，参数错误！...")
end if
conn.open constr
if session("sysclass")>=5 then
query="select * from v_dmclst   where d_dme ='"&domainname&"'"
elseif session("sysclass")>=4 then
query="select * from v_dmclst  where d_dme ='"&domainname&"'  and  ((("&session("sysarestr")&" or u_myare=0) and u_rotnme='') or u_rotnme='"&session("usrname")&"')"
else
query="select * from v_dmclst  where d_unme='"&session("usrname")&"' and d_dme ='"&domainname&"'"
end if
rs.open query,conn,1,1
if rs.recordcount<>1 then
     call errorpage(-2,"对不起，该域名不存在或者您无权操作！...")
elseif rs("d_regtpe")<>1 and rs("d_regtpe")<>3  and rs("d_regtpe")<>5 then
     call errorpage(-2,"对不起，域名类型不正确！(非本站注册的域名无法在本站续费)...")
elseif now()-rs("d_exptme")>30 then	 
    call errorpage(-2,"对不起，该域名已经进入删除队列，无法再续费！...")
end if
domainname=trim(rs("d_dme"))
proid=trim(rs("d_prd"))
if trim(lcase(rs("d_unme")))<>trim(lcase(session("usrname"))) then
query="select * from memlst where u_nme='"&rs("d_unme")&"'"
rs1.open query,conn,1,1
entryuser=rs("d_unme")
entrypass=trim(rs1("u_pss"))
agentname=session("usrname")
agentpass=session("usrpass")
rs1.close
end if
rs.close
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''表单处理 
   substrContent = "entryclass:pdtrnw"&Vend
   substrContent =substrContent& "entrytype:pdtrnw"&Vend
   substrContent =substrContent& "entryuser:"&entryuser&Vend
   substrContent =substrContent& "entrypass:"&entrypass&Vend
   substrContent =substrContent& "agentname:"&agentname&Vend
   substrContent =substrContent& "agentpass:"&agentpass&Vend
   substrContent = substrContent & "proid:" &proid& Vend
   substrContent = substrContent & "pdtname:" &domainname& Vend
   substrContent = substrContent & "years:"& SafeRequest("years") & Vend
   substrContent = substrContent & "pdtprcstr:"& SafeRequest("d_prcstr") & Vend
   substrContent = substrContent & "newprice:"& SafeRequest("newprice") & Vend
   substrContent = substrContent & "." & Vend
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''表单处理 

   doresult = hzsocket(substrContent)
   left5=left(doresult,5)
   If left5= "10000" Then
      call okpage( "/master/pdtmng/dmc_mng/dmc_idx.asp?dnme=" & domainname)
   Else
      call errorpage(-2,doresult)
   end if
%>
