|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
asp是基于web的一种编程技术,可以说是cgi的一种。它可以完成以往cgi程序的所有功能,如计数器、留言簿、公告板、聊天室等等。对照|函数由于对照复杂,我就不说甚么了。一看就分明的!
FunctionChkStr(InString)
IfInString""Then
InString=Replace(LCase(InString),"","")
InString=Replace(LCase(InString),";","")
InString=Replace(LCase(InString),"","")
InString=Replace(LCase(Instring),"--","")
Instring=Replace(LCase(Instring),"%","")
InString=Replace(LCase(InString),"%20","")
InString=Replace(LCase(InString),"admin","")
InString=Replace(LCase(InString),"and","")
InString=Replace(LCase(InString),"or","")
InString=Replace(LCase(InString),"asc","")
InString=Replace(LCase(Instring),"chr","")
InString=Replace(LCase(InString),"mid","")
InString=Replace(LCase(InString),"len","")
InString=Replace(LCase(InString),"select","")
InString=Replace(LCase(InString),"insert","")
InString=Replace(LCase(InString),"delete","")
InString=Replace(LCase(InString),"update","")
ChkStr=InString
EndIf
EndFunction
FunctionCheckFileExt(FileExt)
DimFileAccessExt,AccessExt
AccessExt="gif,jpg,jpeg,bmp,doc,txt,png"
FileAccessExt=Split(AccessExt,",")
Fori=LBound(FileAccessExt)toUBound(FileAccessExt)
IfLCase(FileExt)=LCase(FileAccessExt(i))Then
CheckFileExt=True
Else
CheckFileExt=False
EndIf
Next
EndFunction
FunctionCheckStr(str,IsStr)
CheckStr=str
IfIsStrAndInStr(str,",")>0Then
Callerrmsg("提交字符中包括不法字符")
ElseIf(NotIsStr)And(NotIsNumeric(str))Then
Callerrmsg("提交不是数字型")
EndIf
EndFunction
Suberrmsg(str)
IfNotIsNull(str)Then
Response.Write(str)&"<br>"
CallASCpy()
Response.End()VeryImprotan.Stopexecuteprogram.
EndIf
EndSub
SubASCpy()
Response.Write"<linkhref=CSS/Maincss.cssrel=stylesheettype=text/css>"
Response.Write"<divalign=centerclass=Maincss>"
Response.Write("<Center>Errorhapped!<br>PleaseContract")
Response.Write("Name:<ahref=mailto:jdqn@sjzu.edu.cnstyle=text-decoration:none>")
Response.Write("<fontColor=red>AloneSword</font>")
Response.Write("</a>.<br>Thankyou!!!</Center><br>")
Response.Write"<hr>Copyright |
|