网络编程 | 站长之家 | 网页制作 | 图形图象 | 操作系统 | 冲浪宝典 | 软件教学 | 网络办公 | 邮件系统 | 网络安全 | 认证考试 | 系统进程
Firefox | IE | Maxthon | 迅雷 | 电驴 | BitComet | FlashGet | QQ | QQ空间 | Vista | 输入法 | Ghost | Word | Excel | wps | Powerpoint
asp | .net | php | jsp | Sql | c# | Ajax | xml | Dreamweaver | FrontPages | Javascript | css | photoshop | fireworks | Flash | Cad | Discuz!
当前位置 > 网站建设学院 > 网络编程 > ASP实例
Tag:注入,存储过程,分页,安全,优化,xmlhttp,fso,jmail,application,session,防盗链,stream,无组件,组件,md5,乱码,缓存,加密,验证码,算法,cookies,ubb,正则表达式,水印,索引,日志,压缩,base64,url重写,上传,控件,Web.config,JDBC,函数,内存,PDF,迁移,结构,破解,编译,配置,进程,分词,IIS,Apache,Tomcat,phpmyadmin,Gzip,触发器,socket
网络编程:ASP教程,ASP.NET教程,PHP教程,JSP教程,C#教程,数据库,XML教程,Ajax,Java,Perl,Shell,VB教程,Delphi,C/C++教程,软件工程,J2EE/J2ME,移动开发
本月文章推荐
.asp+的论坛列表程序---代码部分.
.FrontPage 2000+DB2实现数据库信.
.filesystemobject组件的用法示例.
.不用图像组件的ASP图像计数器.
.利用ASP制作EXECL报表方法(一).
.不用防火墙自动对付CC攻击.
.ASP连接执行程序 .
.编写数据库脚本.
.用ASP开发WEB日期选择器.
.ASP随机涵数生成100条8位字母和数.
.SQL SERVER结构浏览器.
.ASP无组件上载,带进度条,多文件上.
.ASP编写完整的一个IP所在地搜索类.
.bbs树型结构的实现方法(二).
.一个简单的网上书城的例子(一).
.解决ASP导出查询结果到Excel中的.
.使用AspImage制作图形(二).
.用ASP开发一个在线考试程序(一).
.使用 ASP+ 列表绑定控件(中).
.用VB编写ActiveX DLL实现ASP编程.

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

发表日期:2000-10-25


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>

上一篇:中文虚拟域名实现(1) (环境:中文NT) 人气:11122
下一篇:中文虚拟域名实现(3) (环境:中文NT) 人气:11269
浏览全部中文虚拟域名实现的内容 Dreamweaver插件下载 网页广告代码 祝你圣诞节快乐 2009年新年快乐