月影社区bbsmoon.com 欢迎给我们发邮件将月影社区设置为您的首页将月影社区地址加入到您的收藏栏
首页 >> 读书频道 >> 电脑 >> 中文虚拟域名实现(2) (环境:中文NT)
 
· 中文虚拟域名实现(1)
· 使用ASP方便的建立自己
· 趣味访客计数器设计两则
· 在一个ASP页面停留的多
· 用ASP创建日志文件(附
· 一些源程序 - 获得文件
· 用ASP制作个性化的调查
· 一 些 ASP 小 源
· 一个投票系统的源程序
· 深入研究“用ASP上载文
· 深入研究“用ASP上载文
· 广告播放和跟踪系统的制作
 
· 唐诗三百首(加注释)
· 谈谈心恋恋爱第三部之《记
· 鉴鬼实录第三卷:地狱的佳
· 妓女日记[作者:爱你不久
· 2006高考录取规则
· photoshop中75
· 我和我初恋女友的母亲上了
· 重庆空姐
· 鬼吹灯(80~160章)
· 电视剧小说:恶魔在身边
· 我和一个偷吃了禁果的女孩
· 情书[作者:吴秀艳]
 
· 漂亮女上司有点……
· 男按摩师
· 重庆空姐
· 为什么爱情会没有力气[作
· 古籍的装帧
· 古籍的结构
· 古籍的版式
· 古籍的版别
· 历代帝王纪年表
· 吕氏春秋[作者:秦·吕不
· 车祸[作者:金小陌]
· 金小陌查案之不吃饭的女人
欢迎来到月影社区!如果您觉得这里不错,请推荐给您的朋友们。月影社区:http://bbsmoon.com/

中文虚拟域名实现(2) (环境:中文NT)


查看有无更新版本

关键字:ASP实例 2006-9-10

 

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>

中文虚拟域名实现(2) (环境:中文NT)

[ 1 ]
中文虚拟域名实现(2) (环境:中文NT) num

打印本页 关闭

关于我们名站导航本站导航月影邮件版权声明圣经查询友情连结作品演示 TOP↑
本论坛言论纯属发表者个人意见,与£月影社区£立场无关。 鲁ICP备05001046号
禁止发布任何色情/政治/反动相关信息让我们共同来营造一个属于我们的梦幻家园
Copyright ©2001-2004 MoonShadow. All rights reserved.  Version 4.0 HTML Licence 2006.4.12
本站基于ASP+JS构建,完全自主开发,版权归属月影社区 管理员QQ:23165062