📄 member_addhosturl.asp
字号:
<!--#include file="conn.asp"-->
<%
id=session("userid")
username=session("username")
if id="" or username="" then
response.Redirect("adminloginerror.asp")
end if
Set rs = Server.CreateObject("ADODB.Recordset")
if session("usertyp")="企业" then
sql="select * from userentreg where login_name='"& username &"' and id=" & id &""
end if
if session("usertyp")="个人" then
sql="select * from userpersreg where login_name='"& username &"' and id=" & id &""
end if
rs.open sql,conn,3,3
if rs.eof then
response.Redirect("adminloginerror.asp")
else
%>
<html>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="style.css" rel="stylesheet" type="text/css">
<body style="font-size: 9pt">
<%
id=server.htmlencode(request.form("id"))
urltop=server.htmlencode(request.form("urltop"))
urlbottom=server.htmlencode(request.form("urlbottom"))
if urltop="" or urlbottom="" then
response.write"<div align=center class=f1><br>域 名 不 能 为 空!</div>"
else
Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from bondingurl where urltop='"&urltop&"' and urlbottom='"&urlbottom&"'"
rs.open sql,conn,3,3
if not rs.eof then
response.write"<div align=center class=f1><br>您 不 能 多 次 绑 定 同 一 个 域 名!</fonr></div>"
else
Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from bondingurl"
rs.open sql,conn,3,3
rs.addnew
rs("hostid")=id
rs("urltop")=urltop
rs("urlbottom")=urlbottom
rs.update
response.write"<div align=center><br><span class=f1>域 名 绑 定 成 功!</span><br><br>如果您的域名不是在主机频道注册的,请通知您的域名服务商把DNS改为我们的DNS服务器地址。</div>"
end if
end if
rs.close
set rs=nothing
%>
</body>
</html>
<%
end if
set conn=nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -