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

<%
chk_log()
chk_newpwr 1,0,2
hostname=trim(SafeRequest("hostname"))
if hostname="" then
		      call errorpage(-2,"对不起,参数错误!")
end if
conn.open constr
if session("sysclass")>=5 then
query="select * from v_hstlst   where h_ftpusr ='"&hostname&"'"
elseif session("sysclass")>=4 then
query="select * from v_hstlst  where h_ftpusr ='"&hostname&"'  and  ((("&session("sysarestr")&" or u_myare=0) and u_rotnme='') or u_rotnme='"&session("usrname")&"')"
else
query="select * from v_hstlst  where h_unme='"&session("usrname")&"' and h_ftpusr ='"&hostname&"'"
end if
rs.open query,conn,1,1
if rs.recordcount<>1 then
     call errorpage(-2,"对不起，该主机不存在或者不可操作！...")
elseif cint(rs("h_regstt"))=0 then
     call errorpage(-2,"对不起，该主机还没有开通！...")
elseif cint(rs("h_regtpe"))<>0 then
     call errorpage(-2,"对不起，主机购买类型不正确！...")
else	
if trim(lcase(rs("h_unme")))<>trim(lcase(session("usrname"))) then
query="select * from memlst where u_nme='"&rs("h_unme")&"'"
rs1.open query,conn,1,1
entryuser=rs("h_unme")
entrypass=trim(rs1("u_pss"))
agentname=session("usrname")
agentpass=session("usrpass")
rs1.close
end if
end if
rs.close

''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''表单处理 
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''表单处理 
   substrContent = "entryclass:hst_odr"&Vend
   substrContent =substrContent& "entrytype:trypay"&Vend
   substrContent =substrContent& "entryuser:"&entryuser&Vend
   substrContent =substrContent& "entrypass:"&entrypass&Vend
   substrContent =substrContent& "agentname:"&agentname&Vend
   substrContent =substrContent& "agentpass:"&agentpass&Vend
   substrContent = substrContent & "hostname:" &hostname& Vend
   substrContent = substrContent & "years:" &SafeRequest("years")& Vend
   substrContent = substrContent & "h_prcstr:" &SafeRequest("h_prcstr")& Vend
   substrContent = substrContent & "newprice:"& trim(SafeRequestform("newprice")) & Vend
   substrContent = substrContent & "." & Vend
   doresult = hzsocket(substrContent)
   left5=left(doresult,5)
   If left5= "10000" Then
      call okpage( "/master/pdtmng/hst_mng/hst_idx.asp?hnme=" & hostname)
   Else
      call errorpage(-2,doresult)
   end if


%>