国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發設計 > 正文

中文虛擬域名實現(2) (環境:中文NT)

2019-11-18 22:11:09
字體:
來源:轉載
供稿:網友
MODIFY。asp
*******************************
<%@ LANGUAGE="VBSCRipT" %>
<!--#include file="dbdb/connmm.inc"-->

<html>
<head>
<title>domain forWord</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/CSS">
<!--
.MMS {  font-size: 11pt; text-decoration: none}
.MMS1 {  font-size: 10pt; text-decoration: none}
-->
</style></head>

<body topmargin="10" leftmargin="0" >
<div align="center">

<% set rs=server.createobject("adodb.recordset")
      sql="select * from info where user='"&request("domain2")&"' and password='"&request("pass2")&"'"
      rs.open sql,conn,1,1
      if rs.bof and rs.eof then
response.write "<br><br><br><font color=black>此域名(http://msstudio.net/"&request("domain2")&")不存在或密碼錯誤!</font><br><br><br>"
rs.close
else
if request("newpass2")=request("newpassagain2") then
if request("newpass2")="" and request("email2")="" then
conn.execute("update info set target='"&request("target2")&"' where user ='"&request("domain2")&"'")
end if
if request("newpass2")="" and request("email2")<>"" then
conn.execute("update info set target='"&request("target2")&"',email='"&request("email2")&"' where user ='"&request("domain2")&"'")
end if
if request("newpass2")<>"" and request("email2")<>"" then
conn.execute("update info set target='"&request("target2")&"',email='"&request("email2")&"',password='"&request("newpass2")&"' where user ='"&request("domain2")&"'")
end if
if request("newpass2")<>"" and request("email2")="" then
conn.execute("update info set target='"&request("target2")&"',password='"&request("newpass2")&"' where user ='"&request("domain2")&"'")
end if



'foldername="d:/domain/" & request("domain2")
'Set fs = CreateObject("Scripting.FileSystemObject")
'fs.CreateFolder(foldername)
'set fs = nothing

m_mailinfo="<html><head>"+chr(13)+CHR(10)
m_mailinfo=m_mailinfo+"<title>domain forword</title>"+chr(13)+CHR(10)
m_mailinfo=m_mailinfo+"<meta http-equiv=""Content-Type"" content=""text/html; charset=gb2312"">"+chr(13)+CHR(10)
m_mailinfo=m_mailinfo+"<meta http-equiv=""refresh"" content=""0;URL=http://"+request("target2")+""">"+chr(13)+CHR(10)
m_mailinfo=m_mailinfo+"<script language=""javaScript"" src=""../mss.js""></script></head>"+chr(13)+CHR(10)
m_mailinfo=m_mailinfo+"<body bgcolor=""#FFFFFF"">loading...</body></html>"



whichfile="d:/domain/" & request("domain2")& "/default.htm"
         Set fs = CreateObject("Scripting.FileSystemObject")
         Set thisfile = fs.createTextFile(whichfile, True)
         thisfile.Write m_mailinfo
         thisfile.Close

response.write "<br><br><br><font color=black>恭喜!域名(<a href=""http://msstudio.net/"&request("domain2")&""">http://msstudio.net/"&request("domain2")&"</a>)修改成功!</font><br><br><br>"




else
response.write "<br><br><br><font color=black>密碼錯誤!</font><br><br><br>"
end if
end if
%>      
</div>
</body>
</html>

ADD。ASP
*****************************************************

<%@ LANGUAGE="VBSCRIPT" %>
<!--#include file="dbdb/connmm.inc"-->

<html>
<head>
<title>domain forword</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
.MMS {  font-size: 11pt; text-decoration: none}
.MMS1 {  font-size: 10pt; text-decoration: none}
-->
</style></head>

<body topmargin="10" leftmargin="0" >
<div align="center">

<% set rs=server.createobject("adodb.recordset")
      sql="select * from info where user='"&request("domain")&"'"
      rs.open sql,conn,1,1
      if not(rs.bof and rs.eof) then
response.write "<br><br><br><font color=black>此域名(http://msstudio.net/"&request("domain")&")已經被占用!</font><br><br><br>"
rs.close
else
if request("pass")=request("passagain") then
conn.execute("insert into info values('"&request("domain")&"','"&request("email")&"','"&request("pass")&"','"&request("target")&"')")
foldername="d:/domain/" & request("domain")
Set fs = CreateObject("Scripting.FileSystemObject")
fs.CreateFolder(foldername)
set fs = nothing

m_mailinfo="<html><head>"+chr(13)+CHR(10)
m_mailinfo=m_mailinfo+"<title>domain forword</title>"+chr(13)+CHR(10)
m_mailinfo=m_mailinfo+"<meta http-equiv=""Content-Type"" content=""text/html; charset=gb2312"">"+chr(13)+CHR(10)
m_mailinfo=m_mailinfo+"<meta http-equiv=""refresh"" content=""0;URL=http://"+request("target")+""">"+chr(13)+CHR(10)
m_mailinfo=m_mailinfo+"<script language=""Javascript"" src=""../mss.js""></script></head>"+chr(13)+CHR(10)
m_mailinfo=m_mailinfo+"<body bgcolor=""#FFFFFF"">loading...</body></html>"



whichfile="d:/domain/" & request("domain")& "/default.htm"
         Set fs = CreateObject("Scripting.FileSystemObject")
         Set thisfile = fs.createTextFile(whichfile, True)
         thisfile.Write m_mailinfo
         thisfile.Close

response.write "<br><br><br><font color=black>恭喜!域名(<a href=""http://msstudio.net/"&request("domain")&""">http://msstudio.net/"&request("domain")&"</a>)已經開始起用!</font><br><br><br>"




else
response.write "<br><br><br><font color=black>密碼錯誤!</font><br><br><br>"
end if
end if
%>      
</div>
</body>
</html>


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 鄯善县| 克什克腾旗| 黄陵县| 海门市| 克拉玛依市| 西昌市| 马山县| 南康市| 若尔盖县| 南木林县| 廉江市| 贵州省| 高陵县| 奈曼旗| 馆陶县| 赫章县| 容城县| 德江县| 犍为县| 阜新市| 通河县| 汉寿县| 和平县| 伊春市| 门头沟区| 巩义市| 陇西县| 华蓥市| 桃江县| 邛崃市| 元阳县| 洪湖市| 保靖县| 庆城县| 望都县| 兴文县| 隆子县| 东兰县| 琼中| 无棣县| 明光市|