选择显示字体大小

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

     中文虚拟域名实现(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)
    


 


关键字 本文所属关键字

相关 与本文相关文章

分类 所有文章关键字导航

源码编程相关

Java   Asp   PHP   .Net   XML   C/C++   CGI   VB   Jsp   J2ee   J2se   J2me   EJB   Servlet   Tomcat   Resin   Struts   Weblogic   Eclipse   ANT   GUI   JMS   Web servise   IDEA   Webphere   Hibernate   Spring   Jboss   Applet   Swing   Socket   Javamail   Perl   Ajax   P2P   安全   模式   框架   测试   开源   游戏

SQL数据库相关

My-SQL   Ms-SQL   Access   DB2   Oracle   Sybase   SQLserver   索引   存储过程   加密   数据库   分页   视图  

手机无线相关

3G   Wap   CDMA   GRPS   GSM   IVR   彩信   短信   无线   增值业务

网页设计制作相关

HTML   CSS   网页配色   网页特效   Javascript   VBscript   Dreamweaver   Frontpage   JS   Web   网站设计

网站建设推广相关

建站经验   网站优化   网站排名   推广   Alexa

操作系统/服务器相关

Windows XP   Windows 2000   Windows 2003   Windows Me   Windows 9.x   Linux   UNIX   注册表   操作系统   服务器   应用服务器

图形图像多媒体相关

Photoshop   Fireworks   Flash   Coreldraw   Illustrator   Freehand   Photoimpact   多媒体   图形图像

标准 网站致力的规范

Valid CSS!

无不良内容,无不良广告,无恶意代码

Valid XHTML 1.0 Transitional

creativecommons