⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 joinnow.asp

📁 中国114网搜索系统 版  本: 文件大小:580 KB 软件语言:简体中文 授权方式:免费版 相关链接:程序演示 开 发 商: 运行环境:ASP源码
💻 ASP
字号:
<!-- Design and Edit By QianFengyun 2000-5-20 -->
<!-- #include file=../change.asp -->
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0041)http://www.china114net.com 中国114网 -->
<html>
<head>
<title><%=titlename%></title>
<meta http-equiv='Content-Type' content='text/html; charset=gb2312'>
<link rel="stylesheet" type="text/css" href="../html/style.css">
</head>
<%

function sentwaitemail(email)
  dim  objCDOMail
  Set objCDOMail = Server.CreateObject("CDONTS.NewMail")
  objCDOMail.From ="qianfengyun@163.net"   '发信人的EMAIL
  objCDOMail.To = email     '收信人的EMAIL
  objCDOMail.Subject ="新站天天有已经收到你提交的网站"   'EMAIL的标题

  'EMAL的内容
  sendstr=username&":您好!"&chr(13)&chr(13)&"    新站天天有已经收到你提交的网站!"&chr(13)&"    网站名称:"&sitename&chr(13)&"    网站地址:"&url&chr(13)&"    网站简介:"&jiji&chr(13)&"    本站会在二天之内处理你的网站!http://findlink.yeah.net恭候您再次光临!"
  objCDOMail.Body = sendstr
  'response.write sendstr

   '发送
  objCDOMail.Send
  Set objCDOMail = Nothing
  'response.write "<!--邮件已经成功发送-->"
end function

function strLength(str)
	dim WINNT_CHINESE
	WINNT_CHINESE=(len("例子")=2)
	if WINNT_CHINESE then
		dim l,t,c
		dim i
		l=len(str)
		t=l
		for i=1 to l
			c=asc(mid(str,i,1))
			if c<0 then c=c+65536
			if c>255 then
				t=t+1
			end if
		next
		strLength=t
	else 
		strLength=len(str)
	end if
end function

username=trim(request("username"))
if strLength(username)>10 or username="" then
	response.write "没有输入用户名或用户名太长!最多10个字符."
	response.end
end if

pass=trim(request("pass"))
if strLength(pass)>10 or pass="" then
	response.write "没有输入密码或密码太长!最多10个字符."
	response.end
end if

sitename=trim(request("sitename"))
if strLength(sitename)>40 or sitename="" then
	response.write "没有输入网站名称或网站名称太长!最多40个字符."
	response.end
end if
url     =trim(request("url"))
if strLength(url)>100 or url="" then
	response.write "没有输入网站地址或网站地址太长!最多100个字符."
	response.end
end if
jiji    =trim(request("jiji"))
if strLength(jiji)>200 then
	response.write "网站简介太长!最多200个字符."
	response.end
end if

fid=request("fid")
if isNumeric(fid)=0 or fid="" then 
  	response.write "没有这个分类!进入添加一级分级"
  	rs.close
  	set rs=nothing
  	response.end
end if
fid=int(fid)
if fid<0 then
  	response.write "没有这个分类!"
  	rs.close
  	set rs=nothing
  	response.end
end if
%>
	<!-- #include file=../database.asp -->
	<%

Set rs = Server.CreateObject("ADODB.Recordset")

sql    = "select * from ourusers where username='"&replace(username,"'","''")&"'"
rs.open sql,conn,1,1
if rs.eof or rs.bof then
	response.write "用户名错误!"
	rs.close
	set rs=nothing
	conn.close
	set conn=nothing
	response.end
end if

rspass=trim(rs("pass"))
if rspass<>pass then
	response.write "密码错误!"
	rs.close
	set rs=nothing
	conn.close
	set conn=nothing
	response.end
end if

tomail=rs("mail")
rs.close

sql    = "select * from fenlei where id="&fid
rs.open sql,conn,1,1

if rs.eof or rs.bof then
  	response.write "没有这个分类!"
  	rs.close
  	set rs=nothing
	conn.close
	set conn=nothing
  	response.end
else
	fenleiid=rs("id")
end if

expediency=rs("expediency")

tempStr="总分类 "

for i=1 to expediency
	tempStr=tempStr & " &gt; <a href=chooseassort.asp?id="&id&"&fid="&rs(10+i)&">"&trim(rs(i))&"</a>"
next

rs.close

do while right(url,1)="/" or right(url,1)="\"
	url=left(url,len(url)-1)
loop

sql    = "select * from linking where url='"&replace(url,"'","''")&"'"
rs.open sql,conn,1,1
if not rs.eof then
	response.write "网址已经存在,不用再添加了,本站仍然感谢你的推荐!!此网站已经加在<a href=navigate.asp?id="&rs("fenleiid")&">此分类</a>里了."
	rs.close
	set rs=nothing
	conn.close
	set conn=nothing
	response.end
end if

rs.close

sql    = "select * from templink where url='"&replace(url,"'","''")&"'"
rs.open sql,conn,1,1
if not rs.eof then
	response.write "网址已经有人刚推荐过了,不用再添加了,本站仍然感谢你的推荐!!"
	rs.close
	set rs=nothing
	conn.close
	set conn=nothing
	response.end
end if

rs.close
set rs=nothing

conn.Execute " INSERT INTO templink " _
        & "(username,sitename,url,jiji,fenleiid,fen,ndatetime) VALUES " _
        & "('"&replace(username,"'","''")&"','"&replace(sitename,"'","''")&"','"&replace(url,"'","''")&"','"&replace(jiji,"'","''")&"',"&fenleiid&",0,'"&date()&"');"
        response.write date()
        response.write sql

%>
<BODY vlink=0000ff leftmargin="0" topmargin="10" marginwidth="0" marginheight="0" bgcolor="#FFFFFF">
<%
conn.close
set conn=nothing
response.write "<br>加入成功!!资料如下:<br>网站名称:"&server.htmlencode(sitename)&"<br>网站地址:"&server.htmlencode(url)&"<br>网站简介:"&server.htmlencode(jiji)&"<br>所在分类:"&tempStr&"<br>请等待本站的处理."
if emailflag=1 and tomail<>"" and inStr(tomail,"@")>0 then sentwaitemail(tomail)
%>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -