c_boaisc.asp

来自「Asp源码交易频道 可对商品的添加、修改、删除」· ASP 代码 · 共 53 行

ASP
53
字号
<!--#include file="d_boaisc.asp" --><!--#include file="d_lj.asp" -->
<%
	set sc=new boaisc
	for each shuju in sc.file
		set wj=sc.file(shuju)
		
		mingzi=request.Cookies("mingzi")
		kzm=lcase(right(wj.filename,4))
			
			set youke=lj.execute("select youkefatie from luntan")
			if youke("youkefatie")<>0 and mingzi="" then
				response.Redirect("b_boaisc.asp?fanhui=yk")
			end if
						
			set dx=lj.execute("select shangchuan from luntan")
			if wj.filesize>(dx("shangchuan")*1000) then
				response.Redirect("b_boaisc.asp?fanhui=da")
			end if
			
			if kzm<>".rar" and kzm<>".zip" and kzm<>".jpg" and kzm<>".gif" and kzm<>"rent" then
				response.Redirect("b_boaisc.asp?fanhui=lx")
			end if

			if kzm="rent" then kzm=".torrent"

		wjm="boaisc/"&year(now)&month(now)&day(now)&hour(now)&minute(now)&second(now)&int(rnd)&kzm
		wj.saveas server.MapPath(wjm)
	next

	if kzm=".jpg" or kzm=".gif" then
%>
<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language=JavaScript>
function image_success()
{
	parent.fa.neirong.value+="[img]<%=wjm%>[/img]";
	window.location="b_boaisc.asp?fanhui=cg&wjm=<%=wjm%>";
}
</script></head><body leftmargin="0" topmargin="0" onload="image_success()"></body></html>
<%
else
%>
<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language=JavaScript>
function image_success()
{
	parent.fa.neirong.value+="[url]<%=wjm%>[/url]";
	window.location="b_boaisc.asp?fanhui=cg&wjm=<%=wjm%>";
}
</script></head><body leftmargin="0" topmargin="0" onload="image_success()"></body></html>
<%
end if
%>

⌨️ 快捷键说明

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