%@ Language=VBScript %> <% If session("agentusername")="" Then ef=True ec="授权非法,有可能是超时造成的。" ElseIf not IsNumeric(Request.QueryString ("id")) Then ef=True ec="ID应该是数字!" ElseIf RegExpTest("[^A-Za-z0-9]",Request("username")) Then ef=True ec="用户名中有非法字符!" 'ElseIf RegExpTest("[^A-Za-z0-9]",Request("hostname")) Then ' ef=True ' ec="主机名中有非法字符!" ElseIf RegExpTest("[^A-Za-z0-9]",Request("ftpname")) Then ef=True ec="FTP名中有非法字符!" ElseIf not IsNumeric(Request("ServerlistID")) Then ef=True ec="服务器ID应该是数字!" ElseIf RegExpTest("[^A-Za-z0-9]",Request("cdntype")) Then ef=True ec="类型中有非法字符!" ElseIf RegExpTest("[^A-Za-z0-9]",Request("beianstatus")) Then ef=True ec="beianstatus中有非法字符!" ElseIf not IsNumeric(Request("id")) Then ef=True ec="产品ID应该是数字!" ElseIf not IsDate(Request("starttime")) and Request("starttime")<>"" Then ef=True ec="请输入合法的日期!" ElseIf not IsDate(Request("endtime")) and Request("endtime")<>"" Then ef=True ec="请输入合法的日期!" ElseIf not IsDate(Request("starttime1")) and Request("starttime1")<>"" Then ef=True ec="请输入合法的日期!" ElseIf not IsDate(Request("endtime1")) and Request("endtime1")<>"" Then ef=True ec="请输入合法的日期!" ElseIf not IsDate(Request("starttime2")) and Request("starttime2")<>"" Then ef=True ec="请输入合法的日期!" ElseIf not IsDate(Request("endtime2")) and Request("endtime2")<>"" Then ef=True ec="请输入合法的日期!" end If if not ef Then If Request("hostname")<>"" then set ComX=server.CreateObject("freehost_com_7i24.FreehostM") hostname=trim(replace(Request("hostname"),"http://","")) if hostname<>"" then hostname=ComX.idntoac_7i24_com(cstr(hostname)) hostnamecheck=replace(hostname,".","") hostnamecheck=replace(hostnamecheck,"xn--","") If RegExpTest("[^A-Za-z0-9--]",hostnamecheck) Then ef=True ec="请输入合法的域名!" end If End if end if if not ef then Set conn=Server.CreateObject("ADODB.Connection") conn.Open Application("FreeHostDBlink") Set dsagent = Server.CreateObject("ADODB.Recordset") Sql="Select * from FreeHost.FreeHost_AGENT where username='"&session("agentusername")&"'" dsagent.Open Sql,conn,1,1 If dsagent.Eof Then ef=True ec="代理不存在!" end if end if if not ef then%> <%session("FreeHostCom").FreeHost_WR("html5")%> CDN管理 <%session("FreeHostCom").FreeHost_WR("html6")%>
<%if Request.QueryString ("op")<>"" then%>ID | 产品类型 | 用户名 | 域名 | CNAME域名 | 开通日期 | 到期日期 | 状态 | 管 |
<%=dsph("id")%> | <%=cdntype%> | "><%=dsph("username")%> | <%
hostname=dsph("hostname")
If IsNull(dsph("hostname")) Then hostname=""
'hostname=replace(hostname, ":80:","")
hostname_arry=Split(hostname, ",")
set ComX=server.CreateObject("freehost_com_7i24.FreehostM")
for idname=0 to ubound(hostname_arry)
domary=Split(hostname_arry(idname),":")
domain=domary(UBound(domary))
ipstrall=Left(hostname_arry(idname),Len(hostname_arry(idname))-Len(domain)-1)
ipary=Split(ipstrall,"|")
iparyTel=Split(ipary(0),":")
ipTel=iparyTel(0)
portTel=iparyTel(1)
ipCNC=""
portCNC=""
ipMOB=""
portMOB=""
ipUSA=""
portUSA=""
For sourceI=1 To UBound(ipary)
If InStr(ipary(sourceI),"NC-") then
iparyCNC=Split(ipary(sourceI),":")
ipCNC=Replace(iparyCNC(0),"CNC-","")
portCNC=iparyCNC(1)
End If
If InStr(ipary(sourceI),"OB-") then
iparyMOB=Split(ipary(sourceI),":")
ipMOB=Replace(iparyMOB(0),"MOB-","")
portMOB=iparyMOB(1)
End If
If InStr(ipary(sourceI),"SA-") Then
iparyUSA=Split(ipary(sourceI),":")
ipUSA=Replace(iparyUSA(0),"USA-","")
portUSA=iparyUSA(1)
End If
next
%>
<%if ComX.actoidc_7i24_com(cstr(domain))<>domain then%>
<%=ComX.actoidc_7i24_com(cstr(domain))%> (<%=domain%>)
<%else%>
<%=domain%>
<%end if%> (源IP:<%=ipTel%> 端口:<%=portTel%>) <%If ipCNC<>"" then%> (源联通IP:<%=ipCNC%> 端口:<%=portCNC%>)<%End if%> <%If ipMOB<>"" then%> (源移动IP:<%=ipMOB%> 端口:<%=portMOB%>)<%End if%> <%If ipUSA<>"" then%> (源外国IP:<%=ipUSA%> 端口:<%=portUSA%>)<%End if%> <%next%> |
<%
Set dsserver = Server.CreateObject("ADODB.Recordset")
Sql="Select * from FreeHost.FreeHost_ServerBindlist where id='"&dsph ("Bindserverid1")&"'"
dsserver.Open Sql,conn,1,1
%>
<%=dsserver("aname")%>.<%=dsserver("domain")%> |
<%=formatdatetime(dsph("starttime"),1)%> | <%=formatdatetime(dsph("endtime"),1)%> | <%if dsph("endtime")>NOW then%>
<%if dsph("istest")="y" then%>
试用<%else%>
<%=dsph("status")%>
<%end if%>
<%else%>
过期
<%if dsph("status")="暂停" then%>
暂停 <%end if%> <%end if%> |
&go=a">面板 |