<%@ Language=VBScript %>
<!--#include virtual="/inc-freehost-function/FreeHostFunctionMain.asp"-->
<%
If session("HOSTAUID")="" Then
	ef=True
	ec="授权非法，有可能是超时造成的。"
ElseIf Request.QueryString ("id")="" Then
	ef=True
	ec="请输入产品ID！"
ElseIf not IsNumeric(Request.QueryString ("id"))  Then
	ef=True
	ec="ID应该是数字！"
end if

if not ef then
Set conn=Server.CreateObject("ADODB.Connection")
	conn.Open Application("FreeHostDBlink")
	Set dsph = Server.CreateObject("ADODB.Recordset")	
Sql="Select * from FreeHost.FreeHost_Product_Host where id='"&Request.QueryString("id")&"'"
			if Instr(1,sql, ";", 1)>0 or Instr(1,sql, "--", 1)>0 then
Response.Write "非法字符！"
Response.End
end if
	dsph.Open Sql,conn,1,1
if dsph.Eof then
	ef=True
	ec="不存在的虚拟主机ID！"
end if
end if


if not ef then
if dsph("allowsubbyid")<> session("HOSTAUID") then
	ef=True
	ec="这个虚拟主机不是您名下的！"
end if
end if

if not ef then
%>
<!--#include virtual="/inc-freehost-function/template-hostadm-top.asp"-->
　虚拟主机自助管理


<br>
<br>
<form name="form1" method="post" action="delsub2.asp?id=<%=dsph("id")%>">
<TABLE 
            width="100%" border=1 align=center cellPadding=0 cellSpacing=0 borderColorLight=#cccccc borderColorDark=#fbfbfb>
  <TBODY>
    <TR>
      <TD width="20%" vAlign=middle bgColor=#9E9E9E>&nbsp; <font color="#FFFFFF">产品详情：</font></TD>
      <TD width="43%" height="40" bgColor=#ffffff>　产品类型：<strong>子目录绑定类</strong>        </TD>
      <TD width="37%" height="40" bgColor=#ffffff>　目录名：<%=dsph("dirname")%> </TD>
    </TR>
    <TR>
      <TD width="20%" rowspan="3" vAlign=middle bgColor=#EEEEEE>&nbsp;</TD>
    </TR>
    <TR>
      <TD height="40" bgColor=#ffffff>　已绑定域名：</TD>
      <TD width="37%" height="40" bgColor=#ffffff>　<%=replace(replace(dsph("hostname"),":80:",""),",","<br>　")%></TD>
    </TR>
    <TR>
      <TD height="64" colspan="2" align="center" bgColor=#ffffff>
        <input type="submit" name="Submit" value="马上删除这个目录的绑定">
        <br>
        <br>
(目录中的文件不会删除)      
      </TD>
    </TR>
  </TBODY>
</TABLE></form>
<br>
<!--#include virtual="/inc-freehost-function/template-hostadm-end.asp"-->
<%end if
if ef then
Response.Redirect "e.asp?e="&ec
end if%>