中国站长下载-为中国站长提供最好最全的建站资源! 首 页发布资源有事留言繁體中文
设为首页
加入收藏
联系我们
 
您当前的位置:中国站长下载 -> 文章中心 -> 网页编程 -> ASP编程 -> 文章内容  虚拟主机 域名注册 退出登录 用户管理
栏目导航
· ASP编程 · .NET编程
· PHP编程 · JSP编程
· CGI 专区
热门文章
· sndvol32 - sndvol3...
· [组图] FLASH:《大话李白》...
· 个人网站到底能赚多...
· [图文] Rundll.exe是病毒吗...
· [组图] Flash:制作MV
· 价值12万元的网站SE...
· 网站创业者,你需要...
· 一个成功的网站设计...
· [图文] FLASH:韩国导航条解...
· 中国网站的赚钱模式...
相关文章
· 中文虚拟域名实现(1...
· 中文虚拟域名实现(3...
中文虚拟域名实现(2) (环境:中文NT)
作者:不详  来源:不详  发布时间:2006-8-13 0:57:56  发布人:chinazhan

 减小字体 增大字体

     中文虚拟域名实现(2) (环境:中文NT)
  
  关键词:ASP
  
  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>
  
  (转自chinaasp)
    做人要厚道,请注明转自chinazhan中国站长(www.ChinaZhan.com)。

 
[] [返回上一页] [打 印] [收 藏]
∷相关文章评论∷    (评论内容只代表网友观点,与本站立场无关!) [更多评论...]
中国站长下载
中国站长下载

本页只接受PR>=4 IT类站点连接,申请连接,谢谢您们的支持!希望我们的下载站能够真正帮到中国的站长们!
关于本站 - 网站帮助 - 广告合作 - 下载声明 - 友情连接 - 网站地图
Copyright © 2005-2006 ChinaZhan.Net. All Rights Reserved .