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

<%
chk_log_usr()
hostname=trim(SafeRequest("hostname"))
if hostname="" then
		      call errorpage(-2,"对不起,参数错误!")
end if
conn.open constr
query="select * from v_hstlst where h_ftpusr='"&hostname&"' and h_unme='"&session("usrname")&"'"
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,"对不起，空间类型不正确！...")
end if
hnme=rs("h_ftpusr")
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 & "." & Vend
   doresult = hzsocket(substrContent)
   left5=left(doresult,5)
   If left5= "10000" Then
      call okpage( "/control/hst_mng/hst_idx.asp?hnme=" & hnme)
   Else
      call errorpage(-2,doresult)
   end if


%>